Package com.amazonaws.services.ec2.model
Class DryRunResult<X extends AmazonWebServiceRequest>
java.lang.Object
com.amazonaws.services.ec2.model.DryRunResult<X>
- Type Parameters:
X
- The type of original, user facing request for the dry-run operation.
Result of a dry-run operation.
-
Constructor Summary
ConstructorsConstructorDescriptionDryRunResult
(boolean isSuccessful, DryRunSupportedRequest<X> originalRequest, String message, AmazonServiceException dryRunResponse) -
Method Summary
Modifier and TypeMethodDescriptionReturns the original service response on the dry-run request.Returns the message included in the service response.Returns the original request of the dry-run operation.boolean
Returns whether the dry-run was successful.
-
Constructor Details
-
DryRunResult
public DryRunResult(boolean isSuccessful, DryRunSupportedRequest<X> originalRequest, String message, AmazonServiceException dryRunResponse)
-
-
Method Details
-
isSuccessful
public boolean isSuccessful()Returns whether the dry-run was successful. -
getOriginalRequest
Returns the original request of the dry-run operation. -
getMessage
Returns the message included in the service response. -
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.
-