Partilhar via


ProximityPlacementGroupPropertiesIntent Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.ProximityPlacementGroupPropertiesIntent

Implements

public final class ProximityPlacementGroupPropertiesIntent
implements JsonSerializable<ProximityPlacementGroupPropertiesIntent>

Specifies the user intent of the proximity placement group.

Constructor Summary

Constructor Description
ProximityPlacementGroupPropertiesIntent()

Creates an instance of ProximityPlacementGroupPropertiesIntent class.

Method Summary

Modifier and Type Method and Description
static ProximityPlacementGroupPropertiesIntent fromJson(JsonReader jsonReader)

Reads an instance of ProximityPlacementGroupPropertiesIntent from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

List<String> vmSizes()

Get the vmSizes property: Specifies possible sizes of virtual machines that can be created in the proximity placement group.

ProximityPlacementGroupPropertiesIntent withVmSizes(List<String> vmSizes)

Set the vmSizes property: Specifies possible sizes of virtual machines that can be created in the proximity placement group.

Methods inherited from java.lang.Object

Constructor Details

ProximityPlacementGroupPropertiesIntent

public ProximityPlacementGroupPropertiesIntent()

Creates an instance of ProximityPlacementGroupPropertiesIntent class.

Method Details

fromJson

public static ProximityPlacementGroupPropertiesIntent fromJson(JsonReader jsonReader)

Reads an instance of ProximityPlacementGroupPropertiesIntent from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ProximityPlacementGroupPropertiesIntent 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 ProximityPlacementGroupPropertiesIntent.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

vmSizes

public List vmSizes()

Get the vmSizes property: Specifies possible sizes of virtual machines that can be created in the proximity placement group.

Returns:

the vmSizes value.

withVmSizes

public ProximityPlacementGroupPropertiesIntent withVmSizes(List vmSizes)

Set the vmSizes property: Specifies possible sizes of virtual machines that can be created in the proximity placement group.

Parameters:

vmSizes - the vmSizes value to set.

Returns:

the ProximityPlacementGroupPropertiesIntent object itself.

Applies to