Class ValidationResponseInner


  • public final class ValidationResponseInner
    extends Object
    Validation response.
    • Constructor Detail

      • ValidationResponseInner

        public ValidationResponseInner()
    • Method Detail

      • isValid

        public Boolean isValid()
        Get the isValid property: Whether or not validation succeeded.
        Returns:
        the isValid value.
      • errorInfo

        public ValidationResponseErrorInfo errorInfo()
        Get the errorInfo property: Failed validation result details.
        Returns:
        the errorInfo value.
      • withErrorInfo

        public ValidationResponseInner withErrorInfo​(ValidationResponseErrorInfo errorInfo)
        Set the errorInfo property: Failed validation result details.
        Parameters:
        errorInfo - the errorInfo value to set.
        Returns:
        the ValidationResponseInner object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.