@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateFeatureRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateFeatureRequest() |
Modifier and Type | Method and Description |
---|---|
CreateFeatureRequest |
addEntityOverridesEntry(String key,
String value)
Add a single EntityOverrides entry
|
CreateFeatureRequest |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
CreateFeatureRequest |
clearEntityOverridesEntries()
Removes all the entries added into EntityOverrides.
|
CreateFeatureRequest |
clearTagsEntries()
Removes all the entries added into Tags.
|
CreateFeatureRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getDefaultVariation()
The name of the variation to use as the default variation.
|
String |
getDescription()
An optional description of the feature.
|
Map<String,String> |
getEntityOverrides()
Specify users that should always be served a specific variation of a feature.
|
String |
getEvaluationStrategy()
Specify
ALL_RULES to activate the traffic allocation specified by any ongoing launches or
experiments. |
String |
getName()
The name for the new feature.
|
String |
getProject()
The name or ARN of the project that is to contain the new feature.
|
Map<String,String> |
getTags()
Assigns one or more tags (key-value pairs) to the feature.
|
List<VariationConfig> |
getVariations()
An array of structures that contain the configuration of the feature's different variations.
|
int |
hashCode() |
void |
setDefaultVariation(String defaultVariation)
The name of the variation to use as the default variation.
|
void |
setDescription(String description)
An optional description of the feature.
|
void |
setEntityOverrides(Map<String,String> entityOverrides)
Specify users that should always be served a specific variation of a feature.
|
void |
setEvaluationStrategy(String evaluationStrategy)
Specify
ALL_RULES to activate the traffic allocation specified by any ongoing launches or
experiments. |
void |
setName(String name)
The name for the new feature.
|
void |
setProject(String project)
The name or ARN of the project that is to contain the new feature.
|
void |
setTags(Map<String,String> tags)
Assigns one or more tags (key-value pairs) to the feature.
|
void |
setVariations(Collection<VariationConfig> variations)
An array of structures that contain the configuration of the feature's different variations.
|
String |
toString()
Returns a string representation of this object.
|
CreateFeatureRequest |
withDefaultVariation(String defaultVariation)
The name of the variation to use as the default variation.
|
CreateFeatureRequest |
withDescription(String description)
An optional description of the feature.
|
CreateFeatureRequest |
withEntityOverrides(Map<String,String> entityOverrides)
Specify users that should always be served a specific variation of a feature.
|
CreateFeatureRequest |
withEvaluationStrategy(FeatureEvaluationStrategy evaluationStrategy)
Specify
ALL_RULES to activate the traffic allocation specified by any ongoing launches or
experiments. |
CreateFeatureRequest |
withEvaluationStrategy(String evaluationStrategy)
Specify
ALL_RULES to activate the traffic allocation specified by any ongoing launches or
experiments. |
CreateFeatureRequest |
withName(String name)
The name for the new feature.
|
CreateFeatureRequest |
withProject(String project)
The name or ARN of the project that is to contain the new feature.
|
CreateFeatureRequest |
withTags(Map<String,String> tags)
Assigns one or more tags (key-value pairs) to the feature.
|
CreateFeatureRequest |
withVariations(Collection<VariationConfig> variations)
An array of structures that contain the configuration of the feature's different variations.
|
CreateFeatureRequest |
withVariations(VariationConfig... variations)
An array of structures that contain the configuration of the feature's different variations.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setDefaultVariation(String defaultVariation)
The name of the variation to use as the default variation. The default variation is served to users who are not allocated to any ongoing launches or experiments of this feature.
This variation must also be listed in the variations
structure.
If you omit defaultVariation
, the first variation listed in the variations
structure is
used as the default variation.
defaultVariation
- The name of the variation to use as the default variation. The default variation is served to users who
are not allocated to any ongoing launches or experiments of this feature.
This variation must also be listed in the variations
structure.
If you omit defaultVariation
, the first variation listed in the variations
structure is used as the default variation.
public String getDefaultVariation()
The name of the variation to use as the default variation. The default variation is served to users who are not allocated to any ongoing launches or experiments of this feature.
This variation must also be listed in the variations
structure.
If you omit defaultVariation
, the first variation listed in the variations
structure is
used as the default variation.
This variation must also be listed in the variations
structure.
If you omit defaultVariation
, the first variation listed in the variations
structure is used as the default variation.
public CreateFeatureRequest withDefaultVariation(String defaultVariation)
The name of the variation to use as the default variation. The default variation is served to users who are not allocated to any ongoing launches or experiments of this feature.
This variation must also be listed in the variations
structure.
If you omit defaultVariation
, the first variation listed in the variations
structure is
used as the default variation.
defaultVariation
- The name of the variation to use as the default variation. The default variation is served to users who
are not allocated to any ongoing launches or experiments of this feature.
This variation must also be listed in the variations
structure.
If you omit defaultVariation
, the first variation listed in the variations
structure is used as the default variation.
public void setDescription(String description)
An optional description of the feature.
description
- An optional description of the feature.public String getDescription()
An optional description of the feature.
public CreateFeatureRequest withDescription(String description)
An optional description of the feature.
description
- An optional description of the feature.public Map<String,String> getEntityOverrides()
Specify users that should always be served a specific variation of a feature. Each user is specified by a key-value pair . For each key, specify a user by entering their user ID, account ID, or some other identifier. For the value, specify the name of the variation that they are to be served.
This parameter is limited to 2500 overrides or a total of 40KB. The 40KB limit includes an overhead of 6 bytes per override.
This parameter is limited to 2500 overrides or a total of 40KB. The 40KB limit includes an overhead of 6 bytes per override.
public void setEntityOverrides(Map<String,String> entityOverrides)
Specify users that should always be served a specific variation of a feature. Each user is specified by a key-value pair . For each key, specify a user by entering their user ID, account ID, or some other identifier. For the value, specify the name of the variation that they are to be served.
This parameter is limited to 2500 overrides or a total of 40KB. The 40KB limit includes an overhead of 6 bytes per override.
entityOverrides
- Specify users that should always be served a specific variation of a feature. Each user is specified by a
key-value pair . For each key, specify a user by entering their user ID, account ID, or some other
identifier. For the value, specify the name of the variation that they are to be served.
This parameter is limited to 2500 overrides or a total of 40KB. The 40KB limit includes an overhead of 6 bytes per override.
public CreateFeatureRequest withEntityOverrides(Map<String,String> entityOverrides)
Specify users that should always be served a specific variation of a feature. Each user is specified by a key-value pair . For each key, specify a user by entering their user ID, account ID, or some other identifier. For the value, specify the name of the variation that they are to be served.
This parameter is limited to 2500 overrides or a total of 40KB. The 40KB limit includes an overhead of 6 bytes per override.
entityOverrides
- Specify users that should always be served a specific variation of a feature. Each user is specified by a
key-value pair . For each key, specify a user by entering their user ID, account ID, or some other
identifier. For the value, specify the name of the variation that they are to be served.
This parameter is limited to 2500 overrides or a total of 40KB. The 40KB limit includes an overhead of 6 bytes per override.
public CreateFeatureRequest addEntityOverridesEntry(String key, String value)
public CreateFeatureRequest clearEntityOverridesEntries()
public void setEvaluationStrategy(String evaluationStrategy)
Specify ALL_RULES
to activate the traffic allocation specified by any ongoing launches or
experiments. Specify DEFAULT_VARIATION
to serve the default variation to all users instead.
evaluationStrategy
- Specify ALL_RULES
to activate the traffic allocation specified by any ongoing launches or
experiments. Specify DEFAULT_VARIATION
to serve the default variation to all users instead.FeatureEvaluationStrategy
public String getEvaluationStrategy()
Specify ALL_RULES
to activate the traffic allocation specified by any ongoing launches or
experiments. Specify DEFAULT_VARIATION
to serve the default variation to all users instead.
ALL_RULES
to activate the traffic allocation specified by any ongoing launches or
experiments. Specify DEFAULT_VARIATION
to serve the default variation to all users instead.FeatureEvaluationStrategy
public CreateFeatureRequest withEvaluationStrategy(String evaluationStrategy)
Specify ALL_RULES
to activate the traffic allocation specified by any ongoing launches or
experiments. Specify DEFAULT_VARIATION
to serve the default variation to all users instead.
evaluationStrategy
- Specify ALL_RULES
to activate the traffic allocation specified by any ongoing launches or
experiments. Specify DEFAULT_VARIATION
to serve the default variation to all users instead.FeatureEvaluationStrategy
public CreateFeatureRequest withEvaluationStrategy(FeatureEvaluationStrategy evaluationStrategy)
Specify ALL_RULES
to activate the traffic allocation specified by any ongoing launches or
experiments. Specify DEFAULT_VARIATION
to serve the default variation to all users instead.
evaluationStrategy
- Specify ALL_RULES
to activate the traffic allocation specified by any ongoing launches or
experiments. Specify DEFAULT_VARIATION
to serve the default variation to all users instead.FeatureEvaluationStrategy
public void setName(String name)
The name for the new feature.
name
- The name for the new feature.public String getName()
The name for the new feature.
public CreateFeatureRequest withName(String name)
The name for the new feature.
name
- The name for the new feature.public void setProject(String project)
The name or ARN of the project that is to contain the new feature.
project
- The name or ARN of the project that is to contain the new feature.public String getProject()
The name or ARN of the project that is to contain the new feature.
public CreateFeatureRequest withProject(String project)
The name or ARN of the project that is to contain the new feature.
project
- The name or ARN of the project that is to contain the new feature.public Map<String,String> getTags()
Assigns one or more tags (key-value pairs) to the feature.
Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.
Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly as strings of characters.
You can associate as many as 50 tags with a feature.
For more information, see Tagging Amazon Web Services resources.
Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.
Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly as strings of characters.
You can associate as many as 50 tags with a feature.
For more information, see Tagging Amazon Web Services resources.
public void setTags(Map<String,String> tags)
Assigns one or more tags (key-value pairs) to the feature.
Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.
Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly as strings of characters.
You can associate as many as 50 tags with a feature.
For more information, see Tagging Amazon Web Services resources.
tags
- Assigns one or more tags (key-value pairs) to the feature.
Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.
Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly as strings of characters.
You can associate as many as 50 tags with a feature.
For more information, see Tagging Amazon Web Services resources.
public CreateFeatureRequest withTags(Map<String,String> tags)
Assigns one or more tags (key-value pairs) to the feature.
Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.
Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly as strings of characters.
You can associate as many as 50 tags with a feature.
For more information, see Tagging Amazon Web Services resources.
tags
- Assigns one or more tags (key-value pairs) to the feature.
Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.
Tags don't have any semantic meaning to Amazon Web Services and are interpreted strictly as strings of characters.
You can associate as many as 50 tags with a feature.
For more information, see Tagging Amazon Web Services resources.
public CreateFeatureRequest addTagsEntry(String key, String value)
public CreateFeatureRequest clearTagsEntries()
public List<VariationConfig> getVariations()
An array of structures that contain the configuration of the feature's different variations.
public void setVariations(Collection<VariationConfig> variations)
An array of structures that contain the configuration of the feature's different variations.
variations
- An array of structures that contain the configuration of the feature's different variations.public CreateFeatureRequest withVariations(VariationConfig... variations)
An array of structures that contain the configuration of the feature's different variations.
NOTE: This method appends the values to the existing list (if any). Use
setVariations(java.util.Collection)
or withVariations(java.util.Collection)
if you want to
override the existing values.
variations
- An array of structures that contain the configuration of the feature's different variations.public CreateFeatureRequest withVariations(Collection<VariationConfig> variations)
An array of structures that contain the configuration of the feature's different variations.
variations
- An array of structures that contain the configuration of the feature's different variations.public String toString()
toString
in class Object
Object.toString()
public CreateFeatureRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()