Class PlacementKeyValuePairs
java.lang.Object
com.azure.resourcemanager.netapp.models.PlacementKeyValuePairs
- All Implemented Interfaces:
com.azure.json.JsonSerializable<PlacementKeyValuePairs>
public final class PlacementKeyValuePairs
extends Object
implements com.azure.json.JsonSerializable<PlacementKeyValuePairs>
Application specific parameters for the placement of volumes in the volume group.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of PlacementKeyValuePairs class. -
Method Summary
Modifier and TypeMethodDescriptionstatic PlacementKeyValuePairs
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of PlacementKeyValuePairs from the JsonReader.key()
Get the key property: Key for an application specific parameter for the placement of volumes in the volume group.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.value()
Get the value property: Value for an application specific parameter for the placement of volumes in the volume group.Set the key property: Key for an application specific parameter for the placement of volumes in the volume group.Set the value property: Value for an application specific parameter for the placement of volumes in the volume 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
-
PlacementKeyValuePairs
public PlacementKeyValuePairs()Creates an instance of PlacementKeyValuePairs class.
-
-
Method Details
-
key
Get the key property: Key for an application specific parameter for the placement of volumes in the volume group.- Returns:
- the key value.
-
withKey
Set the key property: Key for an application specific parameter for the placement of volumes in the volume group.- Parameters:
key
- the key value to set.- Returns:
- the PlacementKeyValuePairs object itself.
-
value
Get the value property: Value for an application specific parameter for the placement of volumes in the volume group.- Returns:
- the value value.
-
withValue
Set the value property: Value for an application specific parameter for the placement of volumes in the volume group.- Parameters:
value
- the value value to set.- Returns:
- the PlacementKeyValuePairs 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<PlacementKeyValuePairs>
- Throws:
IOException
-
fromJson
public static PlacementKeyValuePairs fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of PlacementKeyValuePairs from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of PlacementKeyValuePairs if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException
- If the deserialized JSON object was missing any required properties.IOException
- If an error occurs while reading the PlacementKeyValuePairs.
-