Class AgentAlreadyRunningAssessment
- java.lang.Object
-
- com.amazonaws.services.inspector.model.AgentAlreadyRunningAssessment
-
- All Implemented Interfaces:
Serializable,Cloneable
public class AgentAlreadyRunningAssessment extends Object implements Serializable, Cloneable
Used in the exception error that is thrown if you start an assessment run for an assessment target that includes an EC2 instance that is already participating in another started assessment run.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AgentAlreadyRunningAssessment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AgentAlreadyRunningAssessmentclone()booleanequals(Object obj)StringgetAgentId()ID of the agent that is running on an EC2 instance that is already participating in another started assessment run.StringgetAssessmentRunArn()The ARN of the assessment run that has already been started.inthashCode()voidsetAgentId(String agentId)ID of the agent that is running on an EC2 instance that is already participating in another started assessment run.voidsetAssessmentRunArn(String assessmentRunArn)The ARN of the assessment run that has already been started.StringtoString()Returns a string representation of this object; useful for testing and debugging.AgentAlreadyRunningAssessmentwithAgentId(String agentId)ID of the agent that is running on an EC2 instance that is already participating in another started assessment run.AgentAlreadyRunningAssessmentwithAssessmentRunArn(String assessmentRunArn)The ARN of the assessment run that has already been started.
-
-
-
Method Detail
-
setAgentId
public void setAgentId(String agentId)
ID of the agent that is running on an EC2 instance that is already participating in another started assessment run.
- Parameters:
agentId- ID of the agent that is running on an EC2 instance that is already participating in another started assessment run.
-
getAgentId
public String getAgentId()
ID of the agent that is running on an EC2 instance that is already participating in another started assessment run.
- Returns:
- ID of the agent that is running on an EC2 instance that is already participating in another started assessment run.
-
withAgentId
public AgentAlreadyRunningAssessment withAgentId(String agentId)
ID of the agent that is running on an EC2 instance that is already participating in another started assessment run.
- Parameters:
agentId- ID of the agent that is running on an EC2 instance that is already participating in another started assessment run.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAssessmentRunArn
public void setAssessmentRunArn(String assessmentRunArn)
The ARN of the assessment run that has already been started.
- Parameters:
assessmentRunArn- The ARN of the assessment run that has already been started.
-
getAssessmentRunArn
public String getAssessmentRunArn()
The ARN of the assessment run that has already been started.
- Returns:
- The ARN of the assessment run that has already been started.
-
withAssessmentRunArn
public AgentAlreadyRunningAssessment withAssessmentRunArn(String assessmentRunArn)
The ARN of the assessment run that has already been started.
- Parameters:
assessmentRunArn- The ARN of the assessment run that has already been started.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public AgentAlreadyRunningAssessment clone()
-
-