Class CapacityReservationGroupProperties
java.lang.Object
com.azure.resourcemanager.compute.fluent.models.CapacityReservationGroupProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<CapacityReservationGroupProperties>
public final class CapacityReservationGroupProperties
extends Object
implements com.azure.json.JsonSerializable<CapacityReservationGroupProperties>
capacity reservation group Properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of CapacityReservationGroupProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the capacityReservations property: A list of all capacity reservation resource ids that belong to capacity reservation group.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of CapacityReservationGroupProperties from the JsonReader.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.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) 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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
CapacityReservationGroupProperties
public CapacityReservationGroupProperties()Creates an instance of CapacityReservationGroupProperties class.
-
-
Method Details
-
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 CapacityReservationGroupProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<CapacityReservationGroupProperties>- Throws:
IOException
-
fromJson
public static CapacityReservationGroupProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of CapacityReservationGroupProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of CapacityReservationGroupProperties 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 CapacityReservationGroupProperties.
-