共用方式為


UpsertManagedServerOperationParameters Class

  • java.lang.Object
    • com.azure.resourcemanager.sql.models.UpsertManagedServerOperationParameters

Implements

public final class UpsertManagedServerOperationParameters
implements JsonSerializable<UpsertManagedServerOperationParameters>

The UpsertManagedServerOperationParameters model.

Constructor Summary

Constructor Description
UpsertManagedServerOperationParameters()

Creates an instance of UpsertManagedServerOperationParameters class.

Method Summary

Modifier and Type Method and Description
String family()

Get the family property: The family property.

static UpsertManagedServerOperationParameters fromJson(JsonReader jsonReader)

Reads an instance of UpsertManagedServerOperationParameters from the JsonReader.

Integer storageSizeInGB()

Get the storageSizeInGB property: The storageSizeInGB property.

String tier()

Get the tier property: The tier property.

JsonWriter toJson(JsonWriter jsonWriter)
Integer vCores()

Get the vCores property: The vCores property.

void validate()

Validates the instance.

UpsertManagedServerOperationParameters withFamily(String family)

Set the family property: The family property.

UpsertManagedServerOperationParameters withStorageSizeInGB(Integer storageSizeInGB)

Set the storageSizeInGB property: The storageSizeInGB property.

UpsertManagedServerOperationParameters withTier(String tier)

Set the tier property: The tier property.

UpsertManagedServerOperationParameters withVCores(Integer vCores)

Set the vCores property: The vCores property.

Methods inherited from java.lang.Object

Constructor Details

UpsertManagedServerOperationParameters

public UpsertManagedServerOperationParameters()

Creates an instance of UpsertManagedServerOperationParameters class.

Method Details

family

public String family()

Get the family property: The family property.

Returns:

the family value.

fromJson

public static UpsertManagedServerOperationParameters fromJson(JsonReader jsonReader)

Reads an instance of UpsertManagedServerOperationParameters from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of UpsertManagedServerOperationParameters if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the UpsertManagedServerOperationParameters.

storageSizeInGB

public Integer storageSizeInGB()

Get the storageSizeInGB property: The storageSizeInGB property.

Returns:

the storageSizeInGB value.

tier

public String tier()

Get the tier property: The tier property.

Returns:

the tier value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

vCores

public Integer vCores()

Get the vCores property: The vCores property.

Returns:

the vCores value.

validate

public void validate()

Validates the instance.

withFamily

public UpsertManagedServerOperationParameters withFamily(String family)

Set the family property: The family property.

Parameters:

family - the family value to set.

Returns:

the UpsertManagedServerOperationParameters object itself.

withStorageSizeInGB

public UpsertManagedServerOperationParameters withStorageSizeInGB(Integer storageSizeInGB)

Set the storageSizeInGB property: The storageSizeInGB property.

Parameters:

storageSizeInGB - the storageSizeInGB value to set.

Returns:

the UpsertManagedServerOperationParameters object itself.

withTier

public UpsertManagedServerOperationParameters withTier(String tier)

Set the tier property: The tier property.

Parameters:

tier - the tier value to set.

Returns:

the UpsertManagedServerOperationParameters object itself.

withVCores

public UpsertManagedServerOperationParameters withVCores(Integer vCores)

Set the vCores property: The vCores property.

Parameters:

vCores - the vCores value to set.

Returns:

the UpsertManagedServerOperationParameters object itself.

Applies to