Class VolumeGroupMetadata

java.lang.Object
com.azure.resourcemanager.netapp.models.VolumeGroupMetadata
All Implemented Interfaces:
com.azure.json.JsonSerializable<VolumeGroupMetadata>

public final class VolumeGroupMetadata extends Object implements com.azure.json.JsonSerializable<VolumeGroupMetadata>
Volume group properties.
  • Constructor Details

    • VolumeGroupMetadata

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

    • groupDescription

      public String groupDescription()
      Get the groupDescription property: Group Description.
      Returns:
      the groupDescription value.
    • withGroupDescription

      public VolumeGroupMetadata withGroupDescription(String groupDescription)
      Set the groupDescription property: Group Description.
      Parameters:
      groupDescription - the groupDescription value to set.
      Returns:
      the VolumeGroupMetadata object itself.
    • applicationType

      public ApplicationType applicationType()
      Get the applicationType property: Application Type.
      Returns:
      the applicationType value.
    • withApplicationType

      public VolumeGroupMetadata withApplicationType(ApplicationType applicationType)
      Set the applicationType property: Application Type.
      Parameters:
      applicationType - the applicationType value to set.
      Returns:
      the VolumeGroupMetadata object itself.
    • applicationIdentifier

      public String applicationIdentifier()
      Get the applicationIdentifier property: Application specific identifier.
      Returns:
      the applicationIdentifier value.
    • withApplicationIdentifier

      public VolumeGroupMetadata withApplicationIdentifier(String applicationIdentifier)
      Set the applicationIdentifier property: Application specific identifier.
      Parameters:
      applicationIdentifier - the applicationIdentifier value to set.
      Returns:
      the VolumeGroupMetadata object itself.
    • globalPlacementRules

      public List<PlacementKeyValuePairs> globalPlacementRules()
      Get the globalPlacementRules property: Application specific placement rules for the volume group.
      Returns:
      the globalPlacementRules value.
    • withGlobalPlacementRules

      public VolumeGroupMetadata withGlobalPlacementRules(List<PlacementKeyValuePairs> globalPlacementRules)
      Set the globalPlacementRules property: Application specific placement rules for the volume group.
      Parameters:
      globalPlacementRules - the globalPlacementRules value to set.
      Returns:
      the VolumeGroupMetadata object itself.
    • volumesCount

      public Long volumesCount()
      Get the volumesCount property: Number of volumes in volume group.
      Returns:
      the volumesCount value.
    • 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<VolumeGroupMetadata>
      Throws:
      IOException
    • fromJson

      public static VolumeGroupMetadata fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of VolumeGroupMetadata from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of VolumeGroupMetadata 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 VolumeGroupMetadata.