/* * 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.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* This structure contains information about one Evidently feature in your account. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Feature implements Serializable, Cloneable, StructuredPojo { /** ** The ARN of the feature. *
*/ private String arn; /** ** The date and time that the feature is created. *
*/ private java.util.Date createdTime; /** ** The name of the variation that is used 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.
*
* The description of the feature. *
*/ private String description; /** ** A set of key-value pairs that specify users who should always be served a specific variation of a feature. Each * key specifies a user using their user ID, account ID, or some other identifier. The value specifies the name of * the variation that the user is to be served. *
*
* For the override to be successful, the value of the key must match the entityId
used in the EvaluateFeature operation.
*
* An array of structures that define the evaluation rules for the feature. *
*/ private java.util.List
* If this value is ALL_RULES
, the traffic allocation specified by any ongoing launches or experiments
* is being used. If this is DEFAULT_VARIATION
, the default variation is being served to all users.
*
* The date and time that the feature was most recently updated. *
*/ private java.util.Date lastUpdatedTime; /** ** The name of the feature. *
*/ private String name; /** ** The name or ARN of the project that contains the feature. *
*/ private String project; /** ** The current state of the feature. *
*/ private String status; /** ** The list of tag keys and values associated with this feature. *
*/ private java.util.Map* Defines the type of value used to define the different feature variations. For more information, see Variation types *
*/ private String valueType; /** ** An array of structures that contain the configuration of the feature's different variations. *
*/ private java.util.List* The ARN of the feature. *
* * @param arn * The ARN of the feature. */ public void setArn(String arn) { this.arn = arn; } /** ** The ARN of the feature. *
* * @return The ARN of the feature. */ public String getArn() { return this.arn; } /** ** The ARN of the feature. *
* * @param arn * The ARN of the feature. * @return Returns a reference to this object so that method calls can be chained together. */ public Feature withArn(String arn) { setArn(arn); return this; } /** ** The date and time that the feature is created. *
* * @param createdTime * The date and time that the feature is created. */ public void setCreatedTime(java.util.Date createdTime) { this.createdTime = createdTime; } /** ** The date and time that the feature is created. *
* * @return The date and time that the feature is created. */ public java.util.Date getCreatedTime() { return this.createdTime; } /** ** The date and time that the feature is created. *
* * @param createdTime * The date and time that the feature is created. * @return Returns a reference to this object so that method calls can be chained together. */ public Feature withCreatedTime(java.util.Date createdTime) { setCreatedTime(createdTime); return this; } /** ** The name of the variation that is used 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 void setDefaultVariation(String defaultVariation) {
this.defaultVariation = defaultVariation;
}
/**
*
* The name of the variation that is used 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 String getDefaultVariation() {
return this.defaultVariation;
}
/**
*
* The name of the variation that is used 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.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Feature withDefaultVariation(String defaultVariation) {
setDefaultVariation(defaultVariation);
return this;
}
/**
*
* The description of the feature. *
* * @param description * The description of the feature. */ public void setDescription(String description) { this.description = description; } /** ** The description of the feature. *
* * @return The description of the feature. */ public String getDescription() { return this.description; } /** ** The description of the feature. *
* * @param description * The description of the feature. * @return Returns a reference to this object so that method calls can be chained together. */ public Feature withDescription(String description) { setDescription(description); return this; } /** ** A set of key-value pairs that specify users who should always be served a specific variation of a feature. Each * key specifies a user using their user ID, account ID, or some other identifier. The value specifies the name of * the variation that the user is to be served. *
*
* For the override to be successful, the value of the key must match the entityId
used in the EvaluateFeature operation.
*
* For the override to be successful, the value of the key must match the
* A set of key-value pairs that specify users who should always be served a specific variation of a feature. Each
* key specifies a user using their user ID, account ID, or some other identifier. The value specifies the name of
* the variation that the user is to be served.
*
* For the override to be successful, the value of the key must match the entityId
used in the
*
* EvaluateFeature operation.
*/
public java.util.MapentityId
used in the EvaluateFeature operation.
*
* For the override to be successful, the value of the key must match the
* A set of key-value pairs that specify users who should always be served a specific variation of a feature. Each
* key specifies a user using their user ID, account ID, or some other identifier. The value specifies the name of
* the variation that the user is to be served.
*
* For the override to be successful, the value of the key must match the entityId
used in the
*
* EvaluateFeature operation.
*/
public void setEntityOverrides(java.util.MapentityId
used in the EvaluateFeature operation.
*
* For the override to be successful, the value of the key must match the
* An array of structures that define the evaluation rules for the feature.
*
* An array of structures that define the evaluation rules for the feature.
*
* An array of structures that define the evaluation rules for the feature.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setEvaluationRules(java.util.Collection)} or {@link #withEvaluationRules(java.util.Collection)} if you
* want to override the existing values.
*
* An array of structures that define the evaluation rules for the feature.
*
* If this value is
* If this value is
* If this value is
* If this value is
* The date and time that the feature was most recently updated.
*
* The date and time that the feature was most recently updated.
*
* The date and time that the feature was most recently updated.
*
* The name of the feature.
*
* The name of the feature.
*
* The name of the feature.
*
* The name or ARN of the project that contains the feature.
*
* The name or ARN of the project that contains the feature.
*
* The name or ARN of the project that contains the feature.
*
* The current state of the feature.
*
* The current state of the feature.
*
* The current state of the feature.
*
* The current state of the feature.
*
* The list of tag keys and values associated with this feature.
*
* The list of tag keys and values associated with this feature.
*
* The list of tag keys and values associated with this feature.
*
* Defines the type of value used to define the different feature variations. For more information, see Variation types
*
* Defines the type of value used to define the different feature variations. For more information, see Variation types
*
* Defines the type of value used to define the different feature variations. For more information, see Variation types
*
* Defines the type of value used to define the different feature variations. For more information, see Variation types
*
* An array of structures that contain the configuration of the feature's different variations.
*
* An array of structures that contain the configuration of the feature's different 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
* {@link #setVariations(java.util.Collection)} or {@link #withVariations(java.util.Collection)} if you want to
* override the existing values.
*
* An array of structures that contain the configuration of the feature's different variations.
* entityId
used in the
*
* EvaluateFeature operation.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Feature withEntityOverrides(java.util.MapALL_RULES
, the traffic allocation specified by any ongoing launches or experiments
* is being used. If this is DEFAULT_VARIATION
, the default variation is being served to all users.
* ALL_RULES
, the traffic allocation specified by any ongoing launches or
* experiments is being used. If this is DEFAULT_VARIATION
, the default variation is being
* served to all users.
* @see FeatureEvaluationStrategy
*/
public void setEvaluationStrategy(String evaluationStrategy) {
this.evaluationStrategy = evaluationStrategy;
}
/**
* ALL_RULES
, the traffic allocation specified by any ongoing launches or experiments
* is being used. If this is DEFAULT_VARIATION
, the default variation is being served to all users.
* ALL_RULES
, the traffic allocation specified by any ongoing launches or
* experiments is being used. If this is DEFAULT_VARIATION
, the default variation is being
* served to all users.
* @see FeatureEvaluationStrategy
*/
public String getEvaluationStrategy() {
return this.evaluationStrategy;
}
/**
* ALL_RULES
, the traffic allocation specified by any ongoing launches or experiments
* is being used. If this is DEFAULT_VARIATION
, the default variation is being served to all users.
* ALL_RULES
, the traffic allocation specified by any ongoing launches or
* experiments is being used. If this is DEFAULT_VARIATION
, the default variation is being
* served to all users.
* @return Returns a reference to this object so that method calls can be chained together.
* @see FeatureEvaluationStrategy
*/
public Feature withEvaluationStrategy(String evaluationStrategy) {
setEvaluationStrategy(evaluationStrategy);
return this;
}
/**
* ALL_RULES
, the traffic allocation specified by any ongoing launches or experiments
* is being used. If this is DEFAULT_VARIATION
, the default variation is being served to all users.
* ALL_RULES
, the traffic allocation specified by any ongoing launches or
* experiments is being used. If this is DEFAULT_VARIATION
, the default variation is being
* served to all users.
* @return Returns a reference to this object so that method calls can be chained together.
* @see FeatureEvaluationStrategy
*/
public Feature withEvaluationStrategy(FeatureEvaluationStrategy evaluationStrategy) {
this.evaluationStrategy = evaluationStrategy.toString();
return this;
}
/**
*