public class AssessmentRunAgent
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Contains information about an Amazon Inspector agent. This data type is used as a response element in the ListAssessmentRunAgents action.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
agentHealth
The current health state of the agent.
|
private java.lang.String |
agentHealthCode
The detailed health state of the agent.
|
private java.lang.String |
agentHealthDetails
The description for the agent health code.
|
private java.lang.String |
agentId
The AWS account of the EC2 instance where the agent is installed.
|
private java.lang.String |
assessmentRunArn
The ARN of the assessment run that is associated with the agent.
|
private java.lang.String |
autoScalingGroup
The Auto Scaling group of the EC2 instance that is specified by the agent
ID.
|
private java.util.List<TelemetryMetadata> |
telemetryMetadata
The Amazon Inspector application data metrics that are collected by the
agent.
|
Constructor and Description |
---|
AssessmentRunAgent() |
Modifier and Type | Method and Description |
---|---|
AssessmentRunAgent |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAgentHealth()
The current health state of the agent.
|
java.lang.String |
getAgentHealthCode()
The detailed health state of the agent.
|
java.lang.String |
getAgentHealthDetails()
The description for the agent health code.
|
java.lang.String |
getAgentId()
The AWS account of the EC2 instance where the agent is installed.
|
java.lang.String |
getAssessmentRunArn()
The ARN of the assessment run that is associated with the agent.
|
java.lang.String |
getAutoScalingGroup()
The Auto Scaling group of the EC2 instance that is specified by the agent
ID.
|
java.util.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(java.lang.String agentHealth)
The current health state of the agent.
|
void |
setAgentHealthCode(AgentHealthCode agentHealthCode)
The detailed health state of the agent.
|
void |
setAgentHealthCode(java.lang.String agentHealthCode)
The detailed health state of the agent.
|
void |
setAgentHealthDetails(java.lang.String agentHealthDetails)
The description for the agent health code.
|
void |
setAgentId(java.lang.String agentId)
The AWS account of the EC2 instance where the agent is installed.
|
void |
setAssessmentRunArn(java.lang.String assessmentRunArn)
The ARN of the assessment run that is associated with the agent.
|
void |
setAutoScalingGroup(java.lang.String autoScalingGroup)
The Auto Scaling group of the EC2 instance that is specified by the agent
ID.
|
void |
setTelemetryMetadata(java.util.Collection<TelemetryMetadata> telemetryMetadata)
The Amazon Inspector application data metrics that are collected by the
agent.
|
java.lang.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(java.lang.String agentHealth)
The current health state of the agent.
|
AssessmentRunAgent |
withAgentHealthCode(AgentHealthCode agentHealthCode)
The detailed health state of the agent.
|
AssessmentRunAgent |
withAgentHealthCode(java.lang.String agentHealthCode)
The detailed health state of the agent.
|
AssessmentRunAgent |
withAgentHealthDetails(java.lang.String agentHealthDetails)
The description for the agent health code.
|
AssessmentRunAgent |
withAgentId(java.lang.String agentId)
The AWS account of the EC2 instance where the agent is installed.
|
AssessmentRunAgent |
withAssessmentRunArn(java.lang.String assessmentRunArn)
The ARN of the assessment run that is associated with the agent.
|
AssessmentRunAgent |
withAutoScalingGroup(java.lang.String autoScalingGroup)
The Auto Scaling group of the EC2 instance that is specified by the agent
ID.
|
AssessmentRunAgent |
withTelemetryMetadata(java.util.Collection<TelemetryMetadata> telemetryMetadata)
The Amazon Inspector application data metrics that are collected by the
agent.
|
AssessmentRunAgent |
withTelemetryMetadata(TelemetryMetadata... telemetryMetadata)
The Amazon Inspector application data metrics that are collected by the
agent.
|
private java.lang.String agentId
The AWS account of the EC2 instance where the agent is installed.
private java.lang.String assessmentRunArn
The ARN of the assessment run that is associated with the agent.
private java.lang.String agentHealth
The current health state of the agent.
private java.lang.String agentHealthCode
The detailed health state of the agent.
private java.lang.String agentHealthDetails
The description for the agent health code.
private java.lang.String autoScalingGroup
The Auto Scaling group of the EC2 instance that is specified by the agent ID.
private java.util.List<TelemetryMetadata> telemetryMetadata
The Amazon Inspector application data metrics that are collected by the agent.
public void setAgentId(java.lang.String agentId)
The AWS account of the EC2 instance where the agent is installed.
agentId
- The AWS account of the EC2 instance where the agent is installed.public java.lang.String getAgentId()
The AWS account of the EC2 instance where the agent is installed.
public AssessmentRunAgent withAgentId(java.lang.String agentId)
The AWS account of the EC2 instance where the agent is installed.
agentId
- The AWS account of the EC2 instance where the agent is installed.public void setAssessmentRunArn(java.lang.String assessmentRunArn)
The ARN of the assessment run that is associated with the agent.
assessmentRunArn
- The ARN of the assessment run that is associated with the agent.public java.lang.String getAssessmentRunArn()
The ARN of the assessment run that is associated with the agent.
public AssessmentRunAgent withAssessmentRunArn(java.lang.String assessmentRunArn)
The ARN of the assessment run that is associated with the agent.
assessmentRunArn
- The ARN of the assessment run that is associated with the agent.public void setAgentHealth(java.lang.String agentHealth)
The current health state of the agent.
agentHealth
- The current health state of the agent.AgentHealth
public java.lang.String getAgentHealth()
The current health state of the agent.
AgentHealth
public AssessmentRunAgent withAgentHealth(java.lang.String agentHealth)
The current health state of the agent.
agentHealth
- The current health state of the agent.AgentHealth
public void setAgentHealth(AgentHealth agentHealth)
The current health state of the agent.
agentHealth
- The current health state of the agent.AgentHealth
public AssessmentRunAgent withAgentHealth(AgentHealth agentHealth)
The current health state of the agent.
agentHealth
- The current health state of the agent.AgentHealth
public void setAgentHealthCode(java.lang.String agentHealthCode)
The detailed health state of the agent.
agentHealthCode
- The detailed health state of the agent.AgentHealthCode
public java.lang.String getAgentHealthCode()
The detailed health state of the agent.
AgentHealthCode
public AssessmentRunAgent withAgentHealthCode(java.lang.String agentHealthCode)
The detailed health state of the agent.
agentHealthCode
- The detailed health state of the agent.AgentHealthCode
public void setAgentHealthCode(AgentHealthCode agentHealthCode)
The detailed health state of the agent.
agentHealthCode
- The detailed health state of the agent.AgentHealthCode
public AssessmentRunAgent withAgentHealthCode(AgentHealthCode agentHealthCode)
The detailed health state of the agent.
agentHealthCode
- The detailed health state of the agent.AgentHealthCode
public void setAgentHealthDetails(java.lang.String agentHealthDetails)
The description for the agent health code.
agentHealthDetails
- The description for the agent health code.public java.lang.String getAgentHealthDetails()
The description for the agent health code.
public AssessmentRunAgent withAgentHealthDetails(java.lang.String agentHealthDetails)
The description for the agent health code.
agentHealthDetails
- The description for the agent health code.public void setAutoScalingGroup(java.lang.String autoScalingGroup)
The Auto Scaling group of the EC2 instance that is specified by the agent ID.
autoScalingGroup
- The Auto Scaling group of the EC2 instance that is specified by
the agent ID.public java.lang.String getAutoScalingGroup()
The Auto Scaling group of the EC2 instance that is specified by the agent ID.
public AssessmentRunAgent withAutoScalingGroup(java.lang.String autoScalingGroup)
The Auto Scaling group of the EC2 instance that is specified by the agent ID.
autoScalingGroup
- The Auto Scaling group of the EC2 instance that is specified by
the agent ID.public java.util.List<TelemetryMetadata> getTelemetryMetadata()
The Amazon Inspector application data metrics that are collected by the agent.
public void setTelemetryMetadata(java.util.Collection<TelemetryMetadata> telemetryMetadata)
The Amazon Inspector application data metrics that are collected by the agent.
telemetryMetadata
- The Amazon Inspector application data metrics that are collected
by the agent.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)
or
withTelemetryMetadata(java.util.Collection)
if you want to
override the existing values.
telemetryMetadata
- The Amazon Inspector application data metrics that are collected
by the agent.public AssessmentRunAgent withTelemetryMetadata(java.util.Collection<TelemetryMetadata> telemetryMetadata)
The Amazon Inspector application data metrics that are collected by the agent.
telemetryMetadata
- The Amazon Inspector application data metrics that are collected
by the agent.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public AssessmentRunAgent clone()
clone
in class java.lang.Object