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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the applicationIdentifier property: Application specific identifier.Get the applicationType property: Application Type.static VolumeGroupMetadata
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of VolumeGroupMetadata from the JsonReader.Get the globalPlacementRules property: Application specific placement rules for the volume group.Get the groupDescription property: Group Description.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.Get the volumesCount property: Number of volumes in volume group.withApplicationIdentifier
(String applicationIdentifier) Set the applicationIdentifier property: Application specific identifier.withApplicationType
(ApplicationType applicationType) Set the applicationType property: Application Type.withGlobalPlacementRules
(List<PlacementKeyValuePairs> globalPlacementRules) Set the globalPlacementRules property: Application specific placement rules for the volume group.withGroupDescription
(String groupDescription) Set the groupDescription property: Group Description.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
-
VolumeGroupMetadata
public VolumeGroupMetadata()Creates an instance of VolumeGroupMetadata class.
-
-
Method Details
-
groupDescription
Get the groupDescription property: Group Description.- Returns:
- the groupDescription value.
-
withGroupDescription
Set the groupDescription property: Group Description.- Parameters:
groupDescription
- the groupDescription value to set.- Returns:
- the VolumeGroupMetadata object itself.
-
applicationType
Get the applicationType property: Application Type.- Returns:
- the applicationType value.
-
withApplicationType
Set the applicationType property: Application Type.- Parameters:
applicationType
- the applicationType value to set.- Returns:
- the VolumeGroupMetadata object itself.
-
applicationIdentifier
Get the applicationIdentifier property: Application specific identifier.- Returns:
- the applicationIdentifier value.
-
withApplicationIdentifier
Set the applicationIdentifier property: Application specific identifier.- Parameters:
applicationIdentifier
- the applicationIdentifier value to set.- Returns:
- the VolumeGroupMetadata object itself.
-
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
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
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<VolumeGroupMetadata>
- Throws:
IOException
-
fromJson
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.
-