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.
public class DryRunResult<X extends AmazonWebServiceRequest> extends Object
Result of a dry-run operation.
-
-
Constructor Summary
Constructors Constructor Description DryRunResult(boolean isSuccessful, DryRunSupportedRequest<X> originalRequest, String message, AmazonServiceException dryRunResponse)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AmazonServiceException
getDryRunResponse()
Returns the original service response on the dry-run request.String
getMessage()
Returns the message included in the service response.DryRunSupportedRequest<X>
getOriginalRequest()
Returns the original request of the dry-run operation.boolean
isSuccessful()
Returns whether the dry-run was successful.
-
-
-
Constructor Detail
-
DryRunResult
public DryRunResult(boolean isSuccessful, DryRunSupportedRequest<X> originalRequest, String message, AmazonServiceException dryRunResponse)
-
-
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.
-
-