Partager via


CapacityReservationInstanceView Class

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

Implements

public class CapacityReservationInstanceView
implements JsonSerializable<CapacityReservationInstanceView>

The instance view of a capacity reservation that provides as snapshot of the runtime properties of the capacity reservation that is managed by the platform and can change outside of control plane operations.

Constructor Summary

Constructor Description
CapacityReservationInstanceView()

Creates an instance of CapacityReservationInstanceView class.

Method Summary

Modifier and Type Method and Description
static CapacityReservationInstanceView fromJson(JsonReader jsonReader)

Reads an instance of CapacityReservationInstanceView from the JsonReader.

List<InstanceViewStatus> statuses()

Get the statuses property: The resource status information.

JsonWriter toJson(JsonWriter jsonWriter)
CapacityReservationUtilization utilizationInfo()

Get the utilizationInfo property: Unutilized capacity of the capacity reservation.

void validate()

Validates the instance.

CapacityReservationInstanceView withStatuses(List<InstanceViewStatus> statuses)

Set the statuses property: The resource status information.

CapacityReservationInstanceView withUtilizationInfo(CapacityReservationUtilization utilizationInfo)

Set the utilizationInfo property: Unutilized capacity of the capacity reservation.

Methods inherited from java.lang.Object

Constructor Details

CapacityReservationInstanceView

public CapacityReservationInstanceView()

Creates an instance of CapacityReservationInstanceView class.

Method Details

fromJson

public static CapacityReservationInstanceView fromJson(JsonReader jsonReader)

Reads an instance of CapacityReservationInstanceView from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

statuses

public List statuses()

Get the statuses property: The resource status information.

Returns:

the statuses value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

utilizationInfo

public CapacityReservationUtilization utilizationInfo()

Get the utilizationInfo property: Unutilized capacity of the capacity reservation.

Returns:

the utilizationInfo value.

validate

public void validate()

Validates the instance.

withStatuses

public CapacityReservationInstanceView withStatuses(List statuses)

Set the statuses property: The resource status information.

Parameters:

statuses - the statuses value to set.

Returns:

the CapacityReservationInstanceView object itself.

withUtilizationInfo

public CapacityReservationInstanceView withUtilizationInfo(CapacityReservationUtilization utilizationInfo)

Set the utilizationInfo property: Unutilized capacity of the capacity reservation.

Parameters:

utilizationInfo - the utilizationInfo value to set.

Returns:

the CapacityReservationInstanceView object itself.

Applies to