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 AgentAlreadyRunningAssessment
clone()
boolean
equals(Object obj)
String
getAgentId()
ID of the agent that is running on an EC2 instance that is already participating in another started assessment run.String
getAssessmentRunArn()
The ARN of the assessment run that has already been started.int
hashCode()
void
setAgentId(String agentId)
ID of the agent that is running on an EC2 instance that is already participating in another started assessment run.void
setAssessmentRunArn(String assessmentRunArn)
The ARN of the assessment run that has already been started.String
toString()
Returns a string representation of this object; useful for testing and debugging.AgentAlreadyRunningAssessment
withAgentId(String agentId)
ID of the agent that is running on an EC2 instance that is already participating in another started assessment run.AgentAlreadyRunningAssessment
withAssessmentRunArn(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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public AgentAlreadyRunningAssessment clone()
-
-