Placement Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. Placement
- com.
Implements
public final class Placement
implements JsonSerializable<Placement>
Describes the user-defined constraints for resource hardware placement.
Constructor Summary
| Constructor | Description |
|---|---|
| Placement() |
Creates an instance of Placement class. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| List<String> |
excludeZones()
Get the exclude |
| static Placement |
fromJson(JsonReader jsonReader)
Reads an instance of Placement from the Json |
| List<String> |
includeZones()
Get the include |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
| Placement |
withExcludeZones(List<String> excludeZones)
Set the exclude |
| Placement |
withIncludeZones(List<String> includeZones)
Set the include |
| Placement |
withZonePlacementPolicy(ZonePlacementPolicyType zonePlacementPolicy)
Set the zone |
|
Zone |
zonePlacementPolicy()
Get the zone |
Methods inherited from java.lang.Object
Constructor Details
Placement
public Placement()
Creates an instance of Placement class.
Method Details
excludeZones
public List<String> excludeZones()
Get the excludeZones property: This property supplements the 'zonePlacementPolicy' property. If 'zonePlacementPolicy' is set to 'Any'/'Auto', availability zone selected by the system must not be present in the list of availability zones passed with 'excludeZones'. If 'excludeZones' is not provided, all availability zones in region will be considered for selection.
Returns:
fromJson
public static Placement fromJson(JsonReader jsonReader)
Reads an instance of Placement from the JsonReader.
Parameters:
Returns:
Throws:
includeZones
public List<String> includeZones()
Get the includeZones property: This property supplements the 'zonePlacementPolicy' property. If 'zonePlacementPolicy' is set to 'Any'/'Auto', availability zone selected by the system must be present in the list of availability zones passed with 'includeZones'. If 'includeZones' is not provided, all availability zones in region will be considered for selection.
Returns:
toJson
validate
public void validate()
Validates the instance.
withExcludeZones
public Placement withExcludeZones(List<String> excludeZones)
Set the excludeZones property: This property supplements the 'zonePlacementPolicy' property. If 'zonePlacementPolicy' is set to 'Any'/'Auto', availability zone selected by the system must not be present in the list of availability zones passed with 'excludeZones'. If 'excludeZones' is not provided, all availability zones in region will be considered for selection.
Parameters:
Returns:
withIncludeZones
public Placement withIncludeZones(List<String> includeZones)
Set the includeZones property: This property supplements the 'zonePlacementPolicy' property. If 'zonePlacementPolicy' is set to 'Any'/'Auto', availability zone selected by the system must be present in the list of availability zones passed with 'includeZones'. If 'includeZones' is not provided, all availability zones in region will be considered for selection.
Parameters:
Returns:
withZonePlacementPolicy
public Placement withZonePlacementPolicy(ZonePlacementPolicyType zonePlacementPolicy)
Set the zonePlacementPolicy property: Specifies the policy for resource's placement in availability zone. Possible values are: **Any** (used for Virtual Machines), **Auto** (used for Virtual Machine Scale Sets) - An availability zone will be automatically picked by system as part of resource creation.
Parameters:
Returns:
zonePlacementPolicy
public ZonePlacementPolicyType zonePlacementPolicy()
Get the zonePlacementPolicy property: Specifies the policy for resource's placement in availability zone. Possible values are: **Any** (used for Virtual Machines), **Auto** (used for Virtual Machine Scale Sets) - An availability zone will be automatically picked by system as part of resource creation.
Returns: