Class CancellationReason

java.lang.Object
com.azure.resourcemanager.databox.models.CancellationReason

public final class CancellationReason extends Object
Reason for cancellation.
  • Constructor Details

    • CancellationReason

      public CancellationReason()
      Creates an instance of CancellationReason class.
  • Method Details

    • 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.