ReservationOrderInner Class

public final class ReservationOrderInner
extends ProxyResource

Details of a reservation order being returned.

Constructor Summary

Constructor Description
ReservationOrderInner()

Creates an instance of ReservationOrderInner class.

Method Summary

Modifier and Type Method and Description
OffsetDateTime benefitStartTime()

Get the benefitStartTime property: This is the DateTime when the reservation benefit started.

String billingAccountId()

Get the billingAccountId property: Billing account Id associated to this reservation order.

ReservationBillingPlan billingPlan()

Get the billingPlan property: Represent the billing plans.

String billingProfileId()

Get the billingProfileId property: Billing profile Id associated to this reservation order.

OffsetDateTime createdDateTime()

Get the createdDateTime property: This is the DateTime when the reservation order was created.

String customerId()

Get the customerId property: Fully-qualified identifier of the customerId where the benefit is applied.

String displayName()

Get the displayName property: Friendly name for user to easily identified the reservation order.

String enrollmentId()

Get the enrollmentId property: Enrollment id of the reservation order.

Integer etag()

Get the etag property: The etag property.

LocalDate expiryDate()

Get the expiryDate property: This is the date when the reservation order will expire.

OffsetDateTime expiryDateTime()

Get the expiryDateTime property: This is the date-time when the reservation order will expire.

ReservationExtendedStatusInfo extendedStatusInfo()

Get the extendedStatusInfo property: Extended status information for the reservation.

static ReservationOrderInner fromJson(JsonReader jsonReader)

Reads an instance of ReservationOrderInner from the JsonReader.

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 originalQuantity property: Total original quantity of the skus purchased in the reservation order.

ReservationOrderBillingPlanInformation planInformation()

Get the planInformation property: Information describing the type of billing plan for this reservation order.

String productCode()

Get the productCode property: Represents UPN.

String provisioningState()

Get the provisioningState property: The provisioning state of the reservation, e.g.

OffsetDateTime requestDateTime()

Get the requestDateTime property: This is the DateTime when the reservation order was initially requested for purchase.

List<ReservationInner> reservations()

Get the reservations property: The reservations property.

OffsetDateTime reviewDateTime()

Get the reviewDateTime property: This is the date-time when the Azure Hybrid Benefit needs to be reviewed.

SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Map<String,String> tags()

Get the tags property: Tags for this reservation.

String term()

Get the term property: The term of the reservation, e.g.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

ReservationOrderInner withBenefitStartTime(OffsetDateTime benefitStartTime)

Set the benefitStartTime property: This is the DateTime when the reservation benefit started.

ReservationOrderInner withBillingAccountId(String billingAccountId)

Set the billingAccountId property: Billing account Id associated to this reservation order.

ReservationOrderInner withBillingPlan(ReservationBillingPlan billingPlan)

Set the billingPlan property: Represent the billing plans.

ReservationOrderInner withBillingProfileId(String billingProfileId)

Set the billingProfileId property: Billing profile Id associated to this reservation order.

ReservationOrderInner withCreatedDateTime(OffsetDateTime createdDateTime)

Set the createdDateTime property: This is the DateTime when the reservation order was created.

ReservationOrderInner withCustomerId(String customerId)

Set the customerId property: Fully-qualified identifier of the customerId where the benefit is applied.

ReservationOrderInner withDisplayName(String displayName)

Set the displayName property: Friendly name for user to easily identified the reservation order.

ReservationOrderInner withEnrollmentId(String enrollmentId)

Set the enrollmentId property: Enrollment id of the reservation order.

ReservationOrderInner withEtag(Integer etag)

Set the etag property: The etag property.

ReservationOrderInner withExpiryDate(LocalDate expiryDate)

Set the expiryDate property: This is the date when the reservation order will expire.

ReservationOrderInner withExpiryDateTime(OffsetDateTime expiryDateTime)

Set the expiryDateTime property: This is the date-time when the reservation order will expire.

ReservationOrderInner withExtendedStatusInfo(ReservationExtendedStatusInfo extendedStatusInfo)

Set the extendedStatusInfo property: Extended status information for the reservation.

ReservationOrderInner withOriginalQuantity(Integer originalQuantity)

Set the originalQuantity property: Total original quantity of the skus purchased in the reservation order.

