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
public class AgentsAlreadyRunningAssessmentException extends AmazonServiceException
You started an assessment run, but one of the instances is already participating in another assessment run.
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.amazonaws.AmazonServiceException
AmazonServiceException.ErrorType
-
-
Constructor Summary
Constructors Constructor Description AgentsAlreadyRunningAssessmentException(String message)
Constructs a new AgentsAlreadyRunningAssessmentException with the specified error message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<AgentAlreadyRunningAssessment>
getAgents()
Boolean
getAgentsTruncated()
Boolean
getCanRetry()
You can immediately retry your request.Boolean
isAgentsTruncated()
Boolean
isCanRetry()
You can immediately retry your request.void
setAgents(Collection<AgentAlreadyRunningAssessment> agents)
void
setAgentsTruncated(Boolean agentsTruncated)
void
setCanRetry(Boolean canRetry)
You can immediately retry your request.AgentsAlreadyRunningAssessmentException
withAgents(AgentAlreadyRunningAssessment... agents)
AgentsAlreadyRunningAssessmentException
withAgents(Collection<AgentAlreadyRunningAssessment> agents)
AgentsAlreadyRunningAssessmentException
withAgentsTruncated(Boolean agentsTruncated)
AgentsAlreadyRunningAssessmentException
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 Detail
-
AgentsAlreadyRunningAssessmentException
public AgentsAlreadyRunningAssessmentException(String message)
Constructs a new AgentsAlreadyRunningAssessmentException with the specified error message.- Parameters:
message
- Describes the error encountered.
-
-
Method Detail
-
getAgents
public List<AgentAlreadyRunningAssessment> getAgents()
- Returns:
-
setAgents
public void setAgents(Collection<AgentAlreadyRunningAssessment> agents)
- Parameters:
agents
-
-
withAgents
public AgentsAlreadyRunningAssessmentException withAgents(AgentAlreadyRunningAssessment... agents)
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
public void setAgentsTruncated(Boolean agentsTruncated)
- Parameters:
agentsTruncated
-
-
getAgentsTruncated
public Boolean getAgentsTruncated()
- Returns:
-
withAgentsTruncated
public AgentsAlreadyRunningAssessmentException withAgentsTruncated(Boolean agentsTruncated)
- Parameters:
agentsTruncated
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isAgentsTruncated
public Boolean isAgentsTruncated()
- Returns:
-
setCanRetry
public void setCanRetry(Boolean canRetry)
You can immediately retry your request.
- Parameters:
canRetry
- You can immediately retry your request.
-
getCanRetry
public Boolean getCanRetry()
You can immediately retry your request.
- Returns:
- You can immediately retry your request.
-
withCanRetry
public AgentsAlreadyRunningAssessmentException withCanRetry(Boolean canRetry)
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
public Boolean isCanRetry()
You can immediately retry your request.
- Returns:
- You can immediately retry your request.
-
-