@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateExperimentTemplateTargetInput extends Object implements Serializable, Cloneable, StructuredPojo
Specifies a target for an experiment. You must specify at least one Amazon Resource Name (ARN) or at least one resource tag. You cannot specify both ARNs and tags.
For more information, see Targets in the Fault Injection Service User Guide.
Constructor and Description |
---|
CreateExperimentTemplateTargetInput() |
Modifier and Type | Method and Description |
---|---|
CreateExperimentTemplateTargetInput |
addParametersEntry(String key,
String value)
Add a single Parameters entry
|
CreateExperimentTemplateTargetInput |
addResourceTagsEntry(String key,
String value)
Add a single ResourceTags entry
|
CreateExperimentTemplateTargetInput |
clearParametersEntries()
Removes all the entries added into Parameters.
|
CreateExperimentTemplateTargetInput |
clearResourceTagsEntries()
Removes all the entries added into ResourceTags.
|
CreateExperimentTemplateTargetInput |
clone() |
boolean |
equals(Object obj) |
List<ExperimentTemplateTargetInputFilter> |
getFilters()
The filters to apply to identify target resources using specific attributes.
|
Map<String,String> |
getParameters()
The resource type parameters.
|
List<String> |
getResourceArns()
The Amazon Resource Names (ARNs) of the resources.
|
Map<String,String> |
getResourceTags()
The tags for the target resources.
|
String |
getResourceType()
The resource type.
|
String |
getSelectionMode()
Scopes the identified resources to a specific count of the resources at random, or a percentage of the resources.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setFilters(Collection<ExperimentTemplateTargetInputFilter> filters)
The filters to apply to identify target resources using specific attributes.
|
void |
setParameters(Map<String,String> parameters)
The resource type parameters.
|
void |
setResourceArns(Collection<String> resourceArns)
The Amazon Resource Names (ARNs) of the resources.
|
void |
setResourceTags(Map<String,String> resourceTags)
The tags for the target resources.
|
void |
setResourceType(String resourceType)
The resource type.
|
void |
setSelectionMode(String selectionMode)
Scopes the identified resources to a specific count of the resources at random, or a percentage of the resources.
|
String |
toString()
Returns a string representation of this object.
|
CreateExperimentTemplateTargetInput |
withFilters(Collection<ExperimentTemplateTargetInputFilter> filters)
The filters to apply to identify target resources using specific attributes.
|
CreateExperimentTemplateTargetInput |
withFilters(ExperimentTemplateTargetInputFilter... filters)
The filters to apply to identify target resources using specific attributes.
|
CreateExperimentTemplateTargetInput |
withParameters(Map<String,String> parameters)
The resource type parameters.
|
CreateExperimentTemplateTargetInput |
withResourceArns(Collection<String> resourceArns)
The Amazon Resource Names (ARNs) of the resources.
|
CreateExperimentTemplateTargetInput |
withResourceArns(String... resourceArns)
The Amazon Resource Names (ARNs) of the resources.
|
CreateExperimentTemplateTargetInput |
withResourceTags(Map<String,String> resourceTags)
The tags for the target resources.
|
CreateExperimentTemplateTargetInput |
withResourceType(String resourceType)
The resource type.
|
CreateExperimentTemplateTargetInput |
withSelectionMode(String selectionMode)
Scopes the identified resources to a specific count of the resources at random, or a percentage of the resources.
|
public void setResourceType(String resourceType)
The resource type. The resource type must be supported for the specified action.
resourceType
- The resource type. The resource type must be supported for the specified action.public String getResourceType()
The resource type. The resource type must be supported for the specified action.
public CreateExperimentTemplateTargetInput withResourceType(String resourceType)
The resource type. The resource type must be supported for the specified action.
resourceType
- The resource type. The resource type must be supported for the specified action.public List<String> getResourceArns()
The Amazon Resource Names (ARNs) of the resources.
public void setResourceArns(Collection<String> resourceArns)
The Amazon Resource Names (ARNs) of the resources.
resourceArns
- The Amazon Resource Names (ARNs) of the resources.public CreateExperimentTemplateTargetInput withResourceArns(String... resourceArns)
The Amazon Resource Names (ARNs) of the resources.
NOTE: This method appends the values to the existing list (if any). Use
setResourceArns(java.util.Collection)
or withResourceArns(java.util.Collection)
if you want to
override the existing values.
resourceArns
- The Amazon Resource Names (ARNs) of the resources.public CreateExperimentTemplateTargetInput withResourceArns(Collection<String> resourceArns)
The Amazon Resource Names (ARNs) of the resources.
resourceArns
- The Amazon Resource Names (ARNs) of the resources.public Map<String,String> getResourceTags()
The tags for the target resources.
public void setResourceTags(Map<String,String> resourceTags)
The tags for the target resources.
resourceTags
- The tags for the target resources.public CreateExperimentTemplateTargetInput withResourceTags(Map<String,String> resourceTags)
The tags for the target resources.
resourceTags
- The tags for the target resources.public CreateExperimentTemplateTargetInput addResourceTagsEntry(String key, String value)
public CreateExperimentTemplateTargetInput clearResourceTagsEntries()
public List<ExperimentTemplateTargetInputFilter> getFilters()
The filters to apply to identify target resources using specific attributes.
public void setFilters(Collection<ExperimentTemplateTargetInputFilter> filters)
The filters to apply to identify target resources using specific attributes.
filters
- The filters to apply to identify target resources using specific attributes.public CreateExperimentTemplateTargetInput withFilters(ExperimentTemplateTargetInputFilter... filters)
The filters to apply to identify target resources using specific attributes.
NOTE: This method appends the values to the existing list (if any). Use
setFilters(java.util.Collection)
or withFilters(java.util.Collection)
if you want to override
the existing values.
filters
- The filters to apply to identify target resources using specific attributes.public CreateExperimentTemplateTargetInput withFilters(Collection<ExperimentTemplateTargetInputFilter> filters)
The filters to apply to identify target resources using specific attributes.
filters
- The filters to apply to identify target resources using specific attributes.public void setSelectionMode(String selectionMode)
Scopes the identified resources to a specific count of the resources at random, or a percentage of the resources. All identified resources are included in the target.
ALL - Run the action on all identified targets. This is the default.
COUNT(n) - Run the action on the specified number of targets, chosen from the identified targets at random. For example, COUNT(1) selects one of the targets.
PERCENT(n) - Run the action on the specified percentage of targets, chosen from the identified targets at random. For example, PERCENT(25) selects 25% of the targets.
selectionMode
- Scopes the identified resources to a specific count of the resources at random, or a percentage of the
resources. All identified resources are included in the target.
ALL - Run the action on all identified targets. This is the default.
COUNT(n) - Run the action on the specified number of targets, chosen from the identified targets at random. For example, COUNT(1) selects one of the targets.
PERCENT(n) - Run the action on the specified percentage of targets, chosen from the identified targets at random. For example, PERCENT(25) selects 25% of the targets.
public String getSelectionMode()
Scopes the identified resources to a specific count of the resources at random, or a percentage of the resources. All identified resources are included in the target.
ALL - Run the action on all identified targets. This is the default.
COUNT(n) - Run the action on the specified number of targets, chosen from the identified targets at random. For example, COUNT(1) selects one of the targets.
PERCENT(n) - Run the action on the specified percentage of targets, chosen from the identified targets at random. For example, PERCENT(25) selects 25% of the targets.
ALL - Run the action on all identified targets. This is the default.
COUNT(n) - Run the action on the specified number of targets, chosen from the identified targets at random. For example, COUNT(1) selects one of the targets.
PERCENT(n) - Run the action on the specified percentage of targets, chosen from the identified targets at random. For example, PERCENT(25) selects 25% of the targets.
public CreateExperimentTemplateTargetInput withSelectionMode(String selectionMode)
Scopes the identified resources to a specific count of the resources at random, or a percentage of the resources. All identified resources are included in the target.
ALL - Run the action on all identified targets. This is the default.
COUNT(n) - Run the action on the specified number of targets, chosen from the identified targets at random. For example, COUNT(1) selects one of the targets.
PERCENT(n) - Run the action on the specified percentage of targets, chosen from the identified targets at random. For example, PERCENT(25) selects 25% of the targets.
selectionMode
- Scopes the identified resources to a specific count of the resources at random, or a percentage of the
resources. All identified resources are included in the target.
ALL - Run the action on all identified targets. This is the default.
COUNT(n) - Run the action on the specified number of targets, chosen from the identified targets at random. For example, COUNT(1) selects one of the targets.
PERCENT(n) - Run the action on the specified percentage of targets, chosen from the identified targets at random. For example, PERCENT(25) selects 25% of the targets.
public Map<String,String> getParameters()
The resource type parameters.
public void setParameters(Map<String,String> parameters)
The resource type parameters.
parameters
- The resource type parameters.public CreateExperimentTemplateTargetInput withParameters(Map<String,String> parameters)
The resource type parameters.
parameters
- The resource type parameters.public CreateExperimentTemplateTargetInput addParametersEntry(String key, String value)
public CreateExperimentTemplateTargetInput clearParametersEntries()
public String toString()
toString
in class Object
Object.toString()
public CreateExperimentTemplateTargetInput clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.