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