Class VirtualClusterProperties
java.lang.Object
com.azure.resourcemanager.sql.fluent.models.VirtualClusterProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VirtualClusterProperties>
public final class VirtualClusterProperties
extends Object
implements com.azure.json.JsonSerializable<VirtualClusterProperties>
The properties of a virtual cluster.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of VirtualClusterProperties class. -
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 VirtualClusterPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VirtualClusterProperties 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.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.Methods inherited from class 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
-
VirtualClusterProperties
public VirtualClusterProperties()Creates an instance of VirtualClusterProperties class.
-
-
Method Details
-
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 VirtualClusterProperties object itself.
-
childResources
-
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 VirtualClusterProperties 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<VirtualClusterProperties>- Throws:
IOException
-
fromJson
public static VirtualClusterProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of VirtualClusterProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of VirtualClusterProperties 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 VirtualClusterProperties.
-