Class CapacityReservationGroupUpdate
java.lang.Object
com.azure.resourcemanager.compute.models.UpdateResource
com.azure.resourcemanager.compute.models.CapacityReservationGroupUpdate
Specifies information about the capacity reservation group. Only tags can be updated.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of CapacityReservationGroupUpdate class. -
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.Get the sharingProfile property: Specifies the settings to enable sharing across subscriptions for the capacity reservation group resource.voidvalidate()Validates the instance.Get the virtualMachinesAssociated property: A list of references to all virtual machines associated to the capacity reservation group.withSharingProfile(ResourceSharingProfile sharingProfile) Set the sharingProfile property: Specifies the settings to enable sharing across subscriptions for the capacity reservation group resource.Set the tags property: Resource tags.Methods inherited from class com.azure.resourcemanager.compute.models.UpdateResource
tags
-
Constructor Details
-
CapacityReservationGroupUpdate
public CapacityReservationGroupUpdate()Creates an instance of CapacityReservationGroupUpdate class.
-
-
Method Details
-
withTags
Set the tags property: Resource tags.- Overrides:
withTagsin classUpdateResource- Parameters:
tags- the tags value to set.- Returns:
- the UpdateResource object itself.
-
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.
-
sharingProfile
Get the sharingProfile property: Specifies the settings to enable sharing across subscriptions for the capacity reservation group resource. Pls. keep in mind the capacity reservation group resource generally can be shared across subscriptions belonging to a single azure AAD tenant or cross AAD tenant if there is a trust relationship established between the AAD tenants. **Note:** Minimum api-version: 2023-09-01. Please refer to https://aka.ms/computereservationsharing for more details.- Returns:
- the sharingProfile value.
-
withSharingProfile
Set the sharingProfile property: Specifies the settings to enable sharing across subscriptions for the capacity reservation group resource. Pls. keep in mind the capacity reservation group resource generally can be shared across subscriptions belonging to a single azure AAD tenant or cross AAD tenant if there is a trust relationship established between the AAD tenants. **Note:** Minimum api-version: 2023-09-01. Please refer to https://aka.ms/computereservationsharing for more details.- Parameters:
sharingProfile- the sharingProfile value to set.- Returns:
- the CapacityReservationGroupUpdate object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classUpdateResource- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-