ReservationDetailInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. consumption. fluent. models. ReservationDetailInner
- com.
- com.
public final class ReservationDetailInner
extends ProxyResource
reservation detail resource.
Constructor Summary
| Constructor | Description |
|---|---|
| ReservationDetailInner() |
Creates an instance of Reservation |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
etag()
Get the etag property: The etag for the resource. |
|
static
Reservation |
fromJson(JsonReader jsonReader)
Reads an instance of Reservation |
| String |
id()
Get the id property: Fully qualified resource Id for the resource. |
| String |
instanceFlexibilityGroup()
Get the instance |
| String |
instanceFlexibilityRatio()
Get the instance |
| String |
instanceId()
Get the instance |
| String |
kind()
Get the kind property: The reservation kind. |
| String |
name()
Get the name property: The name of the resource. |
| String |
reservationId()
Get the reservation |
| String |
reservationOrderId()
Get the reservation |
|
Big |
reservedHours()
Get the reserved |
| String |
skuName()
Get the sku |
| Map<String,String> |
tags()
Get the tags property: Resource tags. |
|
Json |
toJson(JsonWriter jsonWriter) |
|
Big |
totalReservedQuantity()
Get the total |
| String |
type()
Get the type property: The type of the resource. |
|
Offset |
usageDate()
Get the usage |
|
Big |
usedHours()
Get the used |
| void |
validate()
Validates the instance. |
Methods inherited from ProxyResource
Methods inherited from java.lang.Object
Constructor Details
ReservationDetailInner
public ReservationDetailInner()
Creates an instance of ReservationDetailInner class.
Method Details
etag
public String etag()
Get the etag property: The etag for the resource.
Returns:
fromJson
public static ReservationDetailInner fromJson(JsonReader jsonReader)
Reads an instance of ReservationDetailInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
ReservationDetailInner.id()Returns:
instanceFlexibilityGroup
public String instanceFlexibilityGroup()
Get the instanceFlexibilityGroup property: The instance Flexibility Group.
Returns:
instanceFlexibilityRatio
public String instanceFlexibilityRatio()
Get the instanceFlexibilityRatio property: The instance Flexibility Ratio.
Returns:
instanceId
public String instanceId()
Get the instanceId property: This identifier is the name of the resource or the fully qualified Resource ID.
Returns:
kind
public String kind()
Get the kind property: The reservation kind.
Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
ReservationDetailInner.name()Returns:
reservationId
public String reservationId()
Get the reservationId property: The reservation ID is the identifier of a reservation within a reservation order. Each reservation is the grouping for applying the benefit scope and also specifies the number of instances to which the reservation benefit can be applied to.
Returns:
reservationOrderId
public String reservationOrderId()
Get the reservationOrderId property: The reservation order ID is the identifier for a reservation purchase. Each reservation order ID represents a single purchase transaction. A reservation order contains reservations. The reservation order specifies the VM size and region for the reservations.
Returns:
reservedHours
public BigDecimal reservedHours()
Get the reservedHours property: This is the total hours reserved for the day. E.g. if reservation for 1 instance was made on 1 PM, this will be 11 hours for that day and 24 hours from subsequent days.
Returns:
skuName
public String skuName()
Get the skuName property: This is the ARM Sku name. It can be used to join with the serviceType field in additional info in usage records.
Returns:
tags
public Map<String,String> tags()
Get the tags property: Resource tags.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
ReservationDetailInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
totalReservedQuantity
public BigDecimal totalReservedQuantity()
Get the totalReservedQuantity property: This is the total count of instances that are reserved for the reservationId.
Returns:
type
public String type()
Get the type property: The type of the resource.
Overrides:
ReservationDetailInner.type()Returns:
usageDate
public OffsetDateTime usageDate()
Get the usageDate property: The date on which consumption occurred.
Returns:
usedHours
public BigDecimal usedHours()
Get the usedHours property: This is the total hours used by the instance.
Returns:
validate
public void validate()
Validates the instance.