Class PurchaseRequestProperties

java.lang.Object
com.azure.resourcemanager.billingbenefits.fluent.models.PurchaseRequestProperties

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

    • PurchaseRequestProperties

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

    • displayName

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

      public PurchaseRequestProperties withDisplayName(String displayName)
      Set the displayName property: Friendly name of the savings plan.
      Parameters:
      displayName - the displayName value to set.
      Returns:
      the PurchaseRequestProperties 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 PurchaseRequestProperties 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 PurchaseRequestProperties object itself.
    • term

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

      public PurchaseRequestProperties withTerm(Term term)
      Set the term property: Represent benefit term in ISO 8601 format.
      Parameters:
      term - the term value to set.
      Returns:
      the PurchaseRequestProperties 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 PurchaseRequestProperties 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 PurchaseRequestProperties object itself.
    • appliedScopeType

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

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

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

      public PurchaseRequestProperties withCommitment(Commitment commitment)
      Set the commitment property: Commitment towards the benefit.
      Parameters:
      commitment - the commitment value to set.
      Returns:
      the PurchaseRequestProperties 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 PurchaseRequestProperties 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 PurchaseRequestProperties 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 PurchaseRequestProperties 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 PurchaseRequestProperties object itself.
    • validate

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