Class SavingsPlanValidResponseProperty
java.lang.Object
com.azure.resourcemanager.billingbenefits.models.SavingsPlanValidResponseProperty
Benefit scope response property.
-
Constructor Summary
ConstructorDescriptionCreates an instance of SavingsPlanValidResponseProperty class. -
Method Summary
Modifier and TypeMethodDescriptionreason()
Get the reason property: Failure reason if the provided input was invalid.Get the reasonCode property: Failure reason code if the provided input was invalid.valid()
Get the valid property: Indicates if the provided input was valid.void
validate()
Validates the instance.withReason
(String reason) Set the reason property: Failure reason if the provided input was invalid.withReasonCode
(String reasonCode) Set the reasonCode property: Failure reason code if the provided input was invalid.Set the valid property: Indicates if the provided input was valid.
-
Constructor Details
-
SavingsPlanValidResponseProperty
public SavingsPlanValidResponseProperty()Creates an instance of SavingsPlanValidResponseProperty class.
-
-
Method Details
-
valid
Get the valid property: Indicates if the provided input was valid.- Returns:
- the valid value.
-
withValid
Set the valid property: Indicates if the provided input was valid.- Parameters:
valid
- the valid value to set.- Returns:
- the SavingsPlanValidResponseProperty object itself.
-
reasonCode
Get the reasonCode property: Failure reason code if the provided input was invalid.- Returns:
- the reasonCode value.
-
withReasonCode
Set the reasonCode property: Failure reason code if the provided input was invalid.- Parameters:
reasonCode
- the reasonCode value to set.- Returns:
- the SavingsPlanValidResponseProperty object itself.
-
reason
Get the reason property: Failure reason if the provided input was invalid.- Returns:
- the reason value.
-
withReason
Set the reason property: Failure reason if the provided input was invalid.- Parameters:
reason
- the reason value to set.- Returns:
- the SavingsPlanValidResponseProperty object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-