@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RunCommandTarget extends Object implements Serializable, Cloneable, StructuredPojo
Information about the EC2 instances that are to be sent the command, specified as key-value pairs. Each
RunCommandTarget
block can include only one key, but this key may specify multiple values.
Constructor and Description |
---|
RunCommandTarget() |
Modifier and Type | Method and Description |
---|---|
RunCommandTarget |
clone() |
boolean |
equals(Object obj) |
String |
getKey()
Can be either
tag: tag-key or InstanceIds . |
List<String> |
getValues()
If
Key is tag: tag-key, Values is a list of tag values. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setKey(String key)
Can be either
tag: tag-key or InstanceIds . |
void |
setValues(Collection<String> values)
If
Key is tag: tag-key, Values is a list of tag values. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
RunCommandTarget |
withKey(String key)
Can be either
tag: tag-key or InstanceIds . |
RunCommandTarget |
withValues(Collection<String> values)
If
Key is tag: tag-key, Values is a list of tag values. |
RunCommandTarget |
withValues(String... values)
If
Key is tag: tag-key, Values is a list of tag values. |
public void setKey(String key)
Can be either tag:
tag-key or InstanceIds
.
key
- Can be either tag:
tag-key or InstanceIds
.public String getKey()
Can be either tag:
tag-key or InstanceIds
.
tag:
tag-key or InstanceIds
.public RunCommandTarget withKey(String key)
Can be either tag:
tag-key or InstanceIds
.
key
- Can be either tag:
tag-key or InstanceIds
.public List<String> getValues()
If Key
is tag:
tag-key, Values
is a list of tag values. If
Key
is InstanceIds
, Values
is a list of Amazon EC2 instance IDs.
Key
is tag:
tag-key, Values
is a list of tag values. If
Key
is InstanceIds
, Values
is a list of Amazon EC2 instance IDs.public void setValues(Collection<String> values)
If Key
is tag:
tag-key, Values
is a list of tag values. If
Key
is InstanceIds
, Values
is a list of Amazon EC2 instance IDs.
values
- If Key
is tag:
tag-key, Values
is a list of tag values. If
Key
is InstanceIds
, Values
is a list of Amazon EC2 instance IDs.public RunCommandTarget withValues(String... values)
If Key
is tag:
tag-key, Values
is a list of tag values. If
Key
is InstanceIds
, Values
is a list of Amazon EC2 instance IDs.
NOTE: This method appends the values to the existing list (if any). Use
setValues(java.util.Collection)
or withValues(java.util.Collection)
if you want to override the
existing values.
values
- If Key
is tag:
tag-key, Values
is a list of tag values. If
Key
is InstanceIds
, Values
is a list of Amazon EC2 instance IDs.public RunCommandTarget withValues(Collection<String> values)
If Key
is tag:
tag-key, Values
is a list of tag values. If
Key
is InstanceIds
, Values
is a list of Amazon EC2 instance IDs.
values
- If Key
is tag:
tag-key, Values
is a list of tag values. If
Key
is InstanceIds
, Values
is a list of Amazon EC2 instance IDs.public String toString()
toString
in class Object
Object.toString()
public RunCommandTarget clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.