Class UpsertManagedServerOperationParameters
java.lang.Object
com.azure.resourcemanager.sql.models.UpsertManagedServerOperationParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<UpsertManagedServerOperationParameters>
public final class UpsertManagedServerOperationParameters
extends Object
implements com.azure.json.JsonSerializable<UpsertManagedServerOperationParameters>
The UpsertManagedServerOperationParameters model.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of UpsertManagedServerOperationParameters class. -
Method Summary
Modifier and TypeMethodDescriptionfamily()Get the family property: The family property.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of UpsertManagedServerOperationParameters from the JsonReader.Get the storageSizeInGB property: The storageSizeInGB property.tier()Get the tier property: The tier property.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.vCores()Get the vCores property: The vCores property.withFamily(String family) Set the family property: The family property.withStorageSizeInGB(Integer storageSizeInGB) Set the storageSizeInGB property: The storageSizeInGB property.Set the tier property: The tier property.withVCores(Integer vCores) Set the vCores property: The vCores property.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
UpsertManagedServerOperationParameters
public UpsertManagedServerOperationParameters()Creates an instance of UpsertManagedServerOperationParameters class.
-
-
Method Details
-
family
Get the family property: The family property.- Returns:
- the family value.
-
withFamily
Set the family property: The family property.- Parameters:
family- the family value to set.- Returns:
- the UpsertManagedServerOperationParameters object itself.
-
tier
Get the tier property: The tier property.- Returns:
- the tier value.
-
withTier
Set the tier property: The tier property.- Parameters:
tier- the tier value to set.- Returns:
- the UpsertManagedServerOperationParameters object itself.
-
vCores
Get the vCores property: The vCores property.- Returns:
- the vCores value.
-
withVCores
Set the vCores property: The vCores property.- Parameters:
vCores- the vCores value to set.- Returns:
- the UpsertManagedServerOperationParameters object itself.
-
storageSizeInGB
Get the storageSizeInGB property: The storageSizeInGB property.- Returns:
- the storageSizeInGB value.
-
withStorageSizeInGB
Set the storageSizeInGB property: The storageSizeInGB property.- Parameters:
storageSizeInGB- the storageSizeInGB value to set.- Returns:
- the UpsertManagedServerOperationParameters object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<UpsertManagedServerOperationParameters>- Throws:
IOException
-
fromJson
public static UpsertManagedServerOperationParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-