@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RunCommandParameters extends Object implements Serializable, Cloneable, StructuredPojo
This parameter contains the criteria (either InstanceIds or a tag) used to specify which EC2 instances are to be sent the command.
| Constructor and Description |
|---|
RunCommandParameters() |
| Modifier and Type | Method and Description |
|---|---|
RunCommandParameters |
clone() |
boolean |
equals(Object obj) |
List<RunCommandTarget> |
getRunCommandTargets()
Currently, we support including only one RunCommandTarget block, which specifies either an array of InstanceIds
or a tag.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setRunCommandTargets(Collection<RunCommandTarget> runCommandTargets)
Currently, we support including only one RunCommandTarget block, which specifies either an array of InstanceIds
or a tag.
|
String |
toString()
Returns a string representation of this object.
|
RunCommandParameters |
withRunCommandTargets(Collection<RunCommandTarget> runCommandTargets)
Currently, we support including only one RunCommandTarget block, which specifies either an array of InstanceIds
or a tag.
|
RunCommandParameters |
withRunCommandTargets(RunCommandTarget... runCommandTargets)
Currently, we support including only one RunCommandTarget block, which specifies either an array of InstanceIds
or a tag.
|
public List<RunCommandTarget> getRunCommandTargets()
Currently, we support including only one RunCommandTarget block, which specifies either an array of InstanceIds or a tag.
public void setRunCommandTargets(Collection<RunCommandTarget> runCommandTargets)
Currently, we support including only one RunCommandTarget block, which specifies either an array of InstanceIds or a tag.
runCommandTargets - Currently, we support including only one RunCommandTarget block, which specifies either an array of
InstanceIds or a tag.public RunCommandParameters withRunCommandTargets(RunCommandTarget... runCommandTargets)
Currently, we support including only one RunCommandTarget block, which specifies either an array of InstanceIds or a tag.
NOTE: This method appends the values to the existing list (if any). Use
setRunCommandTargets(java.util.Collection) or withRunCommandTargets(java.util.Collection) if
you want to override the existing values.
runCommandTargets - Currently, we support including only one RunCommandTarget block, which specifies either an array of
InstanceIds or a tag.public RunCommandParameters withRunCommandTargets(Collection<RunCommandTarget> runCommandTargets)
Currently, we support including only one RunCommandTarget block, which specifies either an array of InstanceIds or a tag.
runCommandTargets - Currently, we support including only one RunCommandTarget block, which specifies either an array of
InstanceIds or a tag.public String toString()
toString in class ObjectObject.toString()public RunCommandParameters clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.