Class SavingsPlanModelInner

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

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

    • SavingsPlanModelInner

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

    • sku

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

      public SavingsPlanModelInner withSku(Sku sku)
      Set the sku property: Savings plan SKU.
      Parameters:
      sku - the sku value to set.
      Returns:
      the SavingsPlanModelInner 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 SavingsPlanModelInner withDisplayName(String displayName)
      Set the displayName property: Display name.
      Parameters:
      displayName - the displayName value to set.
      Returns:
      the SavingsPlanModelInner object itself.
    • provisioningState

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

      public String displayProvisioningState()
      Get the displayProvisioningState property: The provisioning state of the savings plan for display, e.g. Succeeded.
      Returns:
      the displayProvisioningState value.
    • billingScopeId

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

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

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

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

      public String userFriendlyAppliedScopeType()
      Get the userFriendlyAppliedScopeType property: The applied scope type of the savings plan for display, e.g. Shared.
      Returns:
      the userFriendlyAppliedScopeType value.
    • 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 SavingsPlanModelInner 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 SavingsPlanModelInner object itself.
    • commitment

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

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

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

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

      public OffsetDateTime purchaseDateTime()
      Get the purchaseDateTime property: Date time when the savings plan was purchased.
      Returns:
      the purchaseDateTime 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 SavingsPlanModelInner 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 SavingsPlanModelInner object itself.
    • extendedStatusInfo

      public ExtendedStatusInfo extendedStatusInfo()
      Get the extendedStatusInfo property: The extendedStatusInfo property.
      Returns:
      the extendedStatusInfo 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 SavingsPlanModelInner 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 SavingsPlanModelInner object itself.
    • utilization

      public Utilization utilization()
      Get the utilization property: Savings plan utilization.
      Returns:
      the utilization value.
    • renewSource

      public String renewSource()
      Get the renewSource property: SavingsPlan Id of the SavingsPlan from which this SavingsPlan is renewed.
      Returns:
      the renewSource value.
    • withRenewSource

      public SavingsPlanModelInner withRenewSource(String renewSource)
      Set the renewSource property: SavingsPlan Id of the SavingsPlan from which this SavingsPlan is renewed.
      Parameters:
      renewSource - the renewSource value to set.
      Returns:
      the SavingsPlanModelInner object itself.
    • renewDestination

      public String renewDestination()
      Get the renewDestination property: SavingsPlan Id of the SavingsPlan which is purchased because of renew.
      Returns:
      the renewDestination value.
    • withRenewDestination

      public SavingsPlanModelInner withRenewDestination(String renewDestination)
      Set the renewDestination property: SavingsPlan Id of the SavingsPlan which is purchased because of renew.
      Parameters:
      renewDestination - the renewDestination value to set.
      Returns:
      the SavingsPlanModelInner object itself.
    • renewProperties

      public RenewProperties renewProperties()
      Get the renewProperties property: The renewProperties property.
      Returns:
      the renewProperties value.
    • withRenewProperties

      public SavingsPlanModelInner withRenewProperties(RenewProperties renewProperties)
      Set the renewProperties property: The renewProperties property.
      Parameters:
      renewProperties - the renewProperties value to set.
      Returns:
      the SavingsPlanModelInner object itself.
    • validate

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