public class Agent extends Object implements Serializable, Cloneable
Contains information about an Inspector agent. This data type is used as a response element in the ListAssessmentAgents action.
Constructor and Description |
---|
Agent() |
Modifier and Type | Method and Description |
---|---|
Agent |
clone() |
boolean |
equals(Object obj) |
String |
getAccountId()
AWS account of the EC2 instance where the agent is installed.
|
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 EC2 instance ID where the agent is installed.
|
String |
getAssessmentArn()
The ARN of the assessment that is associated with the agent.
|
String |
getAutoScalingGroup()
This data type property is currently not used.
|
List<Telemetry> |
getTelemetry()
The Inspector application data metrics collected by the agent.
|
int |
hashCode() |
void |
setAccountId(String accountId)
AWS account of the EC2 instance where the agent is installed.
|
void |
setAgentHealth(String agentHealth)
The current 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 EC2 instance ID where the agent is installed.
|
void |
setAssessmentArn(String assessmentArn)
The ARN of the assessment that is associated with the agent.
|
void |
setAutoScalingGroup(String autoScalingGroup)
This data type property is currently not used.
|
void |
setTelemetry(Collection<Telemetry> telemetry)
The Inspector application data metrics collected by the agent.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Agent |
withAccountId(String accountId)
AWS account of the EC2 instance where the agent is installed.
|
Agent |
withAgentHealth(String agentHealth)
The current health state of the agent.
|
Agent |
withAgentHealthCode(String agentHealthCode)
The detailed health state of the agent.
|
Agent |
withAgentHealthDetails(String agentHealthDetails)
The description for the agent health code.
|
Agent |
withAgentId(String agentId)
The EC2 instance ID where the agent is installed.
|
Agent |
withAssessmentArn(String assessmentArn)
The ARN of the assessment that is associated with the agent.
|
Agent |
withAutoScalingGroup(String autoScalingGroup)
This data type property is currently not used.
|
Agent |
withTelemetry(Collection<Telemetry> telemetry)
The Inspector application data metrics collected by the agent.
|
Agent |
withTelemetry(Telemetry... telemetry)
The Inspector application data metrics collected by the agent.
|
public void setAgentId(String agentId)
The EC2 instance ID where the agent is installed.
agentId
- The EC2 instance ID where the agent is installed.public String getAgentId()
The EC2 instance ID where the agent is installed.
public Agent withAgentId(String agentId)
The EC2 instance ID where the agent is installed.
agentId
- The EC2 instance ID where the agent is installed.public void setAssessmentArn(String assessmentArn)
The ARN of the assessment that is associated with the agent.
assessmentArn
- The ARN of the assessment that is associated with the agent.public String getAssessmentArn()
The ARN of the assessment that is associated with the agent.
public Agent withAssessmentArn(String assessmentArn)
The ARN of the assessment that is associated with the agent.
assessmentArn
- The ARN of the assessment that is associated with the agent.public void setAgentHealth(String agentHealth)
The current health state of the agent. Values can be set to HEALTHY or UNHEALTHY.
agentHealth
- The current health state of the agent. Values can be set to
HEALTHY or UNHEALTHY.public String getAgentHealth()
The current health state of the agent. Values can be set to HEALTHY or UNHEALTHY.
public Agent withAgentHealth(String agentHealth)
The current health state of the agent. Values can be set to HEALTHY or UNHEALTHY.
agentHealth
- The current health state of the agent. Values can be set to
HEALTHY or UNHEALTHY.public void setAgentHealthCode(String agentHealthCode)
The detailed health state of the agent. Values can be set to RUNNING, HEALTHY, UNHEALTHY, UNKNOWN, BLACKLISTED, SHUTDOWN, THROTTLED.
agentHealthCode
- The detailed health state of the agent. Values can be set to
RUNNING, HEALTHY, UNHEALTHY, UNKNOWN,
BLACKLISTED, SHUTDOWN, THROTTLED.public String getAgentHealthCode()
The detailed health state of the agent. Values can be set to RUNNING, HEALTHY, UNHEALTHY, UNKNOWN, BLACKLISTED, SHUTDOWN, THROTTLED.
public Agent withAgentHealthCode(String agentHealthCode)
The detailed health state of the agent. Values can be set to RUNNING, HEALTHY, UNHEALTHY, UNKNOWN, BLACKLISTED, SHUTDOWN, THROTTLED.
agentHealthCode
- The detailed health state of the agent. Values can be set to
RUNNING, HEALTHY, UNHEALTHY, UNKNOWN,
BLACKLISTED, SHUTDOWN, THROTTLED.public void setAgentHealthDetails(String agentHealthDetails)
The description for the agent health code.
agentHealthDetails
- The description for the agent health code.public String getAgentHealthDetails()
The description for the agent health code.
public Agent withAgentHealthDetails(String agentHealthDetails)
The description for the agent health code.
agentHealthDetails
- The description for the agent health code.public void setAutoScalingGroup(String autoScalingGroup)
This data type property is currently not used.
autoScalingGroup
- This data type property is currently not used.public String getAutoScalingGroup()
This data type property is currently not used.
public Agent withAutoScalingGroup(String autoScalingGroup)
This data type property is currently not used.
autoScalingGroup
- This data type property is currently not used.public void setAccountId(String accountId)
AWS account of the EC2 instance where the agent is installed.
accountId
- AWS account of the EC2 instance where the agent is installed.public String getAccountId()
AWS account of the EC2 instance where the agent is installed.
public Agent withAccountId(String accountId)
AWS account of the EC2 instance where the agent is installed.
accountId
- AWS account of the EC2 instance where the agent is installed.public List<Telemetry> getTelemetry()
The Inspector application data metrics collected by the agent.
public void setTelemetry(Collection<Telemetry> telemetry)
The Inspector application data metrics collected by the agent.
telemetry
- The Inspector application data metrics collected by the agent.public Agent withTelemetry(Telemetry... telemetry)
The Inspector application data metrics collected by the agent.
NOTE: This method appends the values to the existing list (if
any). Use setTelemetry(java.util.Collection)
or
withTelemetry(java.util.Collection)
if you want to override the
existing values.
telemetry
- The Inspector application data metrics collected by the agent.public Agent withTelemetry(Collection<Telemetry> telemetry)
The Inspector application data metrics collected by the agent.
telemetry
- The Inspector application data metrics collected by the agent.public String toString()
toString
in class Object
Object.toString()
Copyright © 2015. All rights reserved.