Class CapacityReservationGroupInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.compute.fluent.models.CapacityReservationGroupInner
public final class CapacityReservationGroupInner
extends com.azure.core.management.Resource
Specifies information about the capacity reservation group that the capacity reservations should be assigned to.
<br><br> Currently, a capacity reservation can only be added to a capacity reservation group at creation
time. An existing capacity reservation cannot be added or moved to another capacity reservation group.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the capacityReservations property: A list of all capacity reservation resource ids that belong to capacity reservation group.Get the instanceView property: The capacity reservation group instance view which has the list of instance views for all the capacity reservations that belong to the capacity reservation group.voidvalidate()Validates the instance.Get the virtualMachinesAssociated property: A list of references to all virtual machines associated to the capacity reservation group.withLocation(String location) Set the zones property: Availability Zones to use for this capacity reservation group.zones()Get the zones property: Availability Zones to use for this capacity reservation group.Methods inherited from class com.azure.core.management.Resource
location, tagsMethods inherited from class com.azure.core.management.ProxyResource
id, name, type
-
Constructor Details
-
CapacityReservationGroupInner
public CapacityReservationGroupInner()
-
-
Method Details
-
zones
Get the zones property: Availability Zones to use for this capacity reservation group. The zones can be assigned only during creation. If not provided, the group supports only regional resources in the region. If provided, enforces each capacity reservation in the group to be in one of the zones.- Returns:
- the zones value.
-
withZones
Set the zones property: Availability Zones to use for this capacity reservation group. The zones can be assigned only during creation. If not provided, the group supports only regional resources in the region. If provided, enforces each capacity reservation in the group to be in one of the zones.- Parameters:
zones- the zones value to set.- Returns:
- the CapacityReservationGroupInner object itself.
-
withLocation
- Overrides:
withLocationin classcom.azure.core.management.Resource
-
withTags
- Overrides:
withTagsin classcom.azure.core.management.Resource
-
capacityReservations
Get the capacityReservations property: A list of all capacity reservation resource ids that belong to capacity reservation group.- Returns:
- the capacityReservations value.
-
virtualMachinesAssociated
Get the virtualMachinesAssociated property: A list of references to all virtual machines associated to the capacity reservation group.- Returns:
- the virtualMachinesAssociated value.
-
instanceView
Get the instanceView property: The capacity reservation group instance view which has the list of instance views for all the capacity reservations that belong to the capacity reservation group.- Returns:
- the instanceView value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-