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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AgentFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AgentFilter
clone()
boolean
equals(Object obj)
List<String>
getAgentHealthCodes()
The detailed health state of the agent.List<String>
getAgentHealths()
The current health state of the agent.int
hashCode()
void
setAgentHealthCodes(Collection<String> agentHealthCodes)
The detailed health state of the agent.void
setAgentHealths(Collection<String> agentHealths)
The current health state of the agent.String
toString()
Returns a string representation of this object; useful for testing and debugging.AgentFilter
withAgentHealthCodes(AgentHealthCode... agentHealthCodes)
The detailed health state of the agent.AgentFilter
withAgentHealthCodes(String... agentHealthCodes)
The detailed health state of the agent.AgentFilter
withAgentHealthCodes(Collection<String> agentHealthCodes)
The detailed health state of the agent.AgentFilter
withAgentHealths(AgentHealth... agentHealths)
The current health state of the agent.AgentFilter
withAgentHealths(String... agentHealths)
The current health state of the agent.AgentFilter
withAgentHealths(Collection<String> agentHealths)
The current health state of the agent.
-
-
-
Method Detail
-
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:
AgentHealth
-
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:
AgentHealth
-
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)
orwithAgentHealths(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:
AgentHealth
-
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:
AgentHealth
-
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:
AgentHealth
-
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:
AgentHealthCode
-
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:
AgentHealthCode
-
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)
orwithAgentHealthCodes(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:
AgentHealthCode
-
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:
AgentHealthCode
-
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:
AgentHealthCode
-
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()
-
clone
public AgentFilter clone()
-
-