Class PurchaseRequest
java.lang.Object
com.azure.resourcemanager.billingbenefits.models.PurchaseRequest
The PurchaseRequest model.
-
Constructor Summary
-
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 commitment property: Commitment towards the benefit.Get the displayName property: Friendly name of the savings plan.Get the effectiveDateTime property: DateTime of the savings plan starts providing benefit from.renew()
Get the renew property: Setting this to true will automatically purchase a new benefit on the expiration date time.sku()
Get the sku property: The SKU to be applied for this resource.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.withCommitment
(Commitment commitment) Set the commitment property: Commitment towards the benefit.withDisplayName
(String displayName) Set the displayName property: Friendly name of the savings plan.Set the renew property: Setting this to true will automatically purchase a new benefit on the expiration date time.Set the sku property: The SKU to be applied for this resource.Set the term property: Represent benefit term in ISO 8601 format.
-
Constructor Details
-
PurchaseRequest
public PurchaseRequest()Creates an instance of PurchaseRequest class.
-
-
Method Details
-
sku
Get the sku property: The SKU to be applied for this resource.- Returns:
- the sku value.
-
withSku
Set the sku property: The SKU to be applied for this resource.- Parameters:
sku
- the sku value to set.- Returns:
- the PurchaseRequest object itself.
-
displayName
Get the displayName property: Friendly name of the savings plan.- Returns:
- the displayName value.
-
withDisplayName
Set the displayName property: Friendly name of the savings plan.- Parameters:
displayName
- the displayName value to set.- Returns:
- the PurchaseRequest 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 PurchaseRequest 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 PurchaseRequest 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 PurchaseRequest 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 PurchaseRequest object itself.
-
commitment
Get the commitment property: Commitment towards the benefit.- Returns:
- the commitment value.
-
withCommitment
Set the commitment property: Commitment towards the benefit.- Parameters:
commitment
- the commitment value to set.- Returns:
- the PurchaseRequest object itself.
-
effectiveDateTime
Get the effectiveDateTime property: DateTime of the savings plan starts providing benefit from.- Returns:
- the effectiveDateTime value.
-
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 PurchaseRequest object itself.
-
appliedScopeProperties
Get the appliedScopeProperties property: Properties specific to applied scope type. Not required if not applicable.- Returns:
- the appliedScopeProperties value.
-
withAppliedScopeProperties
Set the appliedScopeProperties property: Properties specific to applied scope type. Not required if not applicable.- Parameters:
appliedScopeProperties
- the appliedScopeProperties value to set.- Returns:
- the PurchaseRequest object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-