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 Details

    • VirtualClusterUpdate

      public VirtualClusterUpdate()
      Creates an instance of VirtualClusterUpdate class.
  • Method Details

    • tags

      public Map<String,String> tags()
      Get the tags property: Resource tags.
      Returns:
      the tags value.
    • withTags

      public VirtualClusterUpdate withTags(Map<String,String> tags)
      Set the tags property: Resource tags.
      Parameters:
      tags - the tags value to set.
      Returns:
      the VirtualClusterUpdate object itself.
    • 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 VirtualClusterUpdate 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 VirtualClusterUpdate 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 VirtualClusterUpdate 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 VirtualClusterUpdate 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<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.