com.amazonaws.services.ec2.model
Class DryRunResult<X extends AmazonWebServiceRequest>

java.lang.Object
  extended by 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 java.lang.Object

Result of a dry-run operation.


Constructor Summary
DryRunResult(boolean isSuccessful, DryRunSupportedRequest<X> originalRequest, java.lang.String message, AmazonServiceException dryRunResponse)
           
 
Method Summary
 AmazonServiceException getDryRunResponse()
          Returns the original service response on the dry-run request.
 java.lang.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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DryRunResult

public DryRunResult(boolean isSuccessful,
                    DryRunSupportedRequest<X> originalRequest,
                    java.lang.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 java.lang.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.



Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.