Class ProvisioningError


  • public final class ProvisioningError
    extends Object
    Describes the error happened when create or update an image template.
    • Constructor Detail

      • ProvisioningError

        public ProvisioningError()
    • Method Detail

      • provisioningErrorCode

        public ProvisioningErrorCode provisioningErrorCode()
        Get the provisioningErrorCode property: Error code of the provisioning failure.
        Returns:
        the provisioningErrorCode value.
      • withProvisioningErrorCode

        public ProvisioningError withProvisioningErrorCode​(ProvisioningErrorCode provisioningErrorCode)
        Set the provisioningErrorCode property: Error code of the provisioning failure.
        Parameters:
        provisioningErrorCode - the provisioningErrorCode value to set.
        Returns:
        the ProvisioningError object itself.
      • message

        public String message()
        Get the message property: Verbose error message about the provisioning failure.
        Returns:
        the message value.
      • withMessage

        public ProvisioningError withMessage​(String message)
        Set the message property: Verbose error message about the provisioning failure.
        Parameters:
        message - the message value to set.
        Returns:
        the ProvisioningError object itself.
      • validate

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