Class CapacityReservationProfile
- java.lang.Object
-
- com.azure.resourcemanager.compute.models.CapacityReservationProfile
-
public final class CapacityReservationProfile extends Object
The parameters of a capacity reservation Profile.
-
-
Constructor Summary
Constructors Constructor Description CapacityReservationProfile()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.azure.core.management.SubResourcecapacityReservationGroup()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.voidvalidate()Validates the instance.CapacityReservationProfilewithCapacityReservationGroup(com.azure.core.management.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.
-
-
-
Method Detail
-
capacityReservationGroup
public com.azure.core.management.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.
-
withCapacityReservationGroup
public CapacityReservationProfile withCapacityReservationGroup(com.azure.core.management.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.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-