Class AssessmentRunAgent
- java.lang.Object
-
- com.amazonaws.services.inspector.model.AssessmentRunAgent
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class AssessmentRunAgent extends Object implements Serializable, Cloneable
Contains information about an Amazon Inspector agent. This data type is used as a response element in the ListAssessmentRunAgents action.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AssessmentRunAgent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AssessmentRunAgent
clone()
boolean
equals(Object obj)
String
getAgentHealth()
The current health state of the agent.String
getAgentHealthCode()
The detailed health state of the agent.String
getAgentHealthDetails()
The description for the agent health code.String
getAgentId()
The AWS account of the EC2 instance where the agent is installed.String
getAssessmentRunArn()
The ARN of the assessment run that is associated with the agent.String
getAutoScalingGroup()
The Auto Scaling group of the EC2 instance that is specified by the agent ID.List<TelemetryMetadata>
getTelemetryMetadata()
The Amazon Inspector application data metrics that are collected by the agent.int
hashCode()
void
setAgentHealth(AgentHealth agentHealth)
The current health state of the agent.void
setAgentHealth(String agentHealth)
The current health state of the agent.void
setAgentHealthCode(AgentHealthCode agentHealthCode)
The detailed health state of the agent.void
setAgentHealthCode(String agentHealthCode)
The detailed health state of the agent.void
setAgentHealthDetails(String agentHealthDetails)
The description for the agent health code.void
setAgentId(String agentId)
The AWS account of the EC2 instance where the agent is installed.void
setAssessmentRunArn(String assessmentRunArn)
The ARN of the assessment run that is associated with the agent.void
setAutoScalingGroup(String autoScalingGroup)
The Auto Scaling group of the EC2 instance that is specified by the agent ID.void
setTelemetryMetadata(Collection<TelemetryMetadata> telemetryMetadata)
The Amazon Inspector application data metrics that are collected by the agent.String
toString()
Returns a string representation of this object; useful for testing and debugging.AssessmentRunAgent
withAgentHealth(AgentHealth agentHealth)
The current health state of the agent.AssessmentRunAgent
withAgentHealth(String agentHealth)
The current health state of the agent.AssessmentRunAgent
withAgentHealthCode(AgentHealthCode agentHealthCode)
The detailed health state of the agent.AssessmentRunAgent
withAgentHealthCode(String agentHealthCode)
The detailed health state of the agent.AssessmentRunAgent
withAgentHealthDetails(String agentHealthDetails)
The description for the agent health code.AssessmentRunAgent
withAgentId(String agentId)
The AWS account of the EC2 instance where the agent is installed.AssessmentRunAgent
withAssessmentRunArn(String assessmentRunArn)
The ARN of the assessment run that is associated with the agent.AssessmentRunAgent
withAutoScalingGroup(String autoScalingGroup)
The Auto Scaling group of the EC2 instance that is specified by the agent ID.AssessmentRunAgent
withTelemetryMetadata(TelemetryMetadata... telemetryMetadata)
The Amazon Inspector application data metrics that are collected by the agent.AssessmentRunAgent
withTelemetryMetadata(Collection<TelemetryMetadata> telemetryMetadata)
The Amazon Inspector application data metrics that are collected by the agent.
-
-
-
Method Detail
-
setAgentId
public void setAgentId(String agentId)
The AWS account of the EC2 instance where the agent is installed.
- Parameters:
agentId
- The AWS account of the EC2 instance where the agent is installed.
-
getAgentId
public String getAgentId()
The AWS account of the EC2 instance where the agent is installed.
- Returns:
- The AWS account of the EC2 instance where the agent is installed.
-
withAgentId
public AssessmentRunAgent withAgentId(String agentId)
The AWS account of the EC2 instance where the agent is installed.
- Parameters:
agentId
- The AWS account of the EC2 instance where the agent is installed.- 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 is associated with the agent.
- Parameters:
assessmentRunArn
- The ARN of the assessment run that is associated with the agent.
-
getAssessmentRunArn
public String getAssessmentRunArn()
The ARN of the assessment run that is associated with the agent.
- Returns:
- The ARN of the assessment run that is associated with the agent.
-
withAssessmentRunArn
public AssessmentRunAgent withAssessmentRunArn(String assessmentRunArn)
The ARN of the assessment run that is associated with the agent.
- Parameters:
assessmentRunArn
- The ARN of the assessment run that is associated with the agent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAgentHealth
public void setAgentHealth(String agentHealth)
The current health state of the agent.
- Parameters:
agentHealth
- The current health state of the agent.- See Also:
AgentHealth
-
getAgentHealth
public String getAgentHealth()
The current health state of the agent.
- Returns:
- The current health state of the agent.
- See Also:
AgentHealth
-
withAgentHealth
public AssessmentRunAgent withAgentHealth(String agentHealth)
The current health state of the agent.
- Parameters:
agentHealth
- The current health state of the agent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AgentHealth
-
setAgentHealth
public void setAgentHealth(AgentHealth agentHealth)
The current health state of the agent.
- Parameters:
agentHealth
- The current health state of the agent.- See Also:
AgentHealth
-
withAgentHealth
public AssessmentRunAgent withAgentHealth(AgentHealth agentHealth)
The current health state of the agent.
- Parameters:
agentHealth
- The current health state of the agent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AgentHealth
-
setAgentHealthCode
public void setAgentHealthCode(String agentHealthCode)
The detailed health state of the agent.
- Parameters:
agentHealthCode
- The detailed health state of the agent.- See Also:
AgentHealthCode
-
getAgentHealthCode
public String getAgentHealthCode()
The detailed health state of the agent.
- Returns:
- The detailed health state of the agent.
- See Also:
AgentHealthCode
-
withAgentHealthCode
public AssessmentRunAgent withAgentHealthCode(String agentHealthCode)
The detailed health state of the agent.
- Parameters:
agentHealthCode
- The detailed health state of the agent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AgentHealthCode
-
setAgentHealthCode
public void setAgentHealthCode(AgentHealthCode agentHealthCode)
The detailed health state of the agent.
- Parameters:
agentHealthCode
- The detailed health state of the agent.- See Also:
AgentHealthCode
-
withAgentHealthCode
public AssessmentRunAgent withAgentHealthCode(AgentHealthCode agentHealthCode)
The detailed health state of the agent.
- Parameters:
agentHealthCode
- The detailed health state of the agent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AgentHealthCode
-
setAgentHealthDetails
public void setAgentHealthDetails(String agentHealthDetails)
The description for the agent health code.
- Parameters:
agentHealthDetails
- The description for the agent health code.
-
getAgentHealthDetails
public String getAgentHealthDetails()
The description for the agent health code.
- Returns:
- The description for the agent health code.
-
withAgentHealthDetails
public AssessmentRunAgent withAgentHealthDetails(String agentHealthDetails)
The description for the agent health code.
- Parameters:
agentHealthDetails
- The description for the agent health code.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAutoScalingGroup
public void setAutoScalingGroup(String autoScalingGroup)
The Auto Scaling group of the EC2 instance that is specified by the agent ID.
- Parameters:
autoScalingGroup
- The Auto Scaling group of the EC2 instance that is specified by the agent ID.
-
getAutoScalingGroup
public String getAutoScalingGroup()
The Auto Scaling group of the EC2 instance that is specified by the agent ID.
- Returns:
- The Auto Scaling group of the EC2 instance that is specified by the agent ID.
-
withAutoScalingGroup
public AssessmentRunAgent withAutoScalingGroup(String autoScalingGroup)
The Auto Scaling group of the EC2 instance that is specified by the agent ID.
- Parameters:
autoScalingGroup
- The Auto Scaling group of the EC2 instance that is specified by the agent ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getTelemetryMetadata
public List<TelemetryMetadata> getTelemetryMetadata()
The Amazon Inspector application data metrics that are collected by the agent.
- Returns:
- The Amazon Inspector application data metrics that are collected by the agent.
-
setTelemetryMetadata
public void setTelemetryMetadata(Collection<TelemetryMetadata> telemetryMetadata)
The Amazon Inspector application data metrics that are collected by the agent.
- Parameters:
telemetryMetadata
- The Amazon Inspector application data metrics that are collected by the agent.
-
withTelemetryMetadata
public AssessmentRunAgent withTelemetryMetadata(TelemetryMetadata... telemetryMetadata)
The Amazon Inspector application data metrics that are collected by the agent.
NOTE: This method appends the values to the existing list (if any). Use
setTelemetryMetadata(java.util.Collection)
orwithTelemetryMetadata(java.util.Collection)
if you want to override the existing values.- Parameters:
telemetryMetadata
- The Amazon Inspector application data metrics that are collected by the agent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withTelemetryMetadata
public AssessmentRunAgent withTelemetryMetadata(Collection<TelemetryMetadata> telemetryMetadata)
The Amazon Inspector application data metrics that are collected by the agent.
- Parameters:
telemetryMetadata
- The Amazon Inspector application data metrics that are collected by the agent.- 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 AssessmentRunAgent clone()
-
-