@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListCommandsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
ListCommandsResult() |
Modifier and Type | Method and Description |
---|---|
ListCommandsResult |
clone() |
boolean |
equals(Object obj) |
List<Command> |
getCommands()
(Optional) The list of commands requested by the user.
|
String |
getNextToken()
(Optional) The token for the next set of items to return.
|
int |
hashCode() |
void |
setCommands(Collection<Command> commands)
(Optional) The list of commands requested by the user.
|
void |
setNextToken(String nextToken)
(Optional) The token for the next set of items to return.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
ListCommandsResult |
withCommands(Collection<Command> commands)
(Optional) The list of commands requested by the user.
|
ListCommandsResult |
withCommands(Command... commands)
(Optional) The list of commands requested by the user.
|
ListCommandsResult |
withNextToken(String nextToken)
(Optional) The token for the next set of items to return.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<Command> getCommands()
(Optional) The list of commands requested by the user.
public void setCommands(Collection<Command> commands)
(Optional) The list of commands requested by the user.
commands
- (Optional) The list of commands requested by the user.public ListCommandsResult withCommands(Command... commands)
(Optional) The list of commands requested by the user.
NOTE: This method appends the values to the existing list (if any). Use
setCommands(java.util.Collection)
or withCommands(java.util.Collection)
if you want to override
the existing values.
commands
- (Optional) The list of commands requested by the user.public ListCommandsResult withCommands(Collection<Command> commands)
(Optional) The list of commands requested by the user.
commands
- (Optional) The list of commands requested by the user.public void setNextToken(String nextToken)
(Optional) The token for the next set of items to return. (You received this token from a previous call.)
nextToken
- (Optional) The token for the next set of items to return. (You received this token from a previous call.)public String getNextToken()
(Optional) The token for the next set of items to return. (You received this token from a previous call.)
public ListCommandsResult withNextToken(String nextToken)
(Optional) The token for the next set of items to return. (You received this token from a previous call.)
nextToken
- (Optional) The token for the next set of items to return. (You received this token from a previous call.)public String toString()
toString
in class Object
Object.toString()
public ListCommandsResult clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.