Class AgentsAlreadyRunningAssessmentException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.amazonaws.AmazonClientException
com.amazonaws.AmazonServiceException
com.amazonaws.services.inspector.model.AgentsAlreadyRunningAssessmentException
- All Implemented Interfaces:
Serializable
You started an assessment run, but one of the instances is already participating in another assessment run.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.amazonaws.AmazonServiceException
AmazonServiceException.ErrorType
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new AgentsAlreadyRunningAssessmentException with the specified error message. -
Method Summary
Modifier and TypeMethodDescriptionYou can immediately retry your request.You can immediately retry your request.void
void
setAgentsTruncated
(Boolean agentsTruncated) void
setCanRetry
(Boolean canRetry) You can immediately retry your request.withAgents
(AgentAlreadyRunningAssessment... agents) withAgentsTruncated
(Boolean agentsTruncated) withCanRetry
(Boolean canRetry) You can immediately retry your request.Methods inherited from class com.amazonaws.AmazonServiceException
getErrorCode, getErrorMessage, getErrorType, getMessage, getRawResponse, getRawResponseContent, getRequestId, getServiceName, getStatusCode, setErrorCode, setErrorMessage, setErrorType, setRawResponse, setRawResponseContent, setRequestId, setServiceName, setStatusCode
Methods inherited from class com.amazonaws.AmazonClientException
isRetryable
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AgentsAlreadyRunningAssessmentException
Constructs a new AgentsAlreadyRunningAssessmentException with the specified error message.- Parameters:
message
- Describes the error encountered.
-
-
Method Details
-
getAgents
- Returns:
-
setAgents
- Parameters:
agents
-
-
withAgents
NOTE: This method appends the values to the existing list (if any). Use
setAgents(java.util.Collection)
orwithAgents(java.util.Collection)
if you want to override the existing values.- Parameters:
agents
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withAgents
public AgentsAlreadyRunningAssessmentException withAgents(Collection<AgentAlreadyRunningAssessment> agents) - Parameters:
agents
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAgentsTruncated
- Parameters:
agentsTruncated
-
-
getAgentsTruncated
- Returns:
-
withAgentsTruncated
- Parameters:
agentsTruncated
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isAgentsTruncated
- Returns:
-
setCanRetry
You can immediately retry your request.
- Parameters:
canRetry
- You can immediately retry your request.
-
getCanRetry
You can immediately retry your request.
- Returns:
- You can immediately retry your request.
-
withCanRetry
You can immediately retry your request.
- Parameters:
canRetry
- You can immediately retry your request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isCanRetry
You can immediately retry your request.
- Returns:
- You can immediately retry your request.
-