@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InvalidCrossAccountRoleException extends AmazonInspectorException
Amazon Inspector cannot assume the cross-account role that it needs to list your EC2 instances during the assessment run.
AmazonServiceException.ErrorType
Constructor and Description |
---|
InvalidCrossAccountRoleException(String message)
Constructs a new InvalidCrossAccountRoleException with the specified error message.
|
Modifier and Type | Method and Description |
---|---|
Boolean |
getCanRetry()
You can immediately retry your request.
|
String |
getInspectorErrorCode()
Code that indicates the type of error that is generated.
|
Boolean |
isCanRetry()
You can immediately retry your request.
|
void |
setCanRetry(Boolean canRetry)
You can immediately retry your request.
|
void |
setInspectorErrorCode(InvalidCrossAccountRoleErrorCode inspectorErrorCode)
Code that indicates the type of error that is generated.
|
void |
setInspectorErrorCode(String inspectorErrorCode)
Code that indicates the type of error that is generated.
|
InvalidCrossAccountRoleException |
withCanRetry(Boolean canRetry)
You can immediately retry your request.
|
InvalidCrossAccountRoleException |
withInspectorErrorCode(InvalidCrossAccountRoleErrorCode inspectorErrorCode)
Code that indicates the type of error that is generated.
|
InvalidCrossAccountRoleException |
withInspectorErrorCode(String inspectorErrorCode)
Code that indicates the type of error that is generated.
|
getErrorCode, getErrorMessage, getErrorType, getHttpHeaders, getMessage, getProxyHost, getRawResponse, getRawResponseContent, getRequestId, getServiceName, getStatusCode, setErrorCode, setErrorMessage, setErrorType, setHttpHeaders, setProxyHost, setRawResponse, setRawResponseContent, setRequestId, setServiceName, setStatusCode
isRetryable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public InvalidCrossAccountRoleException(String message)
message
- Describes the error encountered.public void setCanRetry(Boolean canRetry)
You can immediately retry your request.
canRetry
- You can immediately retry your request.public Boolean getCanRetry()
You can immediately retry your request.
public InvalidCrossAccountRoleException withCanRetry(Boolean canRetry)
You can immediately retry your request.
canRetry
- You can immediately retry your request.public Boolean isCanRetry()
You can immediately retry your request.
public void setInspectorErrorCode(String inspectorErrorCode)
Code that indicates the type of error that is generated.
inspectorErrorCode
- Code that indicates the type of error that is generated.InvalidCrossAccountRoleErrorCode
public String getInspectorErrorCode()
Code that indicates the type of error that is generated.
InvalidCrossAccountRoleErrorCode
public InvalidCrossAccountRoleException withInspectorErrorCode(String inspectorErrorCode)
Code that indicates the type of error that is generated.
inspectorErrorCode
- Code that indicates the type of error that is generated.InvalidCrossAccountRoleErrorCode
public void setInspectorErrorCode(InvalidCrossAccountRoleErrorCode inspectorErrorCode)
Code that indicates the type of error that is generated.
inspectorErrorCode
- Code that indicates the type of error that is generated.InvalidCrossAccountRoleErrorCode
public InvalidCrossAccountRoleException withInspectorErrorCode(InvalidCrossAccountRoleErrorCode inspectorErrorCode)
Code that indicates the type of error that is generated.
inspectorErrorCode
- Code that indicates the type of error that is generated.InvalidCrossAccountRoleErrorCode