public class DescribeCommandsResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Contains the response to a DescribeCommands
request.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<Command> |
commands
An array of
Command objects that describe each of the
specified commands. |
Constructor and Description |
---|
DescribeCommandsResult() |
Modifier and Type | Method and Description |
---|---|
DescribeCommandsResult |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<Command> |
getCommands()
An array of
Command objects that describe each of the
specified commands. |
int |
hashCode() |
void |
setCommands(java.util.Collection<Command> commands)
An array of
Command objects that describe each of the
specified commands. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeCommandsResult |
withCommands(java.util.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. |
private SdkInternalList<Command> commands
An array of Command
objects that describe each of the
specified commands.
public java.util.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(java.util.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(java.util.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 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 DescribeCommandsResult clone()
clone
in class java.lang.Object