Class PurchaseRequest

java.lang.Object
com.azure.resourcemanager.billingbenefits.models.PurchaseRequest

public final class PurchaseRequest extends Object
The PurchaseRequest model.
  • Constructor Details

    • PurchaseRequest

      public PurchaseRequest()
      Creates an instance of PurchaseRequest class.
  • Method Details

    • sku

      public Sku sku()
      Get the sku property: The SKU to be applied for this resource.
      Returns:
      the sku value.
    • withSku

      public PurchaseRequest withSku(Sku sku)
      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

      public String displayName()
      Get the displayName property: Friendly name of the savings plan.
      Returns:
      the displayName value.
    • withDisplayName

      public PurchaseRequest withDisplayName(String displayName)
      Set the displayName property: Friendly name of the savings plan.
      Parameters:
      displayName - the displayName value to set.
      Returns:
      the PurchaseRequest object itself.
    • billingScopeId

      public String billingScopeId()
      Get the billingScopeId property: Subscription that will be charged for purchasing the benefit.
      Returns:
      the billingScopeId value.
    • withBillingScopeId

      public PurchaseRequest withBillingScopeId(String billingScopeId)
      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

      public Term term()
      Get the term property: Represent benefit term in ISO 8601 format.
      Returns:
      the term value.
    • withTerm

      public PurchaseRequest withTerm(Term term)
      Set the term property: Represent benefit term in ISO 8601 format.
      Parameters:
      term - the term value to set.
      Returns:
      the PurchaseRequest object itself.
    • billingPlan

      public BillingPlan billingPlan()
      Get the billingPlan property: Represents the billing plan in ISO 8601 format. Required only for monthly billing plans.
      Returns:
      the billingPlan value.
    • withBillingPlan

      public PurchaseRequest withBillingPlan(BillingPlan billingPlan)
      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

      public AppliedScopeType appliedScopeType()
      Get the appliedScopeType property: Type of the Applied Scope.
      Returns:
      the appliedScopeType value.
    • withAppliedScopeType

      public PurchaseRequest withAppliedScopeType(AppliedScopeType appliedScopeType)
      Set the appliedScopeType property: Type of the Applied Scope.
      Parameters:
      appliedScopeType - the appliedScopeType value to set.
      Returns:
      the PurchaseRequest object itself.
    • commitment

      public Commitment commitment()
      Get the commitment property: Commitment towards the benefit.
      Returns:
      the commitment value.
    • withCommitment

      public PurchaseRequest withCommitment(Commitment commitment)
      Set the commitment property: Commitment towards the benefit.
      Parameters:
      commitment - the commitment value to set.
      Returns:
      the PurchaseRequest object itself.
    • effectiveDateTime

      public OffsetDateTime effectiveDateTime()
      Get the effectiveDateTime property: DateTime of the savings plan starts providing benefit from.
      Returns:
      the effectiveDateTime value.
    • renew

      public Boolean 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

      public PurchaseRequest withRenew(Boolean renew)
      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

      public AppliedScopeProperties appliedScopeProperties()
      Get the appliedScopeProperties property: Properties specific to applied scope type. Not required if not applicable.
      Returns:
      the appliedScopeProperties value.
    • withAppliedScopeProperties

      public PurchaseRequest 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 PurchaseRequest object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.