CapacityReservationInstanceViewWithName Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. CapacityReservationInstanceView - com.
azure. resourcemanager. compute. models. CapacityReservationInstanceViewWithName
- com.
- com.
public final class CapacityReservationInstanceViewWithName
extends CapacityReservationInstanceView
The instance view of a capacity reservation that includes the name of the capacity reservation. It is used for the response to the instance view of a capacity reservation group.
Constructor Summary
Constructor | Description |
---|---|
CapacityReservationInstanceViewWithName() |
Creates an instance of Capacity |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Capacity |
fromJson(JsonReader jsonReader)
Reads an instance of Capacity |
String |
name()
Get the name property: The name of the capacity reservation. |
Json |
toJson(JsonWriter jsonWriter) |
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 CapacityReservationInstanceView
Methods inherited from java.lang.Object
Constructor Details
CapacityReservationInstanceViewWithName
public CapacityReservationInstanceViewWithName()
Creates an instance of CapacityReservationInstanceViewWithName class.
Method Details
fromJson
public static CapacityReservationInstanceViewWithName fromJson(JsonReader jsonReader)
Reads an instance of CapacityReservationInstanceViewWithName from the JsonReader.
Parameters:
Returns:
Throws:
name
public String name()
Get the name property: The name of the capacity reservation.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
CapacityReservationInstanceViewWithName.toJson(JsonWriter jsonWriter)Parameters:
Throws:
validate
public void validate()
Validates the instance.
Overrides:
CapacityReservationInstanceViewWithName.validate()withStatuses
public CapacityReservationInstanceViewWithName withStatuses(List
Set the statuses property: The resource status information.
Overrides:
CapacityReservationInstanceViewWithName.withStatuses(List<InstanceViewStatus> statuses)Parameters:
withUtilizationInfo
public CapacityReservationInstanceViewWithName withUtilizationInfo(CapacityReservationUtilization utilizationInfo)
Set the utilizationInfo property: Unutilized capacity of the capacity reservation.
Overrides:
CapacityReservationInstanceViewWithName.withUtilizationInfo(CapacityReservationUtilization utilizationInfo)Parameters:
Applies to
Azure SDK for Java