Class SavingsPlanOrderModelInner

java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.billingbenefits.fluent.models.SavingsPlanOrderModelInner

public final class SavingsPlanOrderModelInner extends com.azure.core.management.ProxyResource
Savings plan order.
  • Constructor Details

    • SavingsPlanOrderModelInner

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

    • sku

      public Sku sku()
      Get the sku property: Savings plan SKU.
      Returns:
      the sku value.
    • withSku

      public SavingsPlanOrderModelInner withSku(Sku sku)
      Set the sku property: Savings plan SKU.
      Parameters:
      sku - the sku value to set.
      Returns:
      the SavingsPlanOrderModelInner 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

      public String displayName()
      Get the displayName property: Display name.
      Returns:
      the displayName value.
    • withDisplayName

      public SavingsPlanOrderModelInner withDisplayName(String displayName)
      Set the displayName property: Display name.
      Parameters:
      displayName - the displayName value to set.
      Returns:
      the SavingsPlanOrderModelInner object itself.
    • provisioningState

      public ProvisioningState provisioningState()
      Get the provisioningState property: Provisioning state.
      Returns:
      the provisioningState value.
    • billingScopeId

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

      public SavingsPlanOrderModelInner 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 SavingsPlanOrderModelInner object itself.
    • billingProfileId

      public String billingProfileId()
      Get the billingProfileId property: Fully-qualified identifier of the billing profile where the savings plan is applied. Present only for Field-led or Customer-led customers.
      Returns:
      the billingProfileId value.
    • customerId

      public String customerId()
      Get the customerId property: Fully-qualified identifier of the customer where the savings plan is applied. Present only for Partner-led customers.
      Returns:
      the customerId value.
    • billingAccountId

      public String billingAccountId()
      Get the billingAccountId property: Fully-qualified identifier of the billing account where the savings plan is applied. Present only for Enterprise Agreement customers.
      Returns:
      the billingAccountId value.
    • term

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

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

      public OffsetDateTime expiryDateTime()
      Get the expiryDateTime property: Expiry date time.
      Returns:
      the expiryDateTime value.
    • benefitStartTime

      public OffsetDateTime benefitStartTime()
      Get the benefitStartTime property: This is the DateTime when the savings plan benefit started.
      Returns:
      the benefitStartTime value.
    • withBenefitStartTime

      public SavingsPlanOrderModelInner withBenefitStartTime(OffsetDateTime benefitStartTime)
      Set the benefitStartTime property: This is the DateTime when the savings plan benefit started.
      Parameters:
      benefitStartTime - the benefitStartTime value to set.
      Returns:
      the SavingsPlanOrderModelInner object itself.
    • planInformation

      public BillingPlanInformation planInformation()
      Get the planInformation property: Information describing the type of billing plan for this savings plan.
      Returns:
      the planInformation value.
    • withPlanInformation

      public SavingsPlanOrderModelInner withPlanInformation(BillingPlanInformation planInformation)
      Set the planInformation property: Information describing the type of billing plan for this savings plan.
      Parameters:
      planInformation - the planInformation value to set.
      Returns:
      the SavingsPlanOrderModelInner object itself.
    • savingsPlans

      public List<String> savingsPlans()
      Get the savingsPlans property: The savingsPlans property.
      Returns:
      the savingsPlans value.
    • withSavingsPlans

      public SavingsPlanOrderModelInner withSavingsPlans(List<String> savingsPlans)
      Set the savingsPlans property: The savingsPlans property.
      Parameters:
      savingsPlans - the savingsPlans value to set.
      Returns:
      the SavingsPlanOrderModelInner object itself.
    • extendedStatusInfo

      public ExtendedStatusInfo extendedStatusInfo()
      Get the extendedStatusInfo property: The extendedStatusInfo property.
      Returns:
      the extendedStatusInfo value.
    • validate

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