SavingsPlanValidResponseProperty Class
- java.
lang. Object - com.
azure. resourcemanager. billing. models. SavingsPlanValidResponseProperty
- com.
Implements
public final class SavingsPlanValidResponseProperty
implements JsonSerializable<SavingsPlanValidResponseProperty>
Benefit scope response property.
Constructor Summary
| Constructor | Description |
|---|---|
| SavingsPlanValidResponseProperty() |
Creates an instance of Savings |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Savings |
fromJson(JsonReader jsonReader)
Reads an instance of Savings |
| String |
reason()
Get the reason property: Failure reason if the provided input is invalid. |
| String |
reasonCode()
Get the reason |
|
Json |
toJson(JsonWriter jsonWriter) |
| Boolean |
valid()
Get the valid property: Indicates if the provided input is valid. |
| void |
validate()
Validates the instance. |
|
Savings |
withReason(String reason)
Set the reason property: Failure reason if the provided input is invalid. |
|
Savings |
withReasonCode(String reasonCode)
Set the reason |
|
Savings |
withValid(Boolean valid)
Set the valid property: Indicates if the provided input is valid. |
Methods inherited from java.lang.Object
Constructor Details
SavingsPlanValidResponseProperty
public SavingsPlanValidResponseProperty()
Creates an instance of SavingsPlanValidResponseProperty class.
Method Details
fromJson
public static SavingsPlanValidResponseProperty fromJson(JsonReader jsonReader)
Reads an instance of SavingsPlanValidResponseProperty from the JsonReader.
Parameters:
Returns:
Throws:
reason
public String reason()
Get the reason property: Failure reason if the provided input is invalid.
Returns:
reasonCode
public String reasonCode()
Get the reasonCode property: Failure reason code if the provided input is invalid.
Returns:
toJson
valid
public Boolean valid()
Get the valid property: Indicates if the provided input is valid.
Returns:
validate
public void validate()
Validates the instance.
withReason
public SavingsPlanValidResponseProperty withReason(String reason)
Set the reason property: Failure reason if the provided input is invalid.
Parameters:
Returns:
withReasonCode
public SavingsPlanValidResponseProperty withReasonCode(String reasonCode)
Set the reasonCode property: Failure reason code if the provided input is invalid.
Parameters:
Returns:
withValid
public SavingsPlanValidResponseProperty withValid(Boolean valid)
Set the valid property: Indicates if the provided input is valid.
Parameters:
Returns: