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

    Constructors
    Constructor
    Description
    Creates an instance of VirtualClusterProperties class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the childResources property: List of resources in this virtual cluster.
    Get the family property: If the service has different generations of hardware, for the same SKU, then that can be captured here.
    fromJson(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.
    Get the subnetId property: Subnet resource ID for the virtual cluster.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    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 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods 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

      public String subnetId()
      Get the subnetId property: Subnet resource ID for the virtual cluster.
      Returns:
      the subnetId value.
    • family

      public String 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

      public VirtualClusterProperties 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.
      Parameters:
      family - the family value to set.
      Returns:
      the VirtualClusterProperties object itself.
    • childResources

      public List<String> childResources()
      Get the childResources property: List of resources in this virtual cluster.
      Returns:
      the childResources value.
    • maintenanceConfigurationId

      public String maintenanceConfigurationId()
      Get the maintenanceConfigurationId property: Specifies maintenance configuration id to apply to this virtual cluster.
      Returns:
      the maintenanceConfigurationId value.
    • withMaintenanceConfigurationId

      public VirtualClusterProperties withMaintenanceConfigurationId(String maintenanceConfigurationId)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.