public class ListCommandsResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<Command> |
commands
(Optional) The list of commands requested by the user.
|
private java.lang.String |
nextToken
(Optional) The token for the next set of items to return.
|
Constructor and Description |
---|
ListCommandsResult() |
Modifier and Type | Method and Description |
---|---|
ListCommandsResult |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<Command> |
getCommands()
(Optional) The list of commands requested by the user.
|
java.lang.String |
getNextToken()
(Optional) The token for the next set of items to return.
|
int |
hashCode() |
void |
setCommands(java.util.Collection<Command> commands)
(Optional) The list of commands requested by the user.
|
void |
setNextToken(java.lang.String nextToken)
(Optional) The token for the next set of items to return.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ListCommandsResult |
withCommands(java.util.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(java.lang.String nextToken)
(Optional) The token for the next set of items to return.
|
private SdkInternalList<Command> commands
(Optional) The list of commands requested by the user.
private java.lang.String nextToken
(Optional) The token for the next set of items to return. (You received this token from a previous call.)
public java.util.List<Command> getCommands()
(Optional) The list of commands requested by the user.
public void setCommands(java.util.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(java.util.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(java.lang.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 java.lang.String getNextToken()
(Optional) The token for the next set of items to return. (You received this token from a previous call.)
public ListCommandsResult withNextToken(java.lang.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 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 ListCommandsResult clone()
clone
in class java.lang.Object