Class PreviewAgentsResult
- java.lang.Object
-
- com.amazonaws.services.inspector.model.PreviewAgentsResult
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class PreviewAgentsResult extends Object implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PreviewAgentsResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PreviewAgentsResult
clone()
boolean
equals(Object obj)
List<AgentPreview>
getAgentPreviews()
The resulting list of agents.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(Collection<AgentPreview> agentPreviews)
The resulting list of agents.void
setNextToken(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.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(Collection<AgentPreview> agentPreviews)
The resulting list of agents.PreviewAgentsResult
withNextToken(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.
-
-
-
Method Detail
-
getAgentPreviews
public List<AgentPreview> getAgentPreviews()
The resulting list of agents.
- Returns:
- The resulting list of agents.
-
setAgentPreviews
public void setAgentPreviews(Collection<AgentPreview> agentPreviews)
The resulting list of agents.
- Parameters:
agentPreviews
- The resulting list of agents.
-
withAgentPreviews
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)
orwithAgentPreviews(java.util.Collection)
if you want to override the existing values.- Parameters:
agentPreviews
- The resulting list of agents.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withAgentPreviews
public PreviewAgentsResult withAgentPreviews(Collection<AgentPreview> agentPreviews)
The resulting list of agents.
- Parameters:
agentPreviews
- The resulting list of agents.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNextToken
public void setNextToken(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.
- Parameters:
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.
-
getNextToken
public 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.
- Returns:
- 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.
-
withNextToken
public PreviewAgentsResult withNextToken(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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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 PreviewAgentsResult clone()
-
-