Class AgentInfo
- java.lang.Object
-
- com.amazonaws.services.applicationdiscovery.model.AgentInfo
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class AgentInfo extends Object implements Serializable, 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.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AgentInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AgentInfo
clone()
boolean
equals(Object obj)
String
getAgentId()
The agent ID.List<AgentNetworkInfo>
getAgentNetworkInfoList()
Network details about the host where the agent resides.String
getConnectorId()
This data type is currently not valid.String
getHealth()
The health of the agent.String
getHostName()
The name of the host where the agent resides.String
getVersion()
The agent version.int
hashCode()
void
setAgentId(String agentId)
The agent ID.void
setAgentNetworkInfoList(Collection<AgentNetworkInfo> agentNetworkInfoList)
Network details about the host where the agent resides.void
setConnectorId(String connectorId)
This data type is currently not valid.void
setHealth(AgentStatus health)
The health of the agent.void
setHealth(String health)
The health of the agent.void
setHostName(String hostName)
The name of the host where the agent resides.void
setVersion(String version)
The agent version.String
toString()
Returns a string representation of this object; useful for testing and debugging.AgentInfo
withAgentId(String agentId)
The agent ID.AgentInfo
withAgentNetworkInfoList(AgentNetworkInfo... agentNetworkInfoList)
Network details about the host where the agent resides.AgentInfo
withAgentNetworkInfoList(Collection<AgentNetworkInfo> agentNetworkInfoList)
Network details about the host where the agent resides.AgentInfo
withConnectorId(String connectorId)
This data type is currently not valid.AgentInfo
withHealth(AgentStatus health)
The health of the agent.AgentInfo
withHealth(String health)
The health of the agent.AgentInfo
withHostName(String hostName)
The name of the host where the agent resides.AgentInfo
withVersion(String version)
The agent version.
-
-
-
Method Detail
-
setAgentId
public void setAgentId(String agentId)
The agent ID.
- Parameters:
agentId
- The agent ID.
-
getAgentId
public String getAgentId()
The agent ID.
- Returns:
- The agent ID.
-
withAgentId
public AgentInfo withAgentId(String agentId)
The agent ID.
- Parameters:
agentId
- The agent ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setHostName
public void setHostName(String hostName)
The name of the host where the agent resides. The host can be a server or virtual machine.
- Parameters:
hostName
- The name of the host where the agent resides. The host can be a server or virtual machine.
-
getHostName
public String getHostName()
The name of the host where the agent resides. The host can be a server or virtual machine.
- Returns:
- The name of the host where the agent resides. The host can be a server or virtual machine.
-
withHostName
public AgentInfo withHostName(String hostName)
The name of the host where the agent resides. The host can be a server or virtual machine.
- Parameters:
hostName
- The name of the host where the agent resides. The host can be a server or virtual machine.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getAgentNetworkInfoList
public List<AgentNetworkInfo> getAgentNetworkInfoList()
Network details about the host where the agent resides.
- Returns:
- Network details about the host where the agent resides.
-
setAgentNetworkInfoList
public void setAgentNetworkInfoList(Collection<AgentNetworkInfo> agentNetworkInfoList)
Network details about the host where the agent resides.
- Parameters:
agentNetworkInfoList
- Network details about the host where the agent resides.
-
withAgentNetworkInfoList
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)
orwithAgentNetworkInfoList(java.util.Collection)
if you want to override the existing values.- Parameters:
agentNetworkInfoList
- Network details about the host where the agent resides.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withAgentNetworkInfoList
public AgentInfo withAgentNetworkInfoList(Collection<AgentNetworkInfo> agentNetworkInfoList)
Network details about the host where the agent resides.
- Parameters:
agentNetworkInfoList
- Network details about the host where the agent resides.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setConnectorId
public void setConnectorId(String connectorId)
This data type is currently not valid.
- Parameters:
connectorId
- This data type is currently not valid.
-
getConnectorId
public String getConnectorId()
This data type is currently not valid.
- Returns:
- This data type is currently not valid.
-
withConnectorId
public AgentInfo withConnectorId(String connectorId)
This data type is currently not valid.
- Parameters:
connectorId
- This data type is currently not valid.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setVersion
public void setVersion(String version)
The agent version.
- Parameters:
version
- The agent version.
-
getVersion
public String getVersion()
The agent version.
- Returns:
- The agent version.
-
withVersion
public AgentInfo withVersion(String version)
The agent version.
- Parameters:
version
- The agent version.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setHealth
public void setHealth(String health)
The health of the agent.
- Parameters:
health
- The health of the agent.- See Also:
AgentStatus
-
getHealth
public String getHealth()
The health of the agent.
- Returns:
- The health of the agent.
- See Also:
AgentStatus
-
withHealth
public AgentInfo withHealth(String health)
The health of the agent.
- Parameters:
health
- The health of the agent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AgentStatus
-
setHealth
public void setHealth(AgentStatus health)
The health of the agent.
- Parameters:
health
- The health of the agent.- See Also:
AgentStatus
-
withHealth
public AgentInfo withHealth(AgentStatus health)
The health of the agent.
- Parameters:
health
- The health of the agent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AgentStatus
-
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()
-
-