Class SavingsPlanUpdateRequestProperties
java.lang.Object
com.azure.resourcemanager.billingbenefits.models.SavingsPlanUpdateRequestProperties
Savings plan patch request.
-
Constructor Summary
ConstructorDescriptionCreates an instance of SavingsPlanUpdateRequestProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the appliedScopeProperties property: Properties specific to applied scope type.Get the appliedScopeType property: Type of the Applied Scope.Get the displayName property: Display name.renew()
Get the renew property: Setting this to true will automatically purchase a new benefit on the expiration date time.Get the renewProperties property: The renewProperties property.void
validate()
Validates the instance.withAppliedScopeProperties
(AppliedScopeProperties appliedScopeProperties) Set the appliedScopeProperties property: Properties specific to applied scope type.withAppliedScopeType
(AppliedScopeType appliedScopeType) Set the appliedScopeType property: Type of the Applied Scope.withDisplayName
(String displayName) Set the displayName property: Display name.Set the renew property: Setting this to true will automatically purchase a new benefit on the expiration date time.withRenewProperties
(RenewProperties renewProperties) Set the renewProperties property: The renewProperties property.
-
Constructor Details
-
SavingsPlanUpdateRequestProperties
public SavingsPlanUpdateRequestProperties()Creates an instance of SavingsPlanUpdateRequestProperties class.
-
-
Method Details
-
displayName
Get the displayName property: Display name.- Returns:
- the displayName value.
-
withDisplayName
Set the displayName property: Display name.- Parameters:
displayName
- the displayName value to set.- Returns:
- the SavingsPlanUpdateRequestProperties object itself.
-
appliedScopeType
Get the appliedScopeType property: Type of the Applied Scope.- Returns:
- the appliedScopeType value.
-
withAppliedScopeType
Set the appliedScopeType property: Type of the Applied Scope.- Parameters:
appliedScopeType
- the appliedScopeType value to set.- Returns:
- the SavingsPlanUpdateRequestProperties object itself.
-
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
Get the renew property: Setting this to true will automatically purchase a new benefit on the expiration date time.- Returns:
- the renew value.
-
withRenew
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
Get the renewProperties property: The renewProperties property.- Returns:
- the renewProperties value.
-
withRenewProperties
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.
-