public class AgentFilter
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Contains information about an Amazon Inspector agent. This data type is used as a request parameter in the ListAssessmentRunAgents action.
Modifier and Type | Field and Description |
---|---|
private java.util.List<java.lang.String> |
agentHealthCodes
The detailed health state of the agent.
|
private java.util.List<java.lang.String> |
agentHealths
The current health state of the agent.
|
Constructor and Description |
---|
AgentFilter() |
Modifier and Type | Method and Description |
---|---|
AgentFilter |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<java.lang.String> |
getAgentHealthCodes()
The detailed health state of the agent.
|
java.util.List<java.lang.String> |
getAgentHealths()
The current health state of the agent.
|
int |
hashCode() |
void |
setAgentHealthCodes(java.util.Collection<java.lang.String> agentHealthCodes)
The detailed health state of the agent.
|
void |
setAgentHealths(java.util.Collection<java.lang.String> agentHealths)
The current health state of the agent.
|
java.lang.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(java.util.Collection<java.lang.String> agentHealthCodes)
The detailed health state of the agent.
|
AgentFilter |
withAgentHealthCodes(java.lang.String... agentHealthCodes)
The detailed health state of the agent.
|
AgentFilter |
withAgentHealths(AgentHealth... agentHealths)
The current health state of the agent.
|
AgentFilter |
withAgentHealths(java.util.Collection<java.lang.String> agentHealths)
The current health state of the agent.
|
AgentFilter |
withAgentHealths(java.lang.String... agentHealths)
The current health state of the agent.
|
private java.util.List<java.lang.String> agentHealths
The current health state of the agent. Values can be set to HEALTHY or UNHEALTHY.
private java.util.List<java.lang.String> agentHealthCodes
The detailed health state of the agent. Values can be set to IDLE, RUNNING, SHUTDOWN, UNHEALTHY, THROTTLED, and UNKNOWN.
public java.util.List<java.lang.String> getAgentHealths()
The current health state of the agent. Values can be set to HEALTHY or UNHEALTHY.
AgentHealth
public void setAgentHealths(java.util.Collection<java.lang.String> agentHealths)
The current health state of the agent. Values can be set to HEALTHY or UNHEALTHY.
agentHealths
- The current health state of the agent. Values can be set to
HEALTHY or UNHEALTHY.AgentHealth
public AgentFilter withAgentHealths(java.lang.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.
agentHealths
- The current health state of the agent. Values can be set to
HEALTHY or UNHEALTHY.AgentHealth
public AgentFilter withAgentHealths(java.util.Collection<java.lang.String> agentHealths)
The current health state of the agent. Values can be set to HEALTHY or UNHEALTHY.
agentHealths
- The current health state of the agent. Values can be set to
HEALTHY or UNHEALTHY.AgentHealth
public AgentFilter withAgentHealths(AgentHealth... agentHealths)
The current health state of the agent. Values can be set to HEALTHY or UNHEALTHY.
agentHealths
- The current health state of the agent. Values can be set to
HEALTHY or UNHEALTHY.AgentHealth
public java.util.List<java.lang.String> getAgentHealthCodes()
The detailed health state of the agent. Values can be set to IDLE, RUNNING, SHUTDOWN, UNHEALTHY, THROTTLED, and UNKNOWN.
AgentHealthCode
public void setAgentHealthCodes(java.util.Collection<java.lang.String> agentHealthCodes)
The detailed health state of the agent. Values can be set to IDLE, RUNNING, SHUTDOWN, UNHEALTHY, THROTTLED, and UNKNOWN.
agentHealthCodes
- The detailed health state of the agent. Values can be set to
IDLE, RUNNING, SHUTDOWN, UNHEALTHY,
THROTTLED, and UNKNOWN.AgentHealthCode
public AgentFilter withAgentHealthCodes(java.lang.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.
agentHealthCodes
- The detailed health state of the agent. Values can be set to
IDLE, RUNNING, SHUTDOWN, UNHEALTHY,
THROTTLED, and UNKNOWN.AgentHealthCode
public AgentFilter withAgentHealthCodes(java.util.Collection<java.lang.String> agentHealthCodes)
The detailed health state of the agent. Values can be set to IDLE, RUNNING, SHUTDOWN, UNHEALTHY, THROTTLED, and UNKNOWN.
agentHealthCodes
- The detailed health state of the agent. Values can be set to
IDLE, RUNNING, SHUTDOWN, UNHEALTHY,
THROTTLED, and UNKNOWN.AgentHealthCode
public AgentFilter withAgentHealthCodes(AgentHealthCode... agentHealthCodes)
The detailed health state of the agent. Values can be set to IDLE, RUNNING, SHUTDOWN, UNHEALTHY, THROTTLED, and UNKNOWN.
agentHealthCodes
- The detailed health state of the agent. Values can be set to
IDLE, RUNNING, SHUTDOWN, UNHEALTHY,
THROTTLED, and UNKNOWN.AgentHealthCode
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 AgentFilter clone()
clone
in class java.lang.Object