ReservationInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. billing. fluent. models. ReservationInner
- com.
- com.
public final class ReservationInner
extends ProxyResource
The definition of the reservation.
Constructor Summary
| Constructor | Description |
|---|---|
| ReservationInner() |
Creates an instance of Reservation |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
List<Reservation |
aggregates()
Get the aggregates property: The array of aggregates of a reservation's utilization. |
|
Reservation |
appliedScopeProperties()
Get the applied |
| List<String> |
appliedScopes()
Get the applied |
| String |
appliedScopeType()
Get the applied |
| Boolean |
archived()
Get the archived property: Indicates if the reservation is archived. |
|
Offset |
benefitStartTime()
Get the benefit |
|
Reservation |
billingPlan()
Get the billing |
| String |
billingScopeId()
Get the billing |
| String |
capabilities()
Get the capabilities property: Capabilities of the reservation. |
| String |
displayName()
Get the display |
| String |
displayProvisioningState()
Get the display |
|
Offset |
effectiveDateTime()
Get the effective |
| Integer |
etag()
Get the etag property: The etag property. |
| String |
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. |
|
Instance |
instanceFlexibility()
Get the instance |
|
Offset |
lastUpdatedDateTime()
Get the last |
| String |
location()
Get the location property: The location of the reservation. |
|
Reservation |
mergeProperties()
Get the merge |
| String |
name()
Get the name property: The name of the resource. |
| String |
productCode()
Get the product |
| String |
provisioningState()
Get the provisioning |
| String |
provisioningSubState()
Get the provisioning |
|
Local |
purchaseDate()
Get the purchase |
|
Offset |
purchaseDateTime()
Get the purchase |
| Float |
quantity()
Get the quantity property: The number of the reservation. |
| Boolean |
renew()
Get the renew property: The renew state of the reservation. |
| String |
renewDestination()
Get the renew |
|
Renew |
renewProperties()
Get the renew |
| String |
renewSource()
Get the renew |
| String |
reservedResourceType()
Get the reserved |
|
Offset |
reviewDateTime()
Get the review |
|
Reservation |
sku()
Get the sku property: The sku information associated to this reservation. |
| String |
skuDescription()
Get the sku |
|
Reservation |
splitProperties()
Get the split |
|
Reservation |
swapProperties()
Get the swap |
|
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 |
trend()
Get the trend property: last 7 day utilization trend for a reservation. |
| String |
type()
Get the type property: The type of the resource. |
| String |
userFriendlyAppliedScopeType()
Get the user |
| String |
userFriendlyRenewState()
Get the user |
| void |
validate()
Validates the instance. |
|
Reservation |
withAppliedScopeProperties(ReservationAppliedScopeProperties appliedScopeProperties)
Set the applied |
|
Reservation |
withAppliedScopes(List<String> appliedScopes)
Set the applied |
|
Reservation |
withArchived(Boolean archived)
Set the archived property: Indicates if the reservation is archived. |
|
Reservation |
withBenefitStartTime(OffsetDateTime benefitStartTime)
Set the benefit |
|
Reservation |
withBillingPlan(ReservationBillingPlan billingPlan)
Set the billing |
|
Reservation |
withCapabilities(String capabilities)
Set the capabilities property: Capabilities of the reservation. |
|
Reservation |
withEtag(Integer etag)
Set the etag property: The etag property. |
|
Reservation |
withExpiryDateTime(OffsetDateTime expiryDateTime)
Set the expiry |
|
Reservation |
withExtendedStatusInfo(ReservationExtendedStatusInfo extendedStatusInfo)
Set the extended |
|
Reservation |
withInstanceFlexibility(InstanceFlexibility instanceFlexibility)
Set the instance |
|
Reservation |
withLocation(String location)
Set the location property: The location of the reservation. |
|
Reservation |
withMergeProperties(ReservationMergeProperties mergeProperties)
Set the merge |
|
Reservation |
withProductCode(String productCode)
Set the product |
|
Reservation |
withPurchaseDate(LocalDate purchaseDate)
Set the purchase |
|
Reservation |
withPurchaseDateTime(OffsetDateTime purchaseDateTime)
Set the purchase |
|
Reservation |
withRenewDestination(String renewDestination)
Set the renew |
|
Reservation |
withRenewProperties(RenewPropertiesResponse renewProperties)
Set the renew |
|
Reservation |
withReviewDateTime(OffsetDateTime reviewDateTime)
Set the review |
|
Reservation |
withSku(ReservationSkuProperty sku)
Set the sku property: The sku information associated to this reservation. |
|
Reservation |
withSplitProperties(ReservationSplitProperties splitProperties)
Set the split |
|
Reservation |
withSwapProperties(ReservationSwapProperties swapProperties)
Set the swap |
|
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
ReservationInner
public ReservationInner()
Creates an instance of ReservationInner class.
Method Details
aggregates
public List<ReservationUtilizationAggregates> aggregates()
Get the aggregates property: The array of aggregates of a reservation's utilization.
Returns:
appliedScopeProperties
public ReservationAppliedScopeProperties appliedScopeProperties()
Get the appliedScopeProperties property: Properties specific to applied scope type. Not required if not applicable. Required and need to provide tenantId and managementGroupId if AppliedScopeType is ManagementGroup.
Returns:
appliedScopes
public List<String> appliedScopes()
Get the appliedScopes property: The array of applied scopes of a reservation. Will be null if the reservation is in Shared scope.
Returns:
appliedScopeType
public String appliedScopeType()
Get the appliedScopeType property: The applied scope type of the reservation.
Returns:
archived
public Boolean archived()
Get the archived property: Indicates if the reservation is archived.
Returns:
benefitStartTime
public OffsetDateTime benefitStartTime()
Get the benefitStartTime property: This is the DateTime when the reservation benefit started.
Returns:
billingPlan
public ReservationBillingPlan billingPlan()
Get the billingPlan property: The billing plan options available for this sku.
Returns:
billingScopeId
public String billingScopeId()
Get the billingScopeId property: Subscription that will be charged for purchasing reservation or savings plan.
Returns:
capabilities
public String capabilities()
Get the capabilities property: Capabilities of the reservation.
Returns:
displayName
public String displayName()
Get the displayName property: The display name of the reservation.
Returns:
displayProvisioningState
public String displayProvisioningState()
Get the displayProvisioningState property: The provisioning state of the reservation for display, e.g. Succeeded.
Returns:
effectiveDateTime
public OffsetDateTime effectiveDateTime()
Get the effectiveDateTime property: The effective date time of the reservation.
Returns:
etag
public Integer etag()
Get the etag property: The etag property.
Returns:
expiryDate
public String expiryDate()
Get the expiryDate property: The expiry date of the reservation.
Returns:
expiryDateTime
public OffsetDateTime expiryDateTime()
Get the expiryDateTime property: This is the date-time when the reservation will expire.
Returns:
extendedStatusInfo
public ReservationExtendedStatusInfo extendedStatusInfo()
Get the extendedStatusInfo property: The message giving detailed information about the status code.
Returns:
fromJson
public static ReservationInner fromJson(JsonReader jsonReader)
Reads an instance of ReservationInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
ReservationInner.id()Returns:
instanceFlexibility
public InstanceFlexibility instanceFlexibility()
Get the instanceFlexibility property: Allows reservation discount to be applied across skus within the same auto fit group. Not all skus support instance size flexibility.
Returns:
lastUpdatedDateTime
public OffsetDateTime lastUpdatedDateTime()
Get the lastUpdatedDateTime property: DateTime of the last time the reservation was updated.
Returns:
location
public String location()
Get the location property: The location of the reservation.
Returns:
mergeProperties
public ReservationMergeProperties mergeProperties()
Get the mergeProperties property: Properties of reservation merge.
Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
ReservationInner.name()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:
provisioningSubState
public String provisioningSubState()
Get the provisioningSubState property: The provisioning state of the reservation, e.g. Succeeded.
Returns:
purchaseDate
public LocalDate purchaseDate()
Get the purchaseDate property: This is the date when the reservation was purchased.
Returns:
purchaseDateTime
public OffsetDateTime purchaseDateTime()
Get the purchaseDateTime property: This is the date-time when the reservation was purchased.
Returns:
quantity
public Float quantity()
Get the quantity property: The number of the reservation.
Returns:
renew
public Boolean renew()
Get the renew property: The renew state of the reservation.
Returns:
renewDestination
public String renewDestination()
Get the renewDestination property: Reservation Id of the reservation which is purchased because of renew. Format of the resource Id is /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}.
Returns:
renewProperties
public RenewPropertiesResponse renewProperties()
Get the renewProperties property: The renew properties for a reservation.
Returns:
renewSource
public String renewSource()
Get the renewSource property: The renew source of the reservation.
Returns:
reservedResourceType
public String reservedResourceType()
Get the reservedResourceType property: The reserved source type of the reservation, e.g. virtual machine.
Returns:
reviewDateTime
public OffsetDateTime reviewDateTime()
Get the reviewDateTime property: This is the date-time when the Azure Hybrid Benefit needs to be reviewed.
Returns:
sku
public ReservationSkuProperty sku()
Get the sku property: The sku information associated to this reservation.
Returns:
skuDescription
public String skuDescription()
Get the skuDescription property: The sku description of the reservation.
Returns:
splitProperties
public ReservationSplitProperties splitProperties()
Get the splitProperties property: Properties of reservation split.
Returns:
swapProperties
public ReservationSwapProperties swapProperties()
Get the swapProperties property: Properties of reservation swap.
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:
ReservationInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
trend
public String trend()
Get the trend property: last 7 day utilization trend for a reservation.
Returns:
type
public String type()
Get the type property: The type of the resource.
Overrides:
ReservationInner.type()Returns:
userFriendlyAppliedScopeType
public String userFriendlyAppliedScopeType()
Get the userFriendlyAppliedScopeType property: The applied scope type of the reservation for display, e.g. Shared.
Returns:
userFriendlyRenewState
public String userFriendlyRenewState()
Get the userFriendlyRenewState property: The renew state of the reservation for display, e.g. On.
Returns:
validate
public void validate()
Validates the instance.
withAppliedScopeProperties
public ReservationInner withAppliedScopeProperties(ReservationAppliedScopeProperties appliedScopeProperties)
Set the appliedScopeProperties property: Properties specific to applied scope type. Not required if not applicable. Required and need to provide tenantId and managementGroupId if AppliedScopeType is ManagementGroup.
Parameters:
Returns:
withAppliedScopes
public ReservationInner withAppliedScopes(List<String> appliedScopes)
Set the appliedScopes property: The array of applied scopes of a reservation. Will be null if the reservation is in Shared scope.
Parameters:
Returns:
withArchived
public ReservationInner withArchived(Boolean archived)
Set the archived property: Indicates if the reservation is archived.
Parameters:
Returns:
withBenefitStartTime
public ReservationInner withBenefitStartTime(OffsetDateTime benefitStartTime)
Set the benefitStartTime property: This is the DateTime when the reservation benefit started.
Parameters:
Returns:
withBillingPlan
public ReservationInner withBillingPlan(ReservationBillingPlan billingPlan)
Set the billingPlan property: The billing plan options available for this sku.
Parameters:
Returns:
withCapabilities
public ReservationInner withCapabilities(String capabilities)
Set the capabilities property: Capabilities of the reservation.
Parameters:
Returns:
withEtag
public ReservationInner withEtag(Integer etag)
Set the etag property: The etag property.
Parameters:
Returns:
withExpiryDateTime
public ReservationInner withExpiryDateTime(OffsetDateTime expiryDateTime)
Set the expiryDateTime property: This is the date-time when the reservation will expire.
Parameters:
Returns:
withExtendedStatusInfo
public ReservationInner withExtendedStatusInfo(ReservationExtendedStatusInfo extendedStatusInfo)
Set the extendedStatusInfo property: The message giving detailed information about the status code.
Parameters:
Returns:
withInstanceFlexibility
public ReservationInner withInstanceFlexibility(InstanceFlexibility instanceFlexibility)
Set the instanceFlexibility property: Allows reservation discount to be applied across skus within the same auto fit group. Not all skus support instance size flexibility.
Parameters:
Returns:
withLocation
public ReservationInner withLocation(String location)
Set the location property: The location of the reservation.
Parameters:
Returns:
withMergeProperties
public ReservationInner withMergeProperties(ReservationMergeProperties mergeProperties)
Set the mergeProperties property: Properties of reservation merge.
Parameters:
Returns:
withProductCode
public ReservationInner withProductCode(String productCode)
Set the productCode property: Represents UPN.
Parameters:
Returns:
withPurchaseDate
public ReservationInner withPurchaseDate(LocalDate purchaseDate)
Set the purchaseDate property: This is the date when the reservation was purchased.
Parameters:
Returns:
withPurchaseDateTime
public ReservationInner withPurchaseDateTime(OffsetDateTime purchaseDateTime)
Set the purchaseDateTime property: This is the date-time when the reservation was purchased.
Parameters:
Returns:
withRenewDestination
public ReservationInner withRenewDestination(String renewDestination)
Set the renewDestination property: Reservation Id of the reservation which is purchased because of renew. Format of the resource Id is /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}.
Parameters:
Returns:
withRenewProperties
public ReservationInner withRenewProperties(RenewPropertiesResponse renewProperties)
Set the renewProperties property: The renew properties for a reservation.
Parameters:
Returns:
withReviewDateTime
public ReservationInner withReviewDateTime(OffsetDateTime reviewDateTime)
Set the reviewDateTime property: This is the date-time when the Azure Hybrid Benefit needs to be reviewed.
Parameters:
Returns:
withSku
public ReservationInner withSku(ReservationSkuProperty sku)
Set the sku property: The sku information associated to this reservation.
Parameters:
Returns:
withSplitProperties
public ReservationInner withSplitProperties(ReservationSplitProperties splitProperties)
Set the splitProperties property: Properties of reservation split.
Parameters:
Returns:
withSwapProperties
public ReservationInner withSwapProperties(ReservationSwapProperties swapProperties)
Set the swapProperties property: Properties of reservation swap.
Parameters:
Returns:
withTags
public ReservationInner withTags(Map<String,String> tags)
Set the tags property: Tags for this reservation.
Parameters:
Returns: