Class DryRunResult<X extends AmazonWebServiceRequest>

  • Type Parameters:
    X - The type of original, user facing request for the dry-run operation.

    public class DryRunResult<X extends AmazonWebServiceRequest>
    extends Object
    Result of a dry-run operation.
    • Method Detail

      • isSuccessful

        public boolean isSuccessful()
        Returns whether the dry-run was successful.
      • getOriginalRequest

        public DryRunSupportedRequest<X> getOriginalRequest()
        Returns the original request of the dry-run operation.
      • getMessage

        public String getMessage()
        Returns the message included in the service response.
      • getDryRunResponse

        public AmazonServiceException getDryRunResponse()
        Returns the original service response on the dry-run request. EC2 returns service error response no matter the dry-run was successful or not. The response is set with 412 status code when it was successful, and 403 status code when it failed.