@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ExperimentTemplateTarget extends Object implements Serializable, Cloneable, StructuredPojo
Describes a target for an experiment template.
Constructor and Description |
---|
ExperimentTemplateTarget() |
Modifier and Type | Method and Description |
---|---|
ExperimentTemplateTarget |
addResourceTagsEntry(String key,
String value)
Add a single ResourceTags entry
|
ExperimentTemplateTarget |
clearResourceTagsEntries()
Removes all the entries added into ResourceTags.
|
ExperimentTemplateTarget |
clone() |
boolean |
equals(Object obj) |
List<ExperimentTemplateTargetFilter> |
getFilters()
The filters to apply to identify target resources using specific attributes.
|
List<String> |
getResourceArns()
The Amazon Resource Names (ARNs) of the targets.
|
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 or percentage.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setFilters(Collection<ExperimentTemplateTargetFilter> filters)
The filters to apply to identify target resources using specific attributes.
|
void |
setResourceArns(Collection<String> resourceArns)
The Amazon Resource Names (ARNs) of the targets.
|
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 or percentage.
|
String |
toString()
Returns a string representation of this object.
|
ExperimentTemplateTarget |
withFilters(Collection<ExperimentTemplateTargetFilter> filters)
The filters to apply to identify target resources using specific attributes.
|
ExperimentTemplateTarget |
withFilters(ExperimentTemplateTargetFilter... filters)
The filters to apply to identify target resources using specific attributes.
|
ExperimentTemplateTarget |
withResourceArns(Collection<String> resourceArns)
The Amazon Resource Names (ARNs) of the targets.
|
ExperimentTemplateTarget |
withResourceArns(String... resourceArns)
The Amazon Resource Names (ARNs) of the targets.
|
ExperimentTemplateTarget |
withResourceTags(Map<String,String> resourceTags)
The tags for the target resources.
|
ExperimentTemplateTarget |
withResourceType(String resourceType)
The resource type.
|
ExperimentTemplateTarget |
withSelectionMode(String selectionMode)
Scopes the identified resources to a specific count or percentage.
|
public void setResourceType(String resourceType)
The resource type.
resourceType
- The resource type.public String getResourceType()
The resource type.
public ExperimentTemplateTarget withResourceType(String resourceType)
The resource type.
resourceType
- The resource type.public List<String> getResourceArns()
The Amazon Resource Names (ARNs) of the targets.
public void setResourceArns(Collection<String> resourceArns)
The Amazon Resource Names (ARNs) of the targets.
resourceArns
- The Amazon Resource Names (ARNs) of the targets.public ExperimentTemplateTarget withResourceArns(String... resourceArns)
The Amazon Resource Names (ARNs) of the targets.
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 targets.public ExperimentTemplateTarget withResourceArns(Collection<String> resourceArns)
The Amazon Resource Names (ARNs) of the targets.
resourceArns
- The Amazon Resource Names (ARNs) of the targets.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 ExperimentTemplateTarget withResourceTags(Map<String,String> resourceTags)
The tags for the target resources.
resourceTags
- The tags for the target resources.public ExperimentTemplateTarget addResourceTagsEntry(String key, String value)
public ExperimentTemplateTarget clearResourceTagsEntries()
public List<ExperimentTemplateTargetFilter> getFilters()
The filters to apply to identify target resources using specific attributes.
public void setFilters(Collection<ExperimentTemplateTargetFilter> 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 ExperimentTemplateTarget withFilters(ExperimentTemplateTargetFilter... 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 ExperimentTemplateTarget withFilters(Collection<ExperimentTemplateTargetFilter> 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 or percentage.
selectionMode
- Scopes the identified resources to a specific count or percentage.public String getSelectionMode()
Scopes the identified resources to a specific count or percentage.
public ExperimentTemplateTarget withSelectionMode(String selectionMode)
Scopes the identified resources to a specific count or percentage.
selectionMode
- Scopes the identified resources to a specific count or percentage.public String toString()
toString
in class Object
Object.toString()
public ExperimentTemplateTarget clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.