CapacityReservationInstanceView Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. CapacityReservationInstanceView
- com.
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 Capacity |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Capacity |
fromJson(JsonReader jsonReader)
Reads an instance of Capacity |
List<Instance |
statuses()
Get the statuses property: The resource status information. |
Json |
toJson(JsonWriter jsonWriter) |
Capacity |
utilizationInfo()
Get the utilization |
void |
validate()
Validates the instance. |
Capacity |
withStatuses(List<InstanceViewStatus> statuses)
Set the statuses property: The resource status information. |
Capacity |
withUtilizationInfo(CapacityReservationUtilization utilizationInfo)
Set the utilization |
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:
Returns:
Throws:
statuses
public List
Get the statuses property: The resource status information.
Returns:
toJson
utilizationInfo
public CapacityReservationUtilization utilizationInfo()
Get the utilizationInfo property: Unutilized capacity of the capacity reservation.
Returns:
validate
public void validate()
Validates the instance.
withStatuses
public CapacityReservationInstanceView withStatuses(List
Set the statuses property: The resource status information.
Parameters:
Returns:
withUtilizationInfo
public CapacityReservationInstanceView withUtilizationInfo(CapacityReservationUtilization utilizationInfo)
Set the utilizationInfo property: Unutilized capacity of the capacity reservation.
Parameters:
Returns:
Applies to
Azure SDK for Java