Class Placement
java.lang.Object
com.azure.resourcemanager.storage.models.Placement
- All Implemented Interfaces:
com.azure.json.JsonSerializable<Placement>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PlacementfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of Placement from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withZonePlacementPolicy(ZonePlacementPolicy zonePlacementPolicy) Set the zonePlacementPolicy property: The availability zone pinning policy for the storage account.Get the zonePlacementPolicy property: The availability zone pinning policy for the storage account.Methods inherited from class 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
-
Placement
public Placement()Creates an instance of Placement class.
-
-
Method Details
-
zonePlacementPolicy
Get the zonePlacementPolicy property: The availability zone pinning policy for the storage account.- Returns:
- the zonePlacementPolicy value.
-
withZonePlacementPolicy
Set the zonePlacementPolicy property: The availability zone pinning policy for the storage account.- Parameters:
zonePlacementPolicy- the zonePlacementPolicy value to set.- Returns:
- the Placement 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<Placement>- Throws:
IOException
-
fromJson
Reads an instance of Placement from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of Placement 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 Placement.
-