@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Feature extends Object implements Serializable, Cloneable, StructuredPojo
This structure contains information about one Evidently feature in your account.
Constructor and Description |
---|
Feature() |
Modifier and Type | Method and Description |
---|---|
Feature |
addEntityOverridesEntry(String key,
String value)
Add a single EntityOverrides entry
|
Feature |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
Feature |
clearEntityOverridesEntries()
Removes all the entries added into EntityOverrides.
|
Feature |
clearTagsEntries()
Removes all the entries added into Tags.
|
Feature |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The ARN of the feature.
|
Date |
getCreatedTime()
The date and time that the feature is created.
|
String |
getDefaultVariation()
The name of the variation that is used as the default variation.
|
String |
getDescription()
The description of the feature.
|
Map<String,String> |
getEntityOverrides()
A set of key-value pairs that specify users who should always be served a specific variation of a feature.
|
List<EvaluationRule> |
getEvaluationRules()
An array of structures that define the evaluation rules for the feature.
|
String |
getEvaluationStrategy()
If this value is
ALL_RULES , the traffic allocation specified by any ongoing launches or experiments
is being used. |
Date |
getLastUpdatedTime()
The date and time that the feature was most recently updated.
|
String |
getName()
The name of the feature.
|
String |
getProject()
The name or ARN of the project that contains the feature.
|
String |
getStatus()
The current state of the feature.
|
Map<String,String> |
getTags()
The list of tag keys and values associated with this feature.
|
String |
getValueType()
Defines the type of value used to define the different feature variations.
|
List<Variation> |
getVariations()
An array of structures that contain the configuration of the feature's different variations.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setArn(String arn)
The ARN of the feature.
|
void |
setCreatedTime(Date createdTime)
The date and time that the feature is created.
|
void |
setDefaultVariation(String defaultVariation)
The name of the variation that is used as the default variation.
|
void |
setDescription(String description)
The description of the feature.
|
void |
setEntityOverrides(Map<String,String> entityOverrides)
A set of key-value pairs that specify users who should always be served a specific variation of a feature.
|
void |
setEvaluationRules(Collection<EvaluationRule> evaluationRules)
An array of structures that define the evaluation rules for the feature.
|
void |
setEvaluationStrategy(String evaluationStrategy)
If this value is
ALL_RULES , the traffic allocation specified by any ongoing launches or experiments
is being used. |
void |
setLastUpdatedTime(Date lastUpdatedTime)
The date and time that the feature was most recently updated.
|
void |
setName(String name)
The name of the feature.
|
void |
setProject(String project)
The name or ARN of the project that contains the feature.
|
void |
setStatus(String status)
The current state of the feature.
|
void |
setTags(Map<String,String> tags)
The list of tag keys and values associated with this feature.
|
void |
setValueType(String valueType)
Defines the type of value used to define the different feature variations.
|
void |
setVariations(Collection<Variation> variations)
An array of structures that contain the configuration of the feature's different variations.
|
String |
toString()
Returns a string representation of this object.
|
Feature |
withArn(String arn)
The ARN of the feature.
|
Feature |
withCreatedTime(Date createdTime)
The date and time that the feature is created.
|
Feature |
withDefaultVariation(String defaultVariation)
The name of the variation that is used as the default variation.
|
Feature |
withDescription(String description)
The description of the feature.
|
Feature |
withEntityOverrides(Map<String,String> entityOverrides)
A set of key-value pairs that specify users who should always be served a specific variation of a feature.
|
Feature |
withEvaluationRules(Collection<EvaluationRule> evaluationRules)
An array of structures that define the evaluation rules for the feature.
|
Feature |
withEvaluationRules(EvaluationRule... evaluationRules)
An array of structures that define the evaluation rules for the feature.
|
Feature |
withEvaluationStrategy(FeatureEvaluationStrategy evaluationStrategy)
If this value is
ALL_RULES , the traffic allocation specified by any ongoing launches or experiments
is being used. |
Feature |
withEvaluationStrategy(String evaluationStrategy)
If this value is
ALL_RULES , the traffic allocation specified by any ongoing launches or experiments
is being used. |
Feature |
withLastUpdatedTime(Date lastUpdatedTime)
The date and time that the feature was most recently updated.
|
Feature |
withName(String name)
The name of the feature.
|
Feature |
withProject(String project)
The name or ARN of the project that contains the feature.
|
Feature |
withStatus(FeatureStatus status)
The current state of the feature.
|
Feature |
withStatus(String status)
The current state of the feature.
|
Feature |
withTags(Map<String,String> tags)
The list of tag keys and values associated with this feature.
|
Feature |
withValueType(String valueType)
Defines the type of value used to define the different feature variations.
|
Feature |
withValueType(VariationValueType valueType)
Defines the type of value used to define the different feature variations.
|
Feature |
withVariations(Collection<Variation> variations)
An array of structures that contain the configuration of the feature's different variations.
|
Feature |
withVariations(Variation... variations)
An array of structures that contain the configuration of the feature's different variations.
|
public void setArn(String arn)
The ARN of the feature.
arn
- The ARN of the feature.public String getArn()
The ARN of the feature.
public Feature withArn(String arn)
The ARN of the feature.
arn
- The ARN of the feature.public void setCreatedTime(Date createdTime)
The date and time that the feature is created.
createdTime
- The date and time that the feature is created.public Date getCreatedTime()
The date and time that the feature is created.
public Feature withCreatedTime(Date createdTime)
The date and time that the feature is created.
createdTime
- The date and time that the feature is created.public void setDefaultVariation(String 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.
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.
public String getDefaultVariation()
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 Feature withDefaultVariation(String 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.
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.
public void setDescription(String description)
The description of the feature.
description
- The description of the feature.public String getDescription()
The description of the feature.
public Feature withDescription(String description)
The description of the feature.
description
- The description of the feature.public Map<String,String> getEntityOverrides()
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 entityId
used in the
EvaluateFeature operation.
public void setEntityOverrides(Map<String,String> entityOverrides)
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.
entityOverrides
- 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 Feature withEntityOverrides(Map<String,String> entityOverrides)
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.
entityOverrides
- 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 Feature addEntityOverridesEntry(String key, String value)
public Feature clearEntityOverridesEntries()
public List<EvaluationRule> getEvaluationRules()
An array of structures that define the evaluation rules for the feature.
public void setEvaluationRules(Collection<EvaluationRule> evaluationRules)
An array of structures that define the evaluation rules for the feature.
evaluationRules
- An array of structures that define the evaluation rules for the feature.public Feature withEvaluationRules(EvaluationRule... evaluationRules)
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
setEvaluationRules(java.util.Collection)
or withEvaluationRules(java.util.Collection)
if you
want to override the existing values.
evaluationRules
- An array of structures that define the evaluation rules for the feature.public Feature withEvaluationRules(Collection<EvaluationRule> evaluationRules)
An array of structures that define the evaluation rules for the feature.
evaluationRules
- An array of structures that define the evaluation rules for the feature.public void setEvaluationStrategy(String evaluationStrategy)
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.
evaluationStrategy
- 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.FeatureEvaluationStrategy
public String getEvaluationStrategy()
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.
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.FeatureEvaluationStrategy
public Feature withEvaluationStrategy(String evaluationStrategy)
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.
evaluationStrategy
- 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.FeatureEvaluationStrategy
public Feature withEvaluationStrategy(FeatureEvaluationStrategy evaluationStrategy)
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.
evaluationStrategy
- 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.FeatureEvaluationStrategy
public void setLastUpdatedTime(Date lastUpdatedTime)
The date and time that the feature was most recently updated.
lastUpdatedTime
- The date and time that the feature was most recently updated.public Date getLastUpdatedTime()
The date and time that the feature was most recently updated.
public Feature withLastUpdatedTime(Date lastUpdatedTime)
The date and time that the feature was most recently updated.
lastUpdatedTime
- The date and time that the feature was most recently updated.public void setName(String name)
The name of the feature.
name
- The name of the feature.public String getName()
The name of the feature.
public Feature withName(String name)
The name of the feature.
name
- The name of the feature.public void setProject(String project)
The name or ARN of the project that contains the feature.
project
- The name or ARN of the project that contains the feature.public String getProject()
The name or ARN of the project that contains the feature.
public Feature withProject(String project)
The name or ARN of the project that contains the feature.
project
- The name or ARN of the project that contains the feature.public void setStatus(String status)
The current state of the feature.
status
- The current state of the feature.FeatureStatus
public String getStatus()
The current state of the feature.
FeatureStatus
public Feature withStatus(String status)
The current state of the feature.
status
- The current state of the feature.FeatureStatus
public Feature withStatus(FeatureStatus status)
The current state of the feature.
status
- The current state of the feature.FeatureStatus
public Map<String,String> getTags()
The list of tag keys and values associated with this feature.
public void setTags(Map<String,String> tags)
The list of tag keys and values associated with this feature.
tags
- The list of tag keys and values associated with this feature.public Feature withTags(Map<String,String> tags)
The list of tag keys and values associated with this feature.
tags
- The list of tag keys and values associated with this feature.public Feature clearTagsEntries()
public void setValueType(String valueType)
Defines the type of value used to define the different feature variations. For more information, see Variation types
valueType
- Defines the type of value used to define the different feature variations. For more information, see Variation typesVariationValueType
public String getValueType()
Defines the type of value used to define the different feature variations. For more information, see Variation types
VariationValueType
public Feature withValueType(String valueType)
Defines the type of value used to define the different feature variations. For more information, see Variation types
valueType
- Defines the type of value used to define the different feature variations. For more information, see Variation typesVariationValueType
public Feature withValueType(VariationValueType valueType)
Defines the type of value used to define the different feature variations. For more information, see Variation types
valueType
- Defines the type of value used to define the different feature variations. For more information, see Variation typesVariationValueType
public List<Variation> getVariations()
An array of structures that contain the configuration of the feature's different variations.
public void setVariations(Collection<Variation> 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 Feature withVariations(Variation... 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 Feature withVariations(Collection<Variation> 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 void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.