Class ReservationOrderAliasRequestProperties
java.lang.Object
com.azure.resourcemanager.billingbenefits.fluent.models.ReservationOrderAliasRequestProperties
Reservation properties.
-
Constructor Summary
ConstructorDescriptionCreates an instance of ReservationOrderAliasRequestProperties 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.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.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.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 term property: Represent benefit term in ISO 8601 format.
-
Constructor Details
-
ReservationOrderAliasRequestProperties
public ReservationOrderAliasRequestProperties()Creates an instance of ReservationOrderAliasRequestProperties class.
-
-
Method Details
-
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 ReservationOrderAliasRequestProperties 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 ReservationOrderAliasRequestProperties 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 ReservationOrderAliasRequestProperties 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 ReservationOrderAliasRequestProperties object itself.
-
appliedScopeType
Get the appliedScopeType property: Type of the Applied Scope.- Returns:
- the appliedScopeType value.
-
withAppliedScopeType
public ReservationOrderAliasRequestProperties withAppliedScopeType(AppliedScopeType appliedScopeType) Set the appliedScopeType property: Type of the Applied Scope.- Parameters:
appliedScopeType
- the appliedScopeType value to set.- Returns:
- the ReservationOrderAliasRequestProperties object itself.
-
appliedScopeProperties
Get the appliedScopeProperties property: Properties specific to applied scope type. Not required if not applicable.- Returns:
- the appliedScopeProperties value.
-
withAppliedScopeProperties
public ReservationOrderAliasRequestProperties 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 ReservationOrderAliasRequestProperties 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 ReservationOrderAliasRequestProperties 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 ReservationOrderAliasRequestProperties object itself.
-
reservedResourceType
Get the reservedResourceType property: The type of the resource that is being reserved.- Returns:
- the reservedResourceType value.
-
withReservedResourceType
public ReservationOrderAliasRequestProperties 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 ReservationOrderAliasRequestProperties 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 ReservationOrderAliasRequestProperties 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 ReservationOrderAliasRequestProperties 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 ReservationOrderAliasRequestProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-