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:
  • Constructor Details

    • AgentInfo

      public AgentInfo()
  • Method Details

    • 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) or withAgentNetworkInfoList(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:
    • getHealth

      public String getHealth()

      The health of the agent.

      Returns:
      The health of the agent.
      See Also:
    • 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:
    • setHealth

      public void setHealth(AgentStatus health)

      The health of the agent.

      Parameters:
      health - The health of the agent.
      See Also:
    • 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:
    • toString

      public String toString()
      Returns a string representation of this object; useful for testing and debugging.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public AgentInfo clone()
      Overrides:
      clone in class Object