ReservationOrderInner withPlanInformation(ReservationOrderBillingPlanInformation planInformation)

Set the planInformation property: Information describing the type of billing plan for this reservation order.

ReservationOrderInner withProductCode(String productCode)

Set the productCode property: Represents UPN.

ReservationOrderInner withRequestDateTime(OffsetDateTime requestDateTime)

Set the requestDateTime property: This is the DateTime when the reservation order was initially requested for purchase.

ReservationOrderInner withReservations(List<ReservationInner> reservations)

Set the reservations property: The reservations property.

ReservationOrderInner withReviewDateTime(OffsetDateTime reviewDateTime)

Set the reviewDateTime property: This is the date-time when the Azure Hybrid Benefit needs to be reviewed.

ReservationOrderInner 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:

the benefitStartTime value.

billingAccountId

public String billingAccountId()

Get the billingAccountId property: Billing account Id associated to this reservation order.

Returns:

the billingAccountId value.

billingPlan

public ReservationBillingPlan billingPlan()

Get the billingPlan property: Represent the billing plans.

Returns:

the billingPlan value.

billingProfileId

public String billingProfileId()

Get the billingProfileId property: Billing profile Id associated to this reservation order.

Returns:

the billingProfileId value.

createdDateTime

public OffsetDateTime createdDateTime()

Get the createdDateTime property: This is the DateTime when the reservation order was created.

Returns:

the createdDateTime value.

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:

the customerId value.

displayName

public String displayName()

Get the displayName property: Friendly name for user to easily identified the reservation order.

Returns:

the displayName value.

enrollmentId

public String enrollmentId()

Get the enrollmentId property: Enrollment id of the reservation order.

Returns:

the enrollmentId value.

etag

public Integer etag()

Get the etag property: The etag property.

Returns:

the etag value.

expiryDate

public LocalDate expiryDate()

Get the expiryDate property: This is the date when the reservation order will expire.

Returns:

the expiryDate value.

expiryDateTime

public OffsetDateTime expiryDateTime()

Get the expiryDateTime property: This is the date-time when the reservation order will expire.

Returns:

the expiryDateTime value.

extendedStatusInfo

public ReservationExtendedStatusInfo extendedStatusInfo()

Get the extendedStatusInfo property: Extended status information for the reservation.

Returns:

the extendedStatusInfo value.

fromJson

public static ReservationOrderInner fromJson(JsonReader jsonReader)

Reads an instance of ReservationOrderInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ReservationOrderInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

ReservationOrderInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

ReservationOrderInner.name()

Returns:

the name value.

originalQuantity

public Integer originalQuantity()

Get the originalQuantity property: Total original quantity of the skus purchased in the reservation order.

Returns:

the originalQuantity value.

planInformation

public ReservationOrderBillingPlanInformation planInformation()

Get the planInformation property: Information describing the type of billing plan for this reservation order.

Returns:

the planInformation value.

productCode

public String productCode()

Get the productCode property: Represents UPN.

Returns:

the productCode value.

provisioningState

public String provisioningState()

Get the provisioningState property: The provisioning state of the reservation, e.g. Succeeded.

Returns:

the provisioningState value.

requestDateTime

public OffsetDateTime requestDateTime()

Get the requestDateTime property: This is the DateTime when the reservation order was initially requested for purchase.

Returns:

the requestDateTime value.

reservations

public List<ReservationInner> reservations()

Get the reservations property: The reservations property.

Returns:

the reservations value.

reviewDateTime

public OffsetDateTime reviewDateTime()

Get the reviewDateTime property: This is the date-time when the Azure Hybrid Benefit needs to be reviewed.

Returns:

the reviewDateTime value.

systemData

public SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Returns:

the systemData value.

tags

public Map<String,String> tags()

Get the tags property: Tags for this reservation.

Returns:

the tags value.

term

public String term()

Get the term property: The term of the reservation, e.g. P1Y.

Returns:

the term value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ReservationOrderInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

ReservationOrderInner.type()

Returns:

the type value.

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:

benefitStartTime - the benefitStartTime value to set.

Returns:

the ReservationOrderInner object itself.

withBillingAccountId

public ReservationOrderInner withBillingAccountId(String billingAccountId)

Set the billingAccountId property: Billing account Id associated to this reservation order.

Parameters:

billingAccountId - the billingAccountId value to set.

