public class AgentInfo
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Information about agents associated with the user’s AWS account. Information includes agent IDs, IP addresses, media access control (MAC) addresses, agent health, hostname where the agent resides, and agent version for each agent.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
agentId
The agent ID.
|
private java.util.List<AgentNetworkInfo> |
agentNetworkInfoList
Network details about the host where the agent resides.
|
private java.lang.String |
connectorId
This data type is currently not valid.
|
private java.lang.String |
health
The health of the agent.
|
private java.lang.String |
hostName
The name of the host where the agent resides.
|
private java.lang.String |
version
The agent version.
|
Constructor and Description |
---|
AgentInfo() |
Modifier and Type | Method and Description |
---|---|
AgentInfo |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAgentId()
The agent ID.
|
java.util.List<AgentNetworkInfo> |
getAgentNetworkInfoList()
Network details about the host where the agent resides.
|
java.lang.String |
getConnectorId()
This data type is currently not valid.
|
java.lang.String |
getHealth()
The health of the agent.
|
java.lang.String |
getHostName()
The name of the host where the agent resides.
|
java.lang.String |
getVersion()
The agent version.
|
int |
hashCode() |
void |
setAgentId(java.lang.String agentId)
The agent ID.
|
void |
setAgentNetworkInfoList(java.util.Collection<AgentNetworkInfo> agentNetworkInfoList)
Network details about the host where the agent resides.
|
void |
setConnectorId(java.lang.String connectorId)
This data type is currently not valid.
|
void |
setHealth(AgentStatus health)
The health of the agent.
|
void |
setHealth(java.lang.String health)
The health of the agent.
|
void |
setHostName(java.lang.String hostName)
The name of the host where the agent resides.
|
void |
setVersion(java.lang.String version)
The agent version.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AgentInfo |
withAgentId(java.lang.String agentId)
The agent ID.
|
AgentInfo |
withAgentNetworkInfoList(AgentNetworkInfo... agentNetworkInfoList)
Network details about the host where the agent resides.
|
AgentInfo |
withAgentNetworkInfoList(java.util.Collection<AgentNetworkInfo> agentNetworkInfoList)
Network details about the host where the agent resides.
|
AgentInfo |
withConnectorId(java.lang.String connectorId)
This data type is currently not valid.
|
AgentInfo |
withHealth(AgentStatus health)
The health of the agent.
|
AgentInfo |
withHealth(java.lang.String health)
The health of the agent.
|
AgentInfo |
withHostName(java.lang.String hostName)
The name of the host where the agent resides.
|
AgentInfo |
withVersion(java.lang.String version)
The agent version.
|
private java.lang.String agentId
The agent ID.
private java.lang.String hostName
The name of the host where the agent resides. The host can be a server or virtual machine.
private java.util.List<AgentNetworkInfo> agentNetworkInfoList
Network details about the host where the agent resides.
private java.lang.String connectorId
This data type is currently not valid.
private java.lang.String version
The agent version.
private java.lang.String health
The health of the agent.
public void setAgentId(java.lang.String agentId)
The agent ID.
agentId
- The agent ID.public java.lang.String getAgentId()
The agent ID.
public AgentInfo withAgentId(java.lang.String agentId)
The agent ID.
agentId
- The agent ID.public void setHostName(java.lang.String hostName)
The name of the host where the agent resides. The host can be a server or virtual machine.
hostName
- The name of the host where the agent resides. The host can be a
server or virtual machine.public java.lang.String getHostName()
The name of the host where the agent resides. The host can be a server or virtual machine.
public AgentInfo withHostName(java.lang.String hostName)
The name of the host where the agent resides. The host can be a server or virtual machine.
hostName
- The name of the host where the agent resides. The host can be a
server or virtual machine.public java.util.List<AgentNetworkInfo> getAgentNetworkInfoList()
Network details about the host where the agent resides.
public void setAgentNetworkInfoList(java.util.Collection<AgentNetworkInfo> agentNetworkInfoList)
Network details about the host where the agent resides.
agentNetworkInfoList
- Network details about the host where the agent resides.public AgentInfo withAgentNetworkInfoList(AgentNetworkInfo... agentNetworkInfoList)
Network details about the host where the agent resides.
NOTE: This method appends the values to the existing list (if
any). Use setAgentNetworkInfoList(java.util.Collection)
or
withAgentNetworkInfoList(java.util.Collection)
if you want to
override the existing values.
agentNetworkInfoList
- Network details about the host where the agent resides.public AgentInfo withAgentNetworkInfoList(java.util.Collection<AgentNetworkInfo> agentNetworkInfoList)
Network details about the host where the agent resides.
agentNetworkInfoList
- Network details about the host where the agent resides.public void setConnectorId(java.lang.String connectorId)
This data type is currently not valid.
connectorId
- This data type is currently not valid.public java.lang.String getConnectorId()
This data type is currently not valid.
public AgentInfo withConnectorId(java.lang.String connectorId)
This data type is currently not valid.
connectorId
- This data type is currently not valid.public void setVersion(java.lang.String version)
The agent version.
version
- The agent version.public java.lang.String getVersion()
The agent version.
public AgentInfo withVersion(java.lang.String version)
The agent version.
version
- The agent version.public void setHealth(java.lang.String health)
The health of the agent.
health
- The health of the agent.AgentStatus
public java.lang.String getHealth()
The health of the agent.
AgentStatus
public AgentInfo withHealth(java.lang.String health)
The health of the agent.
health
- The health of the agent.AgentStatus
public void setHealth(AgentStatus health)
The health of the agent.
health
- The health of the agent.AgentStatus
public AgentInfo withHealth(AgentStatus health)
The health of the agent.
health
- The health of the agent.AgentStatus
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 AgentInfo clone()
clone
in class java.lang.Object