CancellationReason Class
- java.
lang. Object - com.
azure. resourcemanager. databox. models. CancellationReason
- com.
Implements
public final class CancellationReason
implements JsonSerializable<CancellationReason>
Reason for cancellation.
Constructor Summary
| Constructor | Description |
|---|---|
| CancellationReason() |
Creates an instance of Cancellation |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Cancellation |
fromJson(JsonReader jsonReader)
Reads an instance of Cancellation |
| String |
reason()
Get the reason property: Reason for cancellation. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Cancellation |
withReason(String reason)
Set the reason property: Reason for cancellation. |
Methods inherited from java.lang.Object
Constructor Details
CancellationReason
public CancellationReason()
Creates an instance of CancellationReason class.
Method Details
fromJson
public static CancellationReason fromJson(JsonReader jsonReader)
Reads an instance of CancellationReason from the JsonReader.
Parameters:
Returns:
Throws:
reason
public String reason()
Get the reason property: Reason for cancellation.
Returns:
toJson
validate
public void validate()
Validates the instance.
withReason
public CancellationReason withReason(String reason)
Set the reason property: Reason for cancellation.
Parameters:
Returns: