ProximityPlacementGroupInner Class

public final class ProximityPlacementGroupInner
extends Resource

Specifies information about the proximity placement group.

Constructor Summary

Constructor Description
ProximityPlacementGroupInner()

Creates an instance of ProximityPlacementGroupInner class.

Method Summary

Modifier and Type Method and Description
List<SubResourceWithColocationStatus> availabilitySets()

Get the availabilitySets property: A list of references to all availability sets in the proximity placement group.

InstanceViewStatus colocationStatus()

Get the colocationStatus property: Describes colocation status of the Proximity Placement Group.

static ProximityPlacementGroupInner fromJson(JsonReader jsonReader)

Reads an instance of ProximityPlacementGroupInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

ProximityPlacementGroupPropertiesIntent intent()

Get the intent property: Specifies the user intent of the proximity placement group.

String name()

Get the name property: The name of the resource.

ProximityPlacementGroupType proximityPlacementGroupType()

Get the proximityPlacementGroupType property: Specifies the type of the proximity placement group.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

List<SubResourceWithColocationStatus> virtualMachineScaleSets()

Get the virtualMachineScaleSets property: A list of references to all virtual machine scale sets in the proximity placement group.

List<SubResourceWithColocationStatus> virtualMachines()

Get the virtualMachines property: A list of references to all virtual machines in the proximity placement group.

ProximityPlacementGroupInner withColocationStatus(InstanceViewStatus colocationStatus)

Set the colocationStatus property: Describes colocation status of the Proximity Placement Group.

ProximityPlacementGroupInner withIntent(ProximityPlacementGroupPropertiesIntent intent)

Set the intent property: Specifies the user intent of the proximity placement group.

ProximityPlacementGroupInner withLocation(String location)
ProximityPlacementGroupInner withProximityPlacementGroupType(ProximityPlacementGroupType proximityPlacementGroupType)

Set the proximityPlacementGroupType property: Specifies the type of the proximity placement group.

ProximityPlacementGroupInner withTags(Map<String,String> tags)
ProximityPlacementGroupInner withZones(List<String> zones)

Set the zones property: Specifies the Availability Zone where virtual machine, virtual machine scale set or availability set associated with the proximity placement group can be created.

List<String> zones()

Get the zones property: Specifies the Availability Zone where virtual machine, virtual machine scale set or availability set associated with the proximity placement group can be created.

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

ProximityPlacementGroupInner

public ProximityPlacementGroupInner()

Creates an instance of ProximityPlacementGroupInner class.

Method Details

availabilitySets

public List availabilitySets()

Get the availabilitySets property: A list of references to all availability sets in the proximity placement group.

Returns:

the availabilitySets value.

colocationStatus

public InstanceViewStatus colocationStatus()

Get the colocationStatus property: Describes colocation status of the Proximity Placement Group.

Returns:

the colocationStatus value.

fromJson

public static ProximityPlacementGroupInner fromJson(JsonReader jsonReader)

Reads an instance of ProximityPlacementGroupInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ProximityPlacementGroupInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

ProximityPlacementGroupInner.id()

Returns:

the id value.

intent

public ProximityPlacementGroupPropertiesIntent intent()

Get the intent property: Specifies the user intent of the proximity placement group.

Returns:

the intent value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

ProximityPlacementGroupInner.name()

Returns:

the name value.

proximityPlacementGroupType

public ProximityPlacementGroupType proximityPlacementGroupType()

Get the proximityPlacementGroupType property: Specifies the type of the proximity placement group. Possible values are: **Standard** : Co-locate resources within an Azure region or Availability Zone. **Ultra** : For future use.

Returns:

the proximityPlacementGroupType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ProximityPlacementGroupInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

ProximityPlacementGroupInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

virtualMachineScaleSets

public List virtualMachineScaleSets()

Get the virtualMachineScaleSets property: A list of references to all virtual machine scale sets in the proximity placement group.

Returns:

the virtualMachineScaleSets value.

virtualMachines

public List virtualMachines()

Get the virtualMachines property: A list of references to all virtual machines in the proximity placement group.

Returns:

the virtualMachines value.

withColocationStatus

public ProximityPlacementGroupInner withColocationStatus(InstanceViewStatus colocationStatus)

Set the colocationStatus property: Describes colocation status of the Proximity Placement Group.

Parameters:

colocationStatus - the colocationStatus value to set.

Returns:

the ProximityPlacementGroupInner object itself.

withIntent

public ProximityPlacementGroupInner withIntent(ProximityPlacementGroupPropertiesIntent intent)

Set the intent property: Specifies the user intent of the proximity placement group.

Parameters:

intent - the intent value to set.

Returns:

the ProximityPlacementGroupInner object itself.

withLocation

public ProximityPlacementGroupInner withLocation(String location)

Overrides:

ProximityPlacementGroupInner.withLocation(String location)

Parameters:

location

withProximityPlacementGroupType

public ProximityPlacementGroupInner withProximityPlacementGroupType(ProximityPlacementGroupType proximityPlacementGroupType)

Set the proximityPlacementGroupType property: Specifies the type of the proximity placement group. Possible values are: **Standard** : Co-locate resources within an Azure region or Availability Zone. **Ultra** : For future use.

Parameters:

proximityPlacementGroupType - the proximityPlacementGroupType value to set.

Returns:

the ProximityPlacementGroupInner object itself.

withTags

public ProximityPlacementGroupInner withTags(Map tags)

Overrides:

ProximityPlacementGroupInner.withTags(Map<String,String> tags)

Parameters:

tags

withZones

public ProximityPlacementGroupInner withZones(List zones)

Set the zones property: Specifies the Availability Zone where virtual machine, virtual machine scale set or availability set associated with the proximity placement group can be created.

Parameters:

zones - the zones value to set.

Returns:

the ProximityPlacementGroupInner object itself.

zones

public List zones()

Get the zones property: Specifies the Availability Zone where virtual machine, virtual machine scale set or availability set associated with the proximity placement group can be created.

Returns:

the zones value.

Applies to