Class AgentFilter

java.lang.Object
com.amazonaws.services.inspector.model.AgentFilter
All Implemented Interfaces:
Serializable, Cloneable

public class AgentFilter extends Object implements Serializable, Cloneable

Contains information about an Amazon Inspector agent. This data type is used as a request parameter in the ListAssessmentRunAgents action.

See Also:
  • Constructor Details

    • AgentFilter

      public AgentFilter()
  • Method Details

    • getAgentHealths

      public List<String> getAgentHealths()

      The current health state of the agent. Values can be set to HEALTHY or UNHEALTHY.

      Returns:
      The current health state of the agent. Values can be set to HEALTHY or UNHEALTHY.
      See Also:
    • setAgentHealths

      public void setAgentHealths(Collection<String> agentHealths)

      The current health state of the agent. Values can be set to HEALTHY or UNHEALTHY.

      Parameters:
      agentHealths - The current health state of the agent. Values can be set to HEALTHY or UNHEALTHY.
      See Also:
    • withAgentHealths

      public AgentFilter withAgentHealths(String... agentHealths)

      The current health state of the agent. Values can be set to HEALTHY or UNHEALTHY.

      NOTE: This method appends the values to the existing list (if any). Use setAgentHealths(java.util.Collection) or withAgentHealths(java.util.Collection) if you want to override the existing values.

      Parameters:
      agentHealths - The current health state of the agent. Values can be set to HEALTHY or UNHEALTHY.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • withAgentHealths

      public AgentFilter withAgentHealths(Collection<String> agentHealths)

      The current health state of the agent. Values can be set to HEALTHY or UNHEALTHY.

      Parameters:
      agentHealths - The current health state of the agent. Values can be set to HEALTHY or UNHEALTHY.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • withAgentHealths

      public AgentFilter withAgentHealths(AgentHealth... agentHealths)

      The current health state of the agent. Values can be set to HEALTHY or UNHEALTHY.

      Parameters:
      agentHealths - The current health state of the agent. Values can be set to HEALTHY or UNHEALTHY.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • getAgentHealthCodes

      public List<String> getAgentHealthCodes()

      The detailed health state of the agent. Values can be set to IDLE, RUNNING, SHUTDOWN, UNHEALTHY, THROTTLED, and UNKNOWN.

      Returns:
      The detailed health state of the agent. Values can be set to IDLE, RUNNING, SHUTDOWN, UNHEALTHY, THROTTLED, and UNKNOWN.
      See Also:
    • setAgentHealthCodes

      public void setAgentHealthCodes(Collection<String> agentHealthCodes)

      The detailed health state of the agent. Values can be set to IDLE, RUNNING, SHUTDOWN, UNHEALTHY, THROTTLED, and UNKNOWN.

      Parameters:
      agentHealthCodes - The detailed health state of the agent. Values can be set to IDLE, RUNNING, SHUTDOWN, UNHEALTHY, THROTTLED, and UNKNOWN.
      See Also:
    • withAgentHealthCodes

      public AgentFilter withAgentHealthCodes(String... agentHealthCodes)

      The detailed health state of the agent. Values can be set to IDLE, RUNNING, SHUTDOWN, UNHEALTHY, THROTTLED, and UNKNOWN.

      NOTE: This method appends the values to the existing list (if any). Use setAgentHealthCodes(java.util.Collection) or withAgentHealthCodes(java.util.Collection) if you want to override the existing values.

      Parameters:
      agentHealthCodes - The detailed health state of the agent. Values can be set to IDLE, RUNNING, SHUTDOWN, UNHEALTHY, THROTTLED, and UNKNOWN.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • withAgentHealthCodes

      public AgentFilter withAgentHealthCodes(Collection<String> agentHealthCodes)

      The detailed health state of the agent. Values can be set to IDLE, RUNNING, SHUTDOWN, UNHEALTHY, THROTTLED, and UNKNOWN.

      Parameters:
      agentHealthCodes - The detailed health state of the agent. Values can be set to IDLE, RUNNING, SHUTDOWN, UNHEALTHY, THROTTLED, and UNKNOWN.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • withAgentHealthCodes

      public AgentFilter withAgentHealthCodes(AgentHealthCode... agentHealthCodes)

      The detailed health state of the agent. Values can be set to IDLE, RUNNING, SHUTDOWN, UNHEALTHY, THROTTLED, and UNKNOWN.

      Parameters:
      agentHealthCodes - The detailed health state of the agent. Values can be set to IDLE, RUNNING, SHUTDOWN, UNHEALTHY, THROTTLED, and UNKNOWN.
      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 AgentFilter clone()
      Overrides:
      clone in class Object