ReservationOrderInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. billing. fluent. models. ReservationOrderInner
- com.
- com.
public final class ReservationOrderInner
extends ProxyResource
Details of a reservation order being returned.
Constructor Summary
| Constructor | Description |
|---|---|
| ReservationOrderInner() |
Creates an instance of Reservation |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Offset |
benefitStartTime()
Get the benefit |
| String |
billingAccountId()
Get the billing |
|
Reservation |
billingPlan()
Get the billing |
| String |
billingProfileId()
Get the billing |
|
Offset |
createdDateTime()
Get the created |
| String |
customerId()
Get the customer |
| String |
displayName()
Get the display |
| String |
enrollmentId()
Get the enrollment |
| Integer |
etag()
Get the etag property: The etag property. |
|
Local |
expiryDate()
Get the expiry |
|
Offset |
expiryDateTime()
Get the expiry |
|
Reservation |
extendedStatusInfo()
Get the extended |
|
static
Reservation |
fromJson(JsonReader jsonReader)
Reads an instance of Reservation |
| String |
id()
Get the id property: Fully qualified resource Id for the resource. |
| String |
name()
Get the name property: The name of the resource. |
| Integer |
originalQuantity()
Get the original |
|
Reservation |
planInformation()
Get the plan |
| String |
productCode()
Get the product |
| String |
provisioningState()
Get the provisioning |
|
Offset |
requestDateTime()
Get the request |
|
List<Reservation |
reservations()
Get the reservations property: The reservations property. |
|
Offset |
reviewDateTime()
Get the review |
|
System |
systemData()
Get the system |
| Map<String,String> |
tags()
Get the tags property: Tags for this reservation. |
| String |
term()
Get the term property: The term of the reservation, e. |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
type()
Get the type property: The type of the resource. |
| void |
validate()
Validates the instance. |
|
Reservation |
withBenefitStartTime(OffsetDateTime benefitStartTime)
Set the benefit |
|
Reservation |
withBillingAccountId(String billingAccountId)
Set the billing |
|
Reservation |
withBillingPlan(ReservationBillingPlan billingPlan)
Set the billing |
|
Reservation |
withBillingProfileId(String billingProfileId)
Set the billing |
|
Reservation |
withCreatedDateTime(OffsetDateTime createdDateTime)
Set the created |
|
Reservation |
withCustomerId(String customerId)
Set the customer |
|
Reservation |
withDisplayName(String displayName)
Set the display |
|
Reservation |
withEnrollmentId(String enrollmentId)
Set the enrollment |
|
Reservation |
withEtag(Integer etag)
Set the etag property: The etag property. |
|
Reservation |
withExpiryDate(LocalDate expiryDate)
Set the expiry |
|
Reservation |
withExpiryDateTime(OffsetDateTime expiryDateTime)
Set the expiry |
|
Reservation |
withExtendedStatusInfo(ReservationExtendedStatusInfo extendedStatusInfo)
Set the extended |
|
Reservation |
withOriginalQuantity(Integer originalQuantity)
Set the original |
|
Reservation |
withPlanInformation(ReservationOrderBillingPlanInformation planInformation)
Set the plan |
|
Reservation |
withProductCode(String productCode)
Set the product |
|
Reservation |
withRequestDateTime(OffsetDateTime requestDateTime)
Set the request |
|
Reservation |
withReservations(List<ReservationInner> reservations)
Set the reservations property: The reservations property. |
|
Reservation |
withReviewDateTime(OffsetDateTime reviewDateTime)
Set the review |
|
Reservation |
withTags(Map<String,String> tags)
Set the tags property: Tags for this reservation. |
Methods inherited from ProxyResource
Methods inherited from java.lang.Object
Constructor Details
ReservationOrderInner
public ReservationOrderInner()
Creates an instance of ReservationOrderInner class.
Method Details
benefitStartTime
public OffsetDateTime benefitStartTime()
Get the benefitStartTime property: This is the DateTime when the reservation benefit started.
Returns:
billingAccountId
public String billingAccountId()
Get the billingAccountId property: Billing account Id associated to this reservation order.
Returns:
billingPlan
public ReservationBillingPlan billingPlan()
Get the billingPlan property: Represent the billing plans.
Returns:
billingProfileId
public String billingProfileId()
Get the billingProfileId property: Billing profile Id associated to this reservation order.
Returns:
createdDateTime
public OffsetDateTime createdDateTime()
Get the createdDateTime property: This is the DateTime when the reservation order was created.
Returns:
customerId
public String customerId()
Get the customerId property: Fully-qualified identifier of the customerId where the benefit is applied. Present only for Enterprise Agreement PartnerLed customers.
Returns:
displayName
public String displayName()
Get the displayName property: Friendly name for user to easily identified the reservation order.
Returns:
enrollmentId
public String enrollmentId()
Get the enrollmentId property: Enrollment id of the reservation order.
Returns:
etag
public Integer etag()
Get the etag property: The etag property.
Returns:
expiryDate
public LocalDate expiryDate()
Get the expiryDate property: This is the date when the reservation order will expire.
Returns:
expiryDateTime
public OffsetDateTime expiryDateTime()
Get the expiryDateTime property: This is the date-time when the reservation order will expire.
Returns:
extendedStatusInfo
public ReservationExtendedStatusInfo extendedStatusInfo()
Get the extendedStatusInfo property: Extended status information for the reservation.
Returns:
fromJson
public static ReservationOrderInner fromJson(JsonReader jsonReader)
Reads an instance of ReservationOrderInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
ReservationOrderInner.id()Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
ReservationOrderInner.name()Returns:
originalQuantity
public Integer originalQuantity()
Get the originalQuantity property: Total original quantity of the skus purchased in the reservation order.
Returns:
planInformation
public ReservationOrderBillingPlanInformation planInformation()
Get the planInformation property: Information describing the type of billing plan for this reservation order.
Returns:
productCode
public String productCode()
Get the productCode property: Represents UPN.
Returns:
provisioningState
public String provisioningState()
Get the provisioningState property: The provisioning state of the reservation, e.g. Succeeded.
Returns:
requestDateTime
public OffsetDateTime requestDateTime()
Get the requestDateTime property: This is the DateTime when the reservation order was initially requested for purchase.
Returns:
reservations
public List<ReservationInner> reservations()
Get the reservations property: The reservations property.
Returns:
reviewDateTime
public OffsetDateTime reviewDateTime()
Get the reviewDateTime property: This is the date-time when the Azure Hybrid Benefit needs to be reviewed.
Returns:
systemData
public SystemData systemData()
Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
Returns:
tags
public Map<String,String> tags()
Get the tags property: Tags for this reservation.
Returns:
term
public String term()
Get the term property: The term of the reservation, e.g. P1Y.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
ReservationOrderInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
ReservationOrderInner.type()Returns:
validate
public void validate()
Validates the instance.
withBenefitStartTime
public ReservationOrderInner withBenefitStartTime(OffsetDateTime benefitStartTime)
Set the benefitStartTime property: This is the DateTime when the reservation benefit started.
Parameters:
Returns:
withBillingAccountId
public ReservationOrderInner withBillingAccountId(String billingAccountId)
Set the billingAccountId property: Billing account Id associated to this reservation order.
Parameters:
Returns:
withBillingPlan
public ReservationOrderInner withBillingPlan(ReservationBillingPlan billingPlan)
Set the billingPlan property: Represent the billing plans.
Parameters:
Returns:
withBillingProfileId
public ReservationOrderInner withBillingProfileId(String billingProfileId)
Set the billingProfileId property: Billing profile Id associated to this reservation order.
Parameters:
Returns:
withCreatedDateTime
public ReservationOrderInner withCreatedDateTime(OffsetDateTime createdDateTime)
Set the createdDateTime property: This is the DateTime when the reservation order was created.
Parameters:
Returns:
withCustomerId
public ReservationOrderInner withCustomerId(String customerId)
Set the customerId property: Fully-qualified identifier of the customerId where the benefit is applied. Present only for Enterprise Agreement PartnerLed customers.
Parameters:
Returns:
withDisplayName
public ReservationOrderInner withDisplayName(String displayName)
Set the displayName property: Friendly name for user to easily identified the reservation order.
Parameters:
Returns:
withEnrollmentId
public ReservationOrderInner withEnrollmentId(String enrollmentId)
Set the enrollmentId property: Enrollment id of the reservation order.
Parameters:
Returns:
withEtag
public ReservationOrderInner withEtag(Integer etag)
Set the etag property: The etag property.
Parameters:
Returns:
withExpiryDate
public ReservationOrderInner withExpiryDate(LocalDate expiryDate)
Set the expiryDate property: This is the date when the reservation order will expire.
Parameters:
Returns:
withExpiryDateTime
public ReservationOrderInner withExpiryDateTime(OffsetDateTime expiryDateTime)
Set the expiryDateTime property: This is the date-time when the reservation order will expire.
Parameters:
Returns:
withExtendedStatusInfo
public ReservationOrderInner withExtendedStatusInfo(ReservationExtendedStatusInfo extendedStatusInfo)
Set the extendedStatusInfo property: Extended status information for the reservation.
Parameters:
Returns:
withOriginalQuantity
public ReservationOrderInner withOriginalQuantity(Integer originalQuantity)
Set the originalQuantity property: Total original quantity of the skus purchased in the reservation order.
Parameters:
Returns:
withPlanInformation
public ReservationOrderInner withPlanInformation(ReservationOrderBillingPlanInformation planInformation)
Set the planInformation property: Information describing the type of billing plan for this reservation order.
Parameters:
Returns:
withProductCode
public ReservationOrderInner withProductCode(String productCode)
Set the productCode property: Represents UPN.
Parameters:
Returns:
withRequestDateTime
public ReservationOrderInner withRequestDateTime(OffsetDateTime requestDateTime)
Set the requestDateTime property: This is the DateTime when the reservation order was initially requested for purchase.
Parameters:
Returns:
withReservations
public ReservationOrderInner withReservations(List<ReservationInner> reservations)
Set the reservations property: The reservations property.
Parameters:
Returns:
withReviewDateTime
public ReservationOrderInner withReviewDateTime(OffsetDateTime reviewDateTime)
Set the reviewDateTime property: This is the date-time when the Azure Hybrid Benefit needs to be reviewed.
Parameters:
Returns:
withTags
public ReservationOrderInner withTags(Map<String,String> tags)
Set the tags property: Tags for this reservation.
Parameters:
Returns: