Class SavingsPlanUpdateRequestProperties

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

public final class SavingsPlanUpdateRequestProperties extends Object
Savings plan patch request.
  • Constructor Details

    • SavingsPlanUpdateRequestProperties

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

    • displayName

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

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

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

      public SavingsPlanUpdateRequestProperties withAppliedScopeType(AppliedScopeType appliedScopeType)
      Set the appliedScopeType property: Type of the Applied Scope.
      Parameters:
      appliedScopeType - the appliedScopeType value to set.
      Returns:
      the SavingsPlanUpdateRequestProperties 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 SavingsPlanUpdateRequestProperties 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 SavingsPlanUpdateRequestProperties object itself.
    • 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 SavingsPlanUpdateRequestProperties 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 SavingsPlanUpdateRequestProperties object itself.
    • renewProperties

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

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

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