Partager via


CapacityReservationGroupInstanceView Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.CapacityReservationGroupInstanceView

Implements

public final class CapacityReservationGroupInstanceView
implements JsonSerializable<CapacityReservationGroupInstanceView>

The CapacityReservationGroupInstanceView model.

Constructor Summary

Constructor Description
CapacityReservationGroupInstanceView()

Creates an instance of CapacityReservationGroupInstanceView class.

Method Summary

Modifier and Type Method and Description
List<CapacityReservationInstanceViewWithName> capacityReservations()

Get the capacityReservations property: List of instance view of the capacity reservations under the capacity reservation group.

static CapacityReservationGroupInstanceView fromJson(JsonReader jsonReader)

Reads an instance of CapacityReservationGroupInstanceView from the JsonReader.

List<SubResourceReadOnly> sharedSubscriptionIds()

Get the sharedSubscriptionIds property: List of the subscriptions that the capacity reservation group is shared with.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

CapacityReservationGroupInstanceView

public CapacityReservationGroupInstanceView()

Creates an instance of CapacityReservationGroupInstanceView class.

Method Details

capacityReservations

public List capacityReservations()

Get the capacityReservations property: List of instance view of the capacity reservations under the capacity reservation group.

Returns:

the capacityReservations value.

fromJson

public static CapacityReservationGroupInstanceView fromJson(JsonReader jsonReader)

Reads an instance of CapacityReservationGroupInstanceView from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of CapacityReservationGroupInstanceView 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 CapacityReservationGroupInstanceView.

sharedSubscriptionIds

public List sharedSubscriptionIds()

Get the sharedSubscriptionIds property: List of the subscriptions that the capacity reservation group is shared with. **Note:** Minimum api-version: 2023-09-01. Please refer to https://aka.ms/computereservationsharing for more details.

Returns:

the sharedSubscriptionIds value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to