@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DescribeCommandsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Contains the response to a DescribeCommands
request.
Constructor and Description |
---|
DescribeCommandsResult() |
Modifier and Type | Method and Description |
---|---|
DescribeCommandsResult |
clone() |
boolean |
equals(Object obj) |
List<Command> |
getCommands()
An array of
Command objects that describe each of the specified commands. |
int |
hashCode() |
void |
setCommands(Collection<Command> commands)
An array of
Command objects that describe each of the specified commands. |
String |
toString()
Returns a string representation of this object.
|
DescribeCommandsResult |
withCommands(Collection<Command> commands)
An array of
Command objects that describe each of the specified commands. |
DescribeCommandsResult |
withCommands(Command... commands)
An array of
Command objects that describe each of the specified commands. |
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<Command> getCommands()
An array of Command
objects that describe each of the specified commands.
Command
objects that describe each of the specified commands.public void setCommands(Collection<Command> commands)
An array of Command
objects that describe each of the specified commands.
commands
- An array of Command
objects that describe each of the specified commands.public DescribeCommandsResult withCommands(Command... commands)
An array of Command
objects that describe each of the specified commands.
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
- An array of Command
objects that describe each of the specified commands.public DescribeCommandsResult withCommands(Collection<Command> commands)
An array of Command
objects that describe each of the specified commands.
commands
- An array of Command
objects that describe each of the specified commands.public String toString()
toString
in class Object
Object.toString()
public DescribeCommandsResult clone()