StructuredPojo
, ToCopyableBuilder<Target.Builder,Target>
@Generated("software.amazon.awssdk:codegen") public class Target extends Object implements StructuredPojo, ToCopyableBuilder<Target.Builder,Target>
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.
Modifier and Type | Class | Description |
---|---|---|
static interface |
Target.Builder |
Modifier and Type | Method | Description |
---|---|---|
static Target.Builder |
builder() |
|
boolean |
equals(Object obj) |
|
int |
hashCode() |
|
String |
key() |
User-defined criteria for sending commands that target instances that meet the criteria.
|
void |
marshall(ProtocolMarshaller protocolMarshaller) |
Marshalls this structured data using the given
ProtocolMarshaller . |
static Class<? extends Target.Builder> |
serializableBuilderClass() |
|
Target.Builder |
toBuilder() |
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
|
List<String> |
values() |
User-defined criteria that maps to Key.
|
public 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 Executing a Command Using Systems Manager Run Command.
public List<String> values()
User-defined criteria that maps to Key. For example, if you specified tag:ServerRole, you could specify value:WebServer to execute 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 Executing a Command Using Systems Manager Run Command.
public Target.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Target.Builder,Target>
public static Target.Builder builder()
public static Class<? extends Target.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.