Class CancellationReason


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

      • CancellationReason

        public CancellationReason()
    • 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.