Class VolumeGroupDetailsInner
java.lang.Object
com.azure.resourcemanager.netapp.fluent.models.VolumeGroupDetailsInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VolumeGroupDetailsInner>
public final class VolumeGroupDetailsInner
extends Object
implements com.azure.json.JsonSerializable<VolumeGroupDetailsInner>
Volume group resource for create.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of VolumeGroupDetailsInner class. -
Method Summary
Modifier and TypeMethodDescriptionstatic VolumeGroupDetailsInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VolumeGroupDetailsInner from the JsonReader.Get the groupMetadata property: Volume group details.id()Get the id property: Resource Id.location()Get the location property: Resource location.name()Get the name property: Resource name.Get the provisioningState property: Azure lifecycle management.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: Resource type.voidvalidate()Validates the instance.volumes()Get the volumes property: List of volumes from group.withGroupMetadata(VolumeGroupMetadata groupMetadata) Set the groupMetadata property: Volume group details.withLocation(String location) Set the location property: Resource location.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, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
VolumeGroupDetailsInner
public VolumeGroupDetailsInner()Creates an instance of VolumeGroupDetailsInner class.
-
-
Method Details
-
location
Get the location property: Resource location.- Returns:
- the location value.
-
withLocation
Set the location property: Resource location.- Parameters:
location- the location value to set.- Returns:
- the VolumeGroupDetailsInner object itself.
-
id
Get the id property: Resource Id.- Returns:
- the id value.
-
name
Get the name property: Resource name.- Returns:
- the name value.
-
type
Get the type property: Resource type.- Returns:
- the type value.
-
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 VolumeGroupDetailsInner 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 VolumeGroupDetailsInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<VolumeGroupDetailsInner>- Throws:
IOException
-
fromJson
public static VolumeGroupDetailsInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of VolumeGroupDetailsInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of VolumeGroupDetailsInner 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 VolumeGroupDetailsInner.
-