Class CancellationReason
- java.lang.Object
-
- com.azure.resourcemanager.edgeorder.models.CancellationReason
-
public final class CancellationReason extends Object
Reason for cancellation.
-
-
Constructor Summary
Constructors Constructor Description CancellationReason()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
reason()
Get the reason property: Reason for cancellation.void
validate()
Validates the instance.CancellationReason
withReason(String reason)
Set the reason property: Reason for cancellation.
-
-
-
Method Detail
-
reason
public String reason()
Get the reason property: Reason for cancellation.- Returns:
- the reason value.
-
withReason
public CancellationReason withReason(String reason)
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.
-
-