Class VirtualClusterUpdate
java.lang.Object
com.azure.resourcemanager.sql.models.VirtualClusterUpdate
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VirtualClusterUpdate>
public final class VirtualClusterUpdate
extends Object
implements com.azure.json.JsonSerializable<VirtualClusterUpdate>
An update request for an Azure SQL Database virtual cluster.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the childResources property: List of resources in this virtual cluster.family()Get the family property: If the service has different generations of hardware, for the same SKU, then that can be captured here.static VirtualClusterUpdatefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VirtualClusterUpdate from the JsonReader.Get the maintenanceConfigurationId property: Specifies maintenance configuration id to apply to this virtual cluster.subnetId()Get the subnetId property: Subnet resource ID for the virtual cluster.tags()Get the tags property: Resource tags.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withFamily(String family) Set the family property: If the service has different generations of hardware, for the same SKU, then that can be captured here.withMaintenanceConfigurationId(String maintenanceConfigurationId) Set the maintenanceConfigurationId property: Specifies maintenance configuration id to apply to this virtual cluster.Set the tags property: Resource tags.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
-
VirtualClusterUpdate
public VirtualClusterUpdate()Creates an instance of VirtualClusterUpdate class.
-
-
Method Details
-
tags
Get the tags property: Resource tags.- Returns:
- the tags value.
-
withTags
Set the tags property: Resource tags.- Parameters:
tags- the tags value to set.- Returns:
- the VirtualClusterUpdate object itself.
-
subnetId
Get the subnetId property: Subnet resource ID for the virtual cluster.- Returns:
- the subnetId value.
-
family
Get the family property: If the service has different generations of hardware, for the same SKU, then that can be captured here.- Returns:
- the family value.
-
withFamily
Set the family property: If the service has different generations of hardware, for the same SKU, then that can be captured here.- Parameters:
family- the family value to set.- Returns:
- the VirtualClusterUpdate object itself.
-
childResources
Get the childResources property: List of resources in this virtual cluster.- Returns:
- the childResources value.
-
maintenanceConfigurationId
Get the maintenanceConfigurationId property: Specifies maintenance configuration id to apply to this virtual cluster.- Returns:
- the maintenanceConfigurationId value.
-
withMaintenanceConfigurationId
Set the maintenanceConfigurationId property: Specifies maintenance configuration id to apply to this virtual cluster.- Parameters:
maintenanceConfigurationId- the maintenanceConfigurationId value to set.- Returns:
- the VirtualClusterUpdate 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<VirtualClusterUpdate>- Throws:
IOException
-
fromJson
public static VirtualClusterUpdate fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of VirtualClusterUpdate from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of VirtualClusterUpdate 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 VirtualClusterUpdate.
-