Class ReservationOrderAliasRequest
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.billingbenefits.models.ReservationOrderAliasRequest
public final class ReservationOrderAliasRequest
extends com.azure.core.management.ProxyResource
Reservation order alias.
-
Constructor Summary
ConstructorDescriptionCreates an instance of ReservationOrderAliasRequest class. -
Method Summary
Modifier and TypeMethodDescriptionGet the appliedScopeProperties property: Properties specific to applied scope type.Get the appliedScopeType property: Type of the Applied Scope.Get the billingPlan property: Represents the billing plan in ISO 8601 format.Get the billingScopeId property: Subscription that will be charged for purchasing the benefit.Get the displayName property: Display name.location()
Get the location property: The Azure Region where the reservation benefits are applied to.quantity()
Get the quantity property: Total Quantity of the SKUs purchased in the Reservation.renew()
Get the renew property: Setting this to true will automatically purchase a new benefit on the expiration date time.Get the reservedResourceProperties property: Properties specific to each reserved resource type.Get the reservedResourceType property: The type of the resource that is being reserved.Get the reviewDateTime property: This is the date-time when the Azure Hybrid Benefit needs to be reviewed.sku()
Get the sku property: Reservation order SKU.com.azure.core.management.SystemData
Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.term()
Get the term property: Represent benefit term in ISO 8601 format.void
validate()
Validates the instance.withAppliedScopeProperties
(AppliedScopeProperties appliedScopeProperties) Set the appliedScopeProperties property: Properties specific to applied scope type.withAppliedScopeType
(AppliedScopeType appliedScopeType) Set the appliedScopeType property: Type of the Applied Scope.withBillingPlan
(BillingPlan billingPlan) Set the billingPlan property: Represents the billing plan in ISO 8601 format.withBillingScopeId
(String billingScopeId) Set the billingScopeId property: Subscription that will be charged for purchasing the benefit.withDisplayName
(String displayName) Set the displayName property: Display name.withLocation
(String location) Set the location property: The Azure Region where the reservation benefits are applied to.withQuantity
(Integer quantity) Set the quantity property: Total Quantity of the SKUs purchased in the Reservation.Set the renew property: Setting this to true will automatically purchase a new benefit on the expiration date time.withReservedResourceProperties
(ReservationOrderAliasRequestPropertiesReservedResourceProperties reservedResourceProperties) Set the reservedResourceProperties property: Properties specific to each reserved resource type.withReservedResourceType
(ReservedResourceType reservedResourceType) Set the reservedResourceType property: The type of the resource that is being reserved.withReviewDateTime
(OffsetDateTime reviewDateTime) Set the reviewDateTime property: This is the date-time when the Azure Hybrid Benefit needs to be reviewed.Set the sku property: Reservation order SKU.Set the term property: Represent benefit term in ISO 8601 format.Methods inherited from class com.azure.core.management.ProxyResource
id, name, type
-
Constructor Details
-
ReservationOrderAliasRequest
public ReservationOrderAliasRequest()Creates an instance of ReservationOrderAliasRequest class.
-
-
Method Details
-
sku
Get the sku property: Reservation order SKU.- Returns:
- the sku value.
-
withSku
Set the sku property: Reservation order SKU.- Parameters:
sku
- the sku value to set.- Returns:
- the ReservationOrderAliasRequest object itself.
-
location
Get the location property: The Azure Region where the reservation benefits are applied to.- Returns:
- the location value.
-
withLocation
Set the location property: The Azure Region where the reservation benefits are applied to.- Parameters:
location
- the location value to set.- Returns:
- the ReservationOrderAliasRequest object itself.
-
systemData
public com.azure.core.management.SystemData systemData()Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.- Returns:
- the systemData value.
-
displayName
Get the displayName property: Display name.- Returns:
- the displayName value.
-
withDisplayName
Set the displayName property: Display name.- Parameters:
displayName
- the displayName value to set.- Returns:
- the ReservationOrderAliasRequest object itself.
-
billingScopeId
Get the billingScopeId property: Subscription that will be charged for purchasing the benefit.- Returns:
- the billingScopeId value.
-
withBillingScopeId
Set the billingScopeId property: Subscription that will be charged for purchasing the benefit.- Parameters:
billingScopeId
- the billingScopeId value to set.- Returns:
- the ReservationOrderAliasRequest object itself.
-
term
Get the term property: Represent benefit term in ISO 8601 format.- Returns:
- the term value.
-
withTerm
Set the term property: Represent benefit term in ISO 8601 format.- Parameters:
term
- the term value to set.- Returns:
- the ReservationOrderAliasRequest object itself.
-
billingPlan
Get the billingPlan property: Represents the billing plan in ISO 8601 format. Required only for monthly billing plans.- Returns:
- the billingPlan value.
-
withBillingPlan
Set the billingPlan property: Represents the billing plan in ISO 8601 format. Required only for monthly billing plans.- Parameters:
billingPlan
- the billingPlan value to set.- Returns:
- the ReservationOrderAliasRequest object itself.
-
appliedScopeType
Get the appliedScopeType property: Type of the Applied Scope.- Returns:
- the appliedScopeType value.
-
withAppliedScopeType
Set the appliedScopeType property: Type of the Applied Scope.- Parameters:
appliedScopeType
- the appliedScopeType value to set.- Returns:
- the ReservationOrderAliasRequest object itself.
-
appliedScopeProperties
Get the appliedScopeProperties property: Properties specific to applied scope type. Not required if not applicable.- Returns:
- the appliedScopeProperties value.
-
withAppliedScopeProperties
public ReservationOrderAliasRequest withAppliedScopeProperties(AppliedScopeProperties appliedScopeProperties) Set the appliedScopeProperties property: Properties specific to applied scope type. Not required if not applicable.- Parameters:
appliedScopeProperties
- the appliedScopeProperties value to set.- Returns:
- the ReservationOrderAliasRequest object itself.
-
quantity
Get the quantity property: Total Quantity of the SKUs purchased in the Reservation.- Returns:
- the quantity value.
-
withQuantity
Set the quantity property: Total Quantity of the SKUs purchased in the Reservation.- Parameters:
quantity
- the quantity value to set.- Returns:
- the ReservationOrderAliasRequest object itself.
-
renew
Get the renew property: Setting this to true will automatically purchase a new benefit on the expiration date time.- Returns:
- the renew value.
-
withRenew
Set the renew property: Setting this to true will automatically purchase a new benefit on the expiration date time.- Parameters:
renew
- the renew value to set.- Returns:
- the ReservationOrderAliasRequest object itself.
-
reservedResourceType
Get the reservedResourceType property: The type of the resource that is being reserved.- Returns:
- the reservedResourceType value.
-
withReservedResourceType
public ReservationOrderAliasRequest withReservedResourceType(ReservedResourceType reservedResourceType) Set the reservedResourceType property: The type of the resource that is being reserved.- Parameters:
reservedResourceType
- the reservedResourceType value to set.- Returns:
- the ReservationOrderAliasRequest object itself.
-
reviewDateTime
Get the reviewDateTime property: This is the date-time when the Azure Hybrid Benefit needs to be reviewed.- Returns:
- the reviewDateTime value.
-
withReviewDateTime
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 ReservationOrderAliasRequest object itself.
-
reservedResourceProperties
public ReservationOrderAliasRequestPropertiesReservedResourceProperties reservedResourceProperties()Get the reservedResourceProperties property: Properties specific to each reserved resource type. Not required if not applicable.- Returns:
- the reservedResourceProperties value.
-
withReservedResourceProperties
public ReservationOrderAliasRequest withReservedResourceProperties(ReservationOrderAliasRequestPropertiesReservedResourceProperties reservedResourceProperties) Set the reservedResourceProperties property: Properties specific to each reserved resource type. Not required if not applicable.- Parameters:
reservedResourceProperties
- the reservedResourceProperties value to set.- Returns:
- the ReservationOrderAliasRequest object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-