Class ListCommandsResult
- java.lang.Object
-
- com.amazonaws.services.simplesystemsmanagement.model.ListCommandsResult
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class ListCommandsResult extends Object implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ListCommandsResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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(Command... commands)
(Optional) The list of commands requested by the user.ListCommandsResult
withCommands(Collection<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.
-
-
-
Method Detail
-
getCommands
public List<Command> getCommands()
(Optional) The list of commands requested by the user.
- Returns:
- (Optional) The list of commands requested by the user.
-
setCommands
public void setCommands(Collection<Command> commands)
(Optional) The list of commands requested by the user.
- Parameters:
commands
- (Optional) The list of commands requested by the user.
-
withCommands
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)
orwithCommands(java.util.Collection)
if you want to override the existing values.- Parameters:
commands
- (Optional) The list of commands requested by the user.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withCommands
public ListCommandsResult withCommands(Collection<Command> commands)
(Optional) The list of commands requested by the user.
- Parameters:
commands
- (Optional) The list of commands requested by the user.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNextToken
public void setNextToken(String nextToken)
(Optional) The token for the next set of items to return. (You received this token from a previous call.)
- Parameters:
nextToken
- (Optional) The token for the next set of items to return. (You received this token from a previous call.)
-
getNextToken
public String getNextToken()
(Optional) The token for the next set of items to return. (You received this token from a previous call.)
- Returns:
- (Optional) The token for the next set of items to return. (You received this token from a previous call.)
-
withNextToken
public ListCommandsResult withNextToken(String nextToken)
(Optional) The token for the next set of items to return. (You received this token from a previous call.)
- Parameters:
nextToken
- (Optional) The token for the next set of items to return. (You received this token from a previous call.)- 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 ListCommandsResult clone()
-
-