public class PreviewAgentsResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private java.util.List<AgentPreview> |
agentPreviews
The resulting list of agents.
|
private java.lang.String |
nextToken
When a response is generated, if there is more data to be listed, this
parameter is present in the response and contains the value to use for
the nextToken parameter in a subsequent pagination request.
|
Constructor and Description |
---|
PreviewAgentsResult() |
Modifier and Type | Method and Description |
---|---|
PreviewAgentsResult |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<AgentPreview> |
getAgentPreviews()
The resulting list of agents.
|
java.lang.String |
getNextToken()
When a response is generated, if there is more data to be listed, this
parameter is present in the response and contains the value to use for
the nextToken parameter in a subsequent pagination request.
|
int |
hashCode() |
void |
setAgentPreviews(java.util.Collection<AgentPreview> agentPreviews)
The resulting list of agents.
|
void |
setNextToken(java.lang.String nextToken)
When a response is generated, if there is more data to be listed, this
parameter is present in the response and contains the value to use for
the nextToken parameter in a subsequent pagination request.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PreviewAgentsResult |
withAgentPreviews(AgentPreview... agentPreviews)
The resulting list of agents.
|
PreviewAgentsResult |
withAgentPreviews(java.util.Collection<AgentPreview> agentPreviews)
The resulting list of agents.
|
PreviewAgentsResult |
withNextToken(java.lang.String nextToken)
When a response is generated, if there is more data to be listed, this
parameter is present in the response and contains the value to use for
the nextToken parameter in a subsequent pagination request.
|
private java.util.List<AgentPreview> agentPreviews
The resulting list of agents.
private java.lang.String nextToken
When a response is generated, if there is more data to be listed, this parameter is present in the response and contains the value to use for the nextToken parameter in a subsequent pagination request. If there is no more data to be listed, this parameter is set to null.
public java.util.List<AgentPreview> getAgentPreviews()
The resulting list of agents.
public void setAgentPreviews(java.util.Collection<AgentPreview> agentPreviews)
The resulting list of agents.
agentPreviews
- The resulting list of agents.public PreviewAgentsResult withAgentPreviews(AgentPreview... agentPreviews)
The resulting list of agents.
NOTE: This method appends the values to the existing list (if
any). Use setAgentPreviews(java.util.Collection)
or
withAgentPreviews(java.util.Collection)
if you want to override
the existing values.
agentPreviews
- The resulting list of agents.public PreviewAgentsResult withAgentPreviews(java.util.Collection<AgentPreview> agentPreviews)
The resulting list of agents.
agentPreviews
- The resulting list of agents.public void setNextToken(java.lang.String nextToken)
When a response is generated, if there is more data to be listed, this parameter is present in the response and contains the value to use for the nextToken parameter in a subsequent pagination request. If there is no more data to be listed, this parameter is set to null.
nextToken
- When a response is generated, if there is more data to be listed,
this parameter is present in the response and contains the value
to use for the nextToken parameter in a subsequent
pagination request. If there is no more data to be listed, this
parameter is set to null.public java.lang.String getNextToken()
When a response is generated, if there is more data to be listed, this parameter is present in the response and contains the value to use for the nextToken parameter in a subsequent pagination request. If there is no more data to be listed, this parameter is set to null.
public PreviewAgentsResult withNextToken(java.lang.String nextToken)
When a response is generated, if there is more data to be listed, this parameter is present in the response and contains the value to use for the nextToken parameter in a subsequent pagination request. If there is no more data to be listed, this parameter is set to null.
nextToken
- When a response is generated, if there is more data to be listed,
this parameter is present in the response and contains the value
to use for the nextToken parameter in a subsequent
pagination request. If there is no more data to be listed, this
parameter is set to null.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 PreviewAgentsResult clone()
clone
in class java.lang.Object