Returns:

the ReservationOrderInner object itself.

withBillingPlan

public ReservationOrderInner withBillingPlan(ReservationBillingPlan billingPlan)

Set the billingPlan property: Represent the billing plans.

Parameters:

billingPlan - the billingPlan value to set.

Returns:

the ReservationOrderInner object itself.

withBillingProfileId

public ReservationOrderInner withBillingProfileId(String billingProfileId)

Set the billingProfileId property: Billing profile Id associated to this reservation order.

Parameters:

billingProfileId - the billingProfileId value to set.

Returns:

the ReservationOrderInner object itself.

withCreatedDateTime

public ReservationOrderInner withCreatedDateTime(OffsetDateTime createdDateTime)

Set the createdDateTime property: This is the DateTime when the reservation order was created.

Parameters:

createdDateTime - the createdDateTime value to set.

Returns:

the ReservationOrderInner object itself.

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:

customerId - the customerId value to set.

Returns:

the ReservationOrderInner object itself.

withDisplayName

public ReservationOrderInner withDisplayName(String displayName)

Set the displayName property: Friendly name for user to easily identified the reservation order.

Parameters:

displayName - the displayName value to set.

Returns:

the ReservationOrderInner object itself.

withEnrollmentId

public ReservationOrderInner withEnrollmentId(String enrollmentId)

Set the enrollmentId property: Enrollment id of the reservation order.

Parameters:

enrollmentId - the enrollmentId value to set.

Returns:

the ReservationOrderInner object itself.

withEtag

public ReservationOrderInner withEtag(Integer etag)

Set the etag property: The etag property.

Parameters:

etag - the etag value to set.

Returns:

the ReservationOrderInner object itself.

withExpiryDate

public ReservationOrderInner withExpiryDate(LocalDate expiryDate)

Set the expiryDate property: This is the date when the reservation order will expire.

Parameters:

expiryDate - the expiryDate value to set.

Returns:

the ReservationOrderInner object itself.

withExpiryDateTime

public ReservationOrderInner withExpiryDateTime(OffsetDateTime expiryDateTime)

Set the expiryDateTime property: This is the date-time when the reservation order will expire.

Parameters:

expiryDateTime - the expiryDateTime value to set.

Returns:

the ReservationOrderInner object itself.

withExtendedStatusInfo

public ReservationOrderInner withExtendedStatusInfo(ReservationExtendedStatusInfo extendedStatusInfo)

Set the extendedStatusInfo property: Extended status information for the reservation.

Parameters:

extendedStatusInfo - the extendedStatusInfo value to set.

Returns:

the ReservationOrderInner object itself.

withOriginalQuantity

public ReservationOrderInner withOriginalQuantity(Integer originalQuantity)

Set the originalQuantity property: Total original quantity of the skus purchased in the reservation order.

Parameters:

originalQuantity - the originalQuantity value to set.

Returns:

the ReservationOrderInner object itself.

withPlanInformation

public ReservationOrderInner withPlanInformation(ReservationOrderBillingPlanInformation planInformation)

Set the planInformation property: Information describing the type of billing plan for this reservation order.

Parameters:

planInformation - the planInformation value to set.

Returns:

the ReservationOrderInner object itself.

withProductCode

public ReservationOrderInner withProductCode(String productCode)

Set the productCode property: Represents UPN.

Parameters:

productCode - the productCode value to set.

Returns:

the ReservationOrderInner object itself.

withRequestDateTime

public ReservationOrderInner withRequestDateTime(OffsetDateTime requestDateTime)

Set the requestDateTime property: This is the DateTime when the reservation order was initially requested for purchase.

Parameters:

requestDateTime - the requestDateTime value to set.

Returns:

the ReservationOrderInner object itself.

withReservations

public ReservationOrderInner withReservations(List<ReservationInner> reservations)

Set the reservations property: The reservations property.

Parameters:

reservations - the reservations value to set.

Returns:

the ReservationOrderInner object itself.

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:

reviewDateTime - the reviewDateTime value to set.

Returns:

the ReservationOrderInner object itself.

withTags

public ReservationOrderInner withTags(Map<String,String> tags)

Set the tags property: Tags for this reservation.

Parameters:

tags - the tags value to set.

Returns:

the ReservationOrderInner object itself.

Applies to