Class CapacityReservationGroupUpdate
- java.lang.Object
-
- com.azure.resourcemanager.compute.models.UpdateResource
-
- com.azure.resourcemanager.compute.models.CapacityReservationGroupUpdate
-
public final class CapacityReservationGroupUpdate extends UpdateResource
Specifies information about the capacity reservation group. Only tags can be updated.
-
-
Constructor Summary
Constructors Constructor Description CapacityReservationGroupUpdate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<SubResourceReadOnly>capacityReservations()Get the capacityReservations property: A list of all capacity reservation resource ids that belong to capacity reservation group.CapacityReservationGroupInstanceViewinstanceView()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.List<SubResourceReadOnly>virtualMachinesAssociated()Get the virtualMachinesAssociated property: A list of references to all virtual machines associated to the capacity reservation group.CapacityReservationGroupUpdatewithTags(Map<String,String> tags)Set the tags property: Resource tags.-
Methods inherited from class com.azure.resourcemanager.compute.models.UpdateResource
tags
-
-
-
-
Method Detail
-
withTags
public CapacityReservationGroupUpdate withTags(Map<String,String> tags)
Set the tags property: Resource tags.- Overrides:
withTagsin classUpdateResource- Parameters:
tags- the tags value to set.- Returns:
- the UpdateResource object itself.
-
capacityReservations
public List<SubResourceReadOnly> capacityReservations()
Get the capacityReservations property: A list of all capacity reservation resource ids that belong to capacity reservation group.- Returns:
- the capacityReservations value.
-
virtualMachinesAssociated
public List<SubResourceReadOnly> virtualMachinesAssociated()
Get the virtualMachinesAssociated property: A list of references to all virtual machines associated to the capacity reservation group.- Returns:
- the virtualMachinesAssociated value.
-
instanceView
public CapacityReservationGroupInstanceView 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.- Overrides:
validatein classUpdateResource- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-