@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Target extends Object implements Serializable, Cloneable, StructuredPojo
An array of search criteria that targets instances using a Key,Value combination that you specify.
Targets is required if you don't provide one or more instance IDs in the call.
| Constructor and Description |
|---|
Target() |
| Modifier and Type | Method and Description |
|---|---|
Target |
clone() |
boolean |
equals(Object obj) |
String |
getKey()
User-defined criteria for sending commands that target instances that meet the criteria.
|
List<String> |
getValues()
User-defined criteria that maps to
Key. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setKey(String key)
User-defined criteria for sending commands that target instances that meet the criteria.
|
void |
setValues(Collection<String> values)
User-defined criteria that maps to
Key. |
String |
toString()
Returns a string representation of this object.
|
Target |
withKey(String key)
User-defined criteria for sending commands that target instances that meet the criteria.
|
Target |
withValues(Collection<String> values)
User-defined criteria that maps to
Key. |
Target |
withValues(String... values)
User-defined criteria that maps to
Key. |
public void setKey(String key)
User-defined criteria for sending commands that target instances that meet the criteria. Key can be
tag:<Amazon EC2 tag> or InstanceIds. For more information about how to send
commands that target instances using Key,Value parameters, see Using Targets and Rate Controls to Send Commands to a Fleet in the AWS Systems Manager User Guide.
key - User-defined criteria for sending commands that target instances that meet the criteria. Key
can be tag:<Amazon EC2 tag> or InstanceIds. For more information about how
to send commands that target instances using Key,Value parameters, see Using Targets and Rate Controls to Send Commands to a Fleet in the AWS Systems Manager User
Guide.public String getKey()
User-defined criteria for sending commands that target instances that meet the criteria. Key can be
tag:<Amazon EC2 tag> or InstanceIds. For more information about how to send
commands that target instances using Key,Value parameters, see Using Targets and Rate Controls to Send Commands to a Fleet in the AWS Systems Manager User Guide.
Key
can be tag:<Amazon EC2 tag> or InstanceIds. For more information about
how to send commands that target instances using Key,Value parameters, see Using Targets and Rate Controls to Send Commands to a Fleet in the AWS Systems Manager User
Guide.public Target withKey(String key)
User-defined criteria for sending commands that target instances that meet the criteria. Key can be
tag:<Amazon EC2 tag> or InstanceIds. For more information about how to send
commands that target instances using Key,Value parameters, see Using Targets and Rate Controls to Send Commands to a Fleet in the AWS Systems Manager User Guide.
key - User-defined criteria for sending commands that target instances that meet the criteria. Key
can be tag:<Amazon EC2 tag> or InstanceIds. For more information about how
to send commands that target instances using Key,Value parameters, see Using Targets and Rate Controls to Send Commands to a Fleet in the AWS Systems Manager User
Guide.public List<String> getValues()
User-defined criteria that maps to Key. For example, if you specified tag:ServerRole,
you could specify value:WebServer to run a command on instances that include Amazon EC2 tags of
ServerRole,WebServer. For more information about how to send commands that target instances using
Key,Value parameters, see Using Targets and
Rate Controls to Send Commands to a Fleet in the AWS Systems Manager User Guide.
Key. For example, if you specified
tag:ServerRole, you could specify value:WebServer to run a command on instances
that include Amazon EC2 tags of ServerRole,WebServer. For more information about how to send
commands that target instances using Key,Value parameters, see Using
Targets and Rate Controls to Send Commands to a Fleet in the AWS Systems Manager User Guide.public void setValues(Collection<String> values)
User-defined criteria that maps to Key. For example, if you specified tag:ServerRole,
you could specify value:WebServer to run a command on instances that include Amazon EC2 tags of
ServerRole,WebServer. For more information about how to send commands that target instances using
Key,Value parameters, see Using Targets and
Rate Controls to Send Commands to a Fleet in the AWS Systems Manager User Guide.
values - User-defined criteria that maps to Key. For example, if you specified
tag:ServerRole, you could specify value:WebServer to run a command on instances
that include Amazon EC2 tags of ServerRole,WebServer. For more information about how to send
commands that target instances using Key,Value parameters, see Using
Targets and Rate Controls to Send Commands to a Fleet in the AWS Systems Manager User Guide.public Target withValues(String... values)
User-defined criteria that maps to Key. For example, if you specified tag:ServerRole,
you could specify value:WebServer to run a command on instances that include Amazon EC2 tags of
ServerRole,WebServer. For more information about how to send commands that target instances using
Key,Value parameters, see Using Targets and
Rate Controls to Send Commands to a Fleet in the AWS Systems Manager User Guide.
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 - User-defined criteria that maps to Key. For example, if you specified
tag:ServerRole, you could specify value:WebServer to run a command on instances
that include Amazon EC2 tags of ServerRole,WebServer. For more information about how to send
commands that target instances using Key,Value parameters, see Using
Targets and Rate Controls to Send Commands to a Fleet in the AWS Systems Manager User Guide.public Target withValues(Collection<String> values)
User-defined criteria that maps to Key. For example, if you specified tag:ServerRole,
you could specify value:WebServer to run a command on instances that include Amazon EC2 tags of
ServerRole,WebServer. For more information about how to send commands that target instances using
Key,Value parameters, see Using Targets and
Rate Controls to Send Commands to a Fleet in the AWS Systems Manager User Guide.
values - User-defined criteria that maps to Key. For example, if you specified
tag:ServerRole, you could specify value:WebServer to run a command on instances
that include Amazon EC2 tags of ServerRole,WebServer. For more information about how to send
commands that target instances using Key,Value parameters, see Using
Targets and Rate Controls to Send Commands to a Fleet in the AWS Systems Manager User Guide.public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2019. All rights reserved.