다음을 통해 공유


CapacityReservationProfile Class

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

Implements

public final class CapacityReservationProfile
implements JsonSerializable<CapacityReservationProfile>

The parameters of a capacity reservation Profile.

Constructor Summary

Constructor Description
CapacityReservationProfile()

Creates an instance of CapacityReservationProfile class.

Method Summary

Modifier and Type Method and Description
SubResource capacityReservationGroup()

Get the capacityReservationGroup property: Specifies the capacity reservation group resource id that should be used for allocating the virtual machine or scaleset vm instances provided enough capacity has been reserved.

static CapacityReservationProfile fromJson(JsonReader jsonReader)

Reads an instance of CapacityReservationProfile from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

CapacityReservationProfile withCapacityReservationGroup(SubResource capacityReservationGroup)

Set the capacityReservationGroup property: Specifies the capacity reservation group resource id that should be used for allocating the virtual machine or scaleset vm instances provided enough capacity has been reserved.

Methods inherited from java.lang.Object

Constructor Details

CapacityReservationProfile

public CapacityReservationProfile()

Creates an instance of CapacityReservationProfile class.

Method Details

capacityReservationGroup

public SubResource capacityReservationGroup()

Get the capacityReservationGroup property: Specifies the capacity reservation group resource id that should be used for allocating the virtual machine or scaleset vm instances provided enough capacity has been reserved. Please refer to https://aka.ms/CapacityReservation for more details.

Returns:

the capacityReservationGroup value.

fromJson

public static CapacityReservationProfile fromJson(JsonReader jsonReader)

Reads an instance of CapacityReservationProfile from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCapacityReservationGroup

public CapacityReservationProfile withCapacityReservationGroup(SubResource capacityReservationGroup)

Set the capacityReservationGroup property: Specifies the capacity reservation group resource id that should be used for allocating the virtual machine or scaleset vm instances provided enough capacity has been reserved. Please refer to https://aka.ms/CapacityReservation for more details.

Parameters:

capacityReservationGroup - the capacityReservationGroup value to set.

Returns:

the CapacityReservationProfile object itself.

Applies to