Class DescribeCommandsResult
- java.lang.Object
-
- com.amazonaws.services.opsworks.model.DescribeCommandsResult
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class DescribeCommandsResult extends Object implements Serializable, Cloneable
Contains the response to a
DescribeCommands
request.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DescribeCommandsResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DescribeCommandsResult
clone()
boolean
equals(Object obj)
List<Command>
getCommands()
An array ofCommand
objects that describe each of the specified commands.int
hashCode()
void
setCommands(Collection<Command> commands)
An array ofCommand
objects that describe each of the specified commands.String
toString()
Returns a string representation of this object; useful for testing and debugging.DescribeCommandsResult
withCommands(Command... commands)
An array ofCommand
objects that describe each of the specified commands.DescribeCommandsResult
withCommands(Collection<Command> commands)
An array ofCommand
objects that describe each of the specified commands.
-
-
-
Method Detail
-
getCommands
public List<Command> getCommands()
An array of
Command
objects that describe each of the specified commands.- Returns:
- An array of
Command
objects that describe each of the specified commands.
-
setCommands
public void setCommands(Collection<Command> commands)
An array of
Command
objects that describe each of the specified commands.- Parameters:
commands
- An array ofCommand
objects that describe each of the specified commands.
-
withCommands
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)
orwithCommands(java.util.Collection)
if you want to override the existing values.- Parameters:
commands
- An array ofCommand
objects that describe each of the specified commands.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withCommands
public DescribeCommandsResult withCommands(Collection<Command> commands)
An array of
Command
objects that describe each of the specified commands.- Parameters:
commands
- An array ofCommand
objects that describe each of the specified commands.- 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 DescribeCommandsResult clone()
-
-