@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UpdateFeatureRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
UpdateFeatureRequest() |
Modifier and Type | Method and Description |
---|---|
UpdateFeatureRequest |
addEntityOverridesEntry(String key,
String value)
Add a single EntityOverrides entry
|
UpdateFeatureRequest |
clearEntityOverridesEntries()
Removes all the entries added into EntityOverrides.
|
UpdateFeatureRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
List<VariationConfig> |
getAddOrUpdateVariations()
To update variation configurations for this feature, or add new ones, specify this structure.
|
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()
Specified 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 |
getFeature()
The name of the feature to be updated.
|
String |
getProject()
The name or ARN of the project that contains the feature to be updated.
|
List<String> |
getRemoveVariations()
Removes a variation from the feature.
|
int |
hashCode() |
void |
setAddOrUpdateVariations(Collection<VariationConfig> addOrUpdateVariations)
To update variation configurations for this feature, or add new ones, specify this structure.
|
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)
Specified 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 |
setFeature(String feature)
The name of the feature to be updated.
|
void |
setProject(String project)
The name or ARN of the project that contains the feature to be updated.
|
void |
setRemoveVariations(Collection<String> removeVariations)
Removes a variation from the feature.
|
String |
toString()
Returns a string representation of this object.
|
UpdateFeatureRequest |
withAddOrUpdateVariations(Collection<VariationConfig> addOrUpdateVariations)
To update variation configurations for this feature, or add new ones, specify this structure.
|
UpdateFeatureRequest |
withAddOrUpdateVariations(VariationConfig... addOrUpdateVariations)
To update variation configurations for this feature, or add new ones, specify this structure.
|
UpdateFeatureRequest |
withDefaultVariation(String defaultVariation)
The name of the variation to use as the default variation.
|
UpdateFeatureRequest |
withDescription(String description)
An optional description of the feature.
|
UpdateFeatureRequest |
withEntityOverrides(Map<String,String> entityOverrides)
Specified users that should always be served a specific variation of a feature.
|
UpdateFeatureRequest |
withEvaluationStrategy(FeatureEvaluationStrategy evaluationStrategy)
Specify
ALL_RULES to activate the traffic allocation specified by any ongoing launches or
experiments. |
UpdateFeatureRequest |
withEvaluationStrategy(String evaluationStrategy)
Specify
ALL_RULES to activate the traffic allocation specified by any ongoing launches or
experiments. |
UpdateFeatureRequest |
withFeature(String feature)
The name of the feature to be updated.
|
UpdateFeatureRequest |
withProject(String project)
The name or ARN of the project that contains the feature to be updated.
|
UpdateFeatureRequest |
withRemoveVariations(Collection<String> removeVariations)
Removes a variation from the feature.
|
UpdateFeatureRequest |
withRemoveVariations(String... removeVariations)
Removes a variation from the feature.
|
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 List<VariationConfig> getAddOrUpdateVariations()
To update variation configurations for this feature, or add new ones, specify this structure. In this array, include any variations that you want to add or update. If the array includes a variation name that already exists for this feature, it is updated. If it includes a new variation name, it is added as a new variation.
public void setAddOrUpdateVariations(Collection<VariationConfig> addOrUpdateVariations)
To update variation configurations for this feature, or add new ones, specify this structure. In this array, include any variations that you want to add or update. If the array includes a variation name that already exists for this feature, it is updated. If it includes a new variation name, it is added as a new variation.
addOrUpdateVariations
- To update variation configurations for this feature, or add new ones, specify this structure. In this
array, include any variations that you want to add or update. If the array includes a variation name that
already exists for this feature, it is updated. If it includes a new variation name, it is added as a new
variation.public UpdateFeatureRequest withAddOrUpdateVariations(VariationConfig... addOrUpdateVariations)
To update variation configurations for this feature, or add new ones, specify this structure. In this array, include any variations that you want to add or update. If the array includes a variation name that already exists for this feature, it is updated. If it includes a new variation name, it is added as a new variation.
NOTE: This method appends the values to the existing list (if any). Use
setAddOrUpdateVariations(java.util.Collection)
or
withAddOrUpdateVariations(java.util.Collection)
if you want to override the existing values.
addOrUpdateVariations
- To update variation configurations for this feature, or add new ones, specify this structure. In this
array, include any variations that you want to add or update. If the array includes a variation name that
already exists for this feature, it is updated. If it includes a new variation name, it is added as a new
variation.public UpdateFeatureRequest withAddOrUpdateVariations(Collection<VariationConfig> addOrUpdateVariations)
To update variation configurations for this feature, or add new ones, specify this structure. In this array, include any variations that you want to add or update. If the array includes a variation name that already exists for this feature, it is updated. If it includes a new variation name, it is added as a new variation.
addOrUpdateVariations
- To update variation configurations for this feature, or add new ones, specify this structure. In this
array, include any variations that you want to add or update. If the array includes a variation name that
already exists for this feature, it is updated. If it includes a new variation name, it is added as a new
variation.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.
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.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.
public UpdateFeatureRequest 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.
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.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 UpdateFeatureRequest withDescription(String description)
An optional description of the feature.
description
- An optional description of the feature.public Map<String,String> getEntityOverrides()
Specified 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)
Specified 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
- Specified 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 UpdateFeatureRequest withEntityOverrides(Map<String,String> entityOverrides)
Specified 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
- Specified 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 UpdateFeatureRequest addEntityOverridesEntry(String key, String value)
public UpdateFeatureRequest 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 UpdateFeatureRequest 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 UpdateFeatureRequest 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 setFeature(String feature)
The name of the feature to be updated.
feature
- The name of the feature to be updated.public String getFeature()
The name of the feature to be updated.
public UpdateFeatureRequest withFeature(String feature)
The name of the feature to be updated.
feature
- The name of the feature to be updated.public void setProject(String project)
The name or ARN of the project that contains the feature to be updated.
project
- The name or ARN of the project that contains the feature to be updated.public String getProject()
The name or ARN of the project that contains the feature to be updated.
public UpdateFeatureRequest withProject(String project)
The name or ARN of the project that contains the feature to be updated.
project
- The name or ARN of the project that contains the feature to be updated.public List<String> getRemoveVariations()
Removes a variation from the feature. If the variation you specify doesn't exist, then this makes no change and does not report an error.
This operation fails if you try to remove a variation that is part of an ongoing launch or experiment.
This operation fails if you try to remove a variation that is part of an ongoing launch or experiment.
public void setRemoveVariations(Collection<String> removeVariations)
Removes a variation from the feature. If the variation you specify doesn't exist, then this makes no change and does not report an error.
This operation fails if you try to remove a variation that is part of an ongoing launch or experiment.
removeVariations
- Removes a variation from the feature. If the variation you specify doesn't exist, then this makes no
change and does not report an error.
This operation fails if you try to remove a variation that is part of an ongoing launch or experiment.
public UpdateFeatureRequest withRemoveVariations(String... removeVariations)
Removes a variation from the feature. If the variation you specify doesn't exist, then this makes no change and does not report an error.
This operation fails if you try to remove a variation that is part of an ongoing launch or experiment.
NOTE: This method appends the values to the existing list (if any). Use
setRemoveVariations(java.util.Collection)
or withRemoveVariations(java.util.Collection)
if you
want to override the existing values.
removeVariations
- Removes a variation from the feature. If the variation you specify doesn't exist, then this makes no
change and does not report an error.
This operation fails if you try to remove a variation that is part of an ongoing launch or experiment.
public UpdateFeatureRequest withRemoveVariations(Collection<String> removeVariations)
Removes a variation from the feature. If the variation you specify doesn't exist, then this makes no change and does not report an error.
This operation fails if you try to remove a variation that is part of an ongoing launch or experiment.
removeVariations
- Removes a variation from the feature. If the variation you specify doesn't exist, then this makes no
change and does not report an error.
This operation fails if you try to remove a variation that is part of an ongoing launch or experiment.
public String toString()
toString
in class Object
Object.toString()
public UpdateFeatureRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()