/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.cloudwatchevidently.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class UpdateFeatureRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* 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. *
*/ private java.util.List* 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. *
*/ private String defaultVariation; /** ** An optional description of the feature. *
*/ private String description; /** ** 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. *
*/ private java.util.Map
* 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.
*
* The name of the feature to be updated. *
*/ private String feature; /** ** The name or ARN of the project that contains the feature to be updated. *
*/ private String project; /** ** 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. *
*/ private java.util.List* 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. *
* * @return 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 java.util.List* 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. *
* * @param 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 setAddOrUpdateVariations(java.util.Collection* 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 * {@link #setAddOrUpdateVariations(java.util.Collection)} or * {@link #withAddOrUpdateVariations(java.util.Collection)} if you want to override the existing values. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateFeatureRequest withAddOrUpdateVariations(VariationConfig... addOrUpdateVariations) { if (this.addOrUpdateVariations == null) { setAddOrUpdateVariations(new java.util.ArrayList* 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. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateFeatureRequest withAddOrUpdateVariations(java.util.Collection* 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. *
* * @param 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 setDefaultVariation(String defaultVariation) { this.defaultVariation = 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. *
* * @return 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() { return this.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. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateFeatureRequest withDefaultVariation(String defaultVariation) { setDefaultVariation(defaultVariation); return this; } /** ** An optional description of the feature. *
* * @param description * An optional description of the feature. */ public void setDescription(String description) { this.description = description; } /** ** An optional description of the feature. *
* * @return An optional description of the feature. */ public String getDescription() { return this.description; } /** ** An optional description of the feature. *
* * @param description * An optional description of the feature. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateFeatureRequest withDescription(String description) { setDescription(description); return this; } /** ** 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. *
* * @return 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 java.util.Map
* 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(java.util.Map
* 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.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateFeatureRequest withEntityOverrides(java.util.Map
* Specify
* Specify
* Specify
* Specify
* The name of the feature to be updated.
*
* The name of the feature to be updated.
*
* The name of the feature to be updated.
*
* The name or ARN of the project that contains the feature to be updated.
*
* The name or ARN of the project that contains the feature to be updated.
*
* The name or ARN of the project that contains the feature to be updated.
*
* 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.
* 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.
* @see FeatureEvaluationStrategy
*/
public void setEvaluationStrategy(String evaluationStrategy) {
this.evaluationStrategy = evaluationStrategy;
}
/**
* 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.
* @see FeatureEvaluationStrategy
*/
public String getEvaluationStrategy() {
return this.evaluationStrategy;
}
/**
* 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.
* @return Returns a reference to this object so that method calls can be chained together.
* @see FeatureEvaluationStrategy
*/
public UpdateFeatureRequest withEvaluationStrategy(String evaluationStrategy) {
setEvaluationStrategy(evaluationStrategy);
return this;
}
/**
* 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.
* @return Returns a reference to this object so that method calls can be chained together.
* @see FeatureEvaluationStrategy
*/
public UpdateFeatureRequest withEvaluationStrategy(FeatureEvaluationStrategy evaluationStrategy) {
this.evaluationStrategy = evaluationStrategy.toString();
return this;
}
/**
*
* This operation fails if you try to remove a variation that is part of an ongoing launch or experiment.
*/
public java.util.List
* 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(java.util.Collection
* 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
* {@link #setRemoveVariations(java.util.Collection)} or {@link #withRemoveVariations(java.util.Collection)} if you
* want to override the existing values.
*
* This operation fails if you try to remove a variation that is part of an ongoing launch or experiment.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateFeatureRequest withRemoveVariations(String... removeVariations) {
if (this.removeVariations == null) {
setRemoveVariations(new java.util.ArrayList
* 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.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateFeatureRequest withRemoveVariations(java.util.Collection