Class CancellationReason
java.lang.Object
com.azure.resourcemanager.databox.models.CancellationReason
Reason for cancellation.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionreason()
Get the reason property: Reason for cancellation.void
validate()
Validates the instance.withReason
(String reason) Set the reason property: Reason for cancellation.
-
Constructor Details
-
CancellationReason
public CancellationReason()Creates an instance of CancellationReason class.
-
-
Method Details
-
reason
Get the reason property: Reason for cancellation.- Returns:
- the reason value.
-
withReason
Set the reason property: Reason for cancellation.- Parameters:
reason
- the reason value to set.- Returns:
- the CancellationReason object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-