Class VolumeGroupProperties
java.lang.Object
com.azure.resourcemanager.netapp.fluent.models.VolumeGroupProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VolumeGroupProperties>
public final class VolumeGroupProperties
extends Object
implements com.azure.json.JsonSerializable<VolumeGroupProperties>
Volume group properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic VolumeGroupProperties
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of VolumeGroupProperties from the JsonReader.Get the groupMetadata property: Volume group details.Get the provisioningState property: Azure lifecycle management.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.volumes()
Get the volumes property: List of volumes from group.withGroupMetadata
(VolumeGroupMetadata groupMetadata) Set the groupMetadata property: Volume group details.withVolumes
(List<VolumeGroupVolumeProperties> volumes) Set the volumes property: List of volumes from group.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
-
VolumeGroupProperties
public VolumeGroupProperties()Creates an instance of VolumeGroupProperties class.
-
-
Method Details
-
provisioningState
Get the provisioningState property: Azure lifecycle management.- Returns:
- the provisioningState value.
-
groupMetadata
Get the groupMetadata property: Volume group details.- Returns:
- the groupMetadata value.
-
withGroupMetadata
Set the groupMetadata property: Volume group details.- Parameters:
groupMetadata
- the groupMetadata value to set.- Returns:
- the VolumeGroupProperties object itself.
-
volumes
Get the volumes property: List of volumes from group.- Returns:
- the volumes value.
-
withVolumes
Set the volumes property: List of volumes from group.- Parameters:
volumes
- the volumes value to set.- Returns:
- the VolumeGroupProperties object itself.
-
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<VolumeGroupProperties>
- Throws:
IOException
-
fromJson
public static VolumeGroupProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of VolumeGroupProperties from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of VolumeGroupProperties 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 VolumeGroupProperties.
-