/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include This structure contains information about one Evidently feature in your
* account.See Also:
AWS
* API Reference
The ARN of the feature.
*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *The ARN of the feature.
*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *The ARN of the feature.
*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *The ARN of the feature.
*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *The ARN of the feature.
*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *The ARN of the feature.
*/ inline Feature& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *The ARN of the feature.
*/ inline Feature& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *The ARN of the feature.
*/ inline Feature& WithArn(const char* value) { SetArn(value); return *this;} /** *The date and time that the feature is created.
*/ inline const Aws::Utils::DateTime& GetCreatedTime() const{ return m_createdTime; } /** *The date and time that the feature is created.
*/ inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; } /** *The date and time that the feature is created.
*/ inline void SetCreatedTime(const Aws::Utils::DateTime& value) { m_createdTimeHasBeenSet = true; m_createdTime = value; } /** *The date and time that the feature is created.
*/ inline void SetCreatedTime(Aws::Utils::DateTime&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::move(value); } /** *The date and time that the feature is created.
*/ inline Feature& WithCreatedTime(const Aws::Utils::DateTime& value) { SetCreatedTime(value); return *this;} /** *The date and time that the feature is created.
*/ inline Feature& WithCreatedTime(Aws::Utils::DateTime&& value) { SetCreatedTime(std::move(value)); 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.
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 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 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 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 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 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 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.
*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *The description of the feature.
*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *The description of the feature.
*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *The description of the feature.
*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *The description of the feature.
*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *The description of the feature.
*/ inline Feature& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *The description of the feature.
*/ inline Feature& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *The description of the feature.
*/ inline Feature& WithDescription(const char* value) { SetDescription(value); 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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
*/ inline const Aws::VectorAn array of structures that define the evaluation rules for the feature.
*/ inline bool EvaluationRulesHasBeenSet() const { return m_evaluationRulesHasBeenSet; } /** *An array of structures that define the evaluation rules for the feature.
*/ inline void SetEvaluationRules(const Aws::VectorAn array of structures that define the evaluation rules for the feature.
*/ inline void SetEvaluationRules(Aws::VectorAn array of structures that define the evaluation rules for the feature.
*/ inline Feature& WithEvaluationRules(const Aws::VectorAn array of structures that define the evaluation rules for the feature.
*/ inline Feature& WithEvaluationRules(Aws::VectorAn array of structures that define the evaluation rules for the feature.
*/ inline Feature& AddEvaluationRules(const EvaluationRule& value) { m_evaluationRulesHasBeenSet = true; m_evaluationRules.push_back(value); return *this; } /** *An array of structures that define the evaluation rules for the feature.
*/ inline Feature& AddEvaluationRules(EvaluationRule&& value) { m_evaluationRulesHasBeenSet = true; m_evaluationRules.push_back(std::move(value)); return *this; } /** *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.
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.
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.
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.
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.
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.
*/ inline const Aws::Utils::DateTime& GetLastUpdatedTime() const{ return m_lastUpdatedTime; } /** *The date and time that the feature was most recently updated.
*/ inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; } /** *The date and time that the feature was most recently updated.
*/ inline void SetLastUpdatedTime(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; } /** *The date and time that the feature was most recently updated.
*/ inline void SetLastUpdatedTime(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::move(value); } /** *The date and time that the feature was most recently updated.
*/ inline Feature& WithLastUpdatedTime(const Aws::Utils::DateTime& value) { SetLastUpdatedTime(value); return *this;} /** *The date and time that the feature was most recently updated.
*/ inline Feature& WithLastUpdatedTime(Aws::Utils::DateTime&& value) { SetLastUpdatedTime(std::move(value)); return *this;} /** *The name of the feature.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The name of the feature.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name of the feature.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The name of the feature.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The name of the feature.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The name of the feature.
*/ inline Feature& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of the feature.
*/ inline Feature& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of the feature.
*/ inline Feature& WithName(const char* value) { SetName(value); return *this;} /** *The name or ARN of the project that contains the feature.
*/ inline const Aws::String& GetProject() const{ return m_project; } /** *The name or ARN of the project that contains the feature.
*/ inline bool ProjectHasBeenSet() const { return m_projectHasBeenSet; } /** *The name or ARN of the project that contains the feature.
*/ inline void SetProject(const Aws::String& value) { m_projectHasBeenSet = true; m_project = value; } /** *The name or ARN of the project that contains the feature.
*/ inline void SetProject(Aws::String&& value) { m_projectHasBeenSet = true; m_project = std::move(value); } /** *The name or ARN of the project that contains the feature.
*/ inline void SetProject(const char* value) { m_projectHasBeenSet = true; m_project.assign(value); } /** *The name or ARN of the project that contains the feature.
*/ inline Feature& WithProject(const Aws::String& value) { SetProject(value); return *this;} /** *The name or ARN of the project that contains the feature.
*/ inline Feature& WithProject(Aws::String&& value) { SetProject(std::move(value)); return *this;} /** *The name or ARN of the project that contains the feature.
*/ inline Feature& WithProject(const char* value) { SetProject(value); return *this;} /** *The current state of the feature.
*/ inline const FeatureStatus& GetStatus() const{ return m_status; } /** *The current state of the feature.
*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *The current state of the feature.
*/ inline void SetStatus(const FeatureStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *The current state of the feature.
*/ inline void SetStatus(FeatureStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *The current state of the feature.
*/ inline Feature& WithStatus(const FeatureStatus& value) { SetStatus(value); return *this;} /** *The current state of the feature.
*/ inline Feature& WithStatus(FeatureStatus&& value) { SetStatus(std::move(value)); return *this;} /** *The list of tag keys and values associated with this feature.
*/ inline const Aws::MapThe list of tag keys and values associated with this feature.
*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *The list of tag keys and values associated with this feature.
*/ inline void SetTags(const Aws::MapThe list of tag keys and values associated with this feature.
*/ inline void SetTags(Aws::MapThe list of tag keys and values associated with this feature.
*/ inline Feature& WithTags(const Aws::MapThe list of tag keys and values associated with this feature.
*/ inline Feature& WithTags(Aws::MapThe list of tag keys and values associated with this feature.
*/ inline Feature& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *The list of tag keys and values associated with this feature.
*/ inline Feature& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *The list of tag keys and values associated with this feature.
*/ inline Feature& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *The list of tag keys and values associated with this feature.
*/ inline Feature& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *The list of tag keys and values associated with this feature.
*/ inline Feature& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *The list of tag keys and values associated with this feature.
*/ inline Feature& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *The list of tag keys and values associated with this feature.
*/ inline Feature& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *Defines the type of value used to define the different feature variations. * For more information, see Variation * types
*/ inline const VariationValueType& GetValueType() const{ return m_valueType; } /** *Defines the type of value used to define the different feature variations. * For more information, see Variation * types
*/ inline bool ValueTypeHasBeenSet() const { return m_valueTypeHasBeenSet; } /** *Defines the type of value used to define the different feature variations. * For more information, see Variation * types
*/ inline void SetValueType(const VariationValueType& value) { m_valueTypeHasBeenSet = true; m_valueType = value; } /** *Defines the type of value used to define the different feature variations. * For more information, see Variation * types
*/ inline void SetValueType(VariationValueType&& value) { m_valueTypeHasBeenSet = true; m_valueType = std::move(value); } /** *Defines the type of value used to define the different feature variations. * For more information, see Variation * types
*/ inline Feature& WithValueType(const VariationValueType& value) { SetValueType(value); return *this;} /** *Defines the type of value used to define the different feature variations. * For more information, see Variation * types
*/ inline Feature& WithValueType(VariationValueType&& value) { SetValueType(std::move(value)); return *this;} /** *An array of structures that contain the configuration of the feature's * different variations.
*/ inline const Aws::VectorAn array of structures that contain the configuration of the feature's * different variations.
*/ inline bool VariationsHasBeenSet() const { return m_variationsHasBeenSet; } /** *An array of structures that contain the configuration of the feature's * different variations.
*/ inline void SetVariations(const Aws::VectorAn array of structures that contain the configuration of the feature's * different variations.
*/ inline void SetVariations(Aws::VectorAn array of structures that contain the configuration of the feature's * different variations.
*/ inline Feature& WithVariations(const Aws::VectorAn array of structures that contain the configuration of the feature's * different variations.
*/ inline Feature& WithVariations(Aws::VectorAn array of structures that contain the configuration of the feature's * different variations.
*/ inline Feature& AddVariations(const Variation& value) { m_variationsHasBeenSet = true; m_variations.push_back(value); return *this; } /** *An array of structures that contain the configuration of the feature's * different variations.
*/ inline Feature& AddVariations(Variation&& value) { m_variationsHasBeenSet = true; m_variations.push_back(std::move(value)); return *this; } private: Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::Utils::DateTime m_createdTime; bool m_createdTimeHasBeenSet = false; Aws::String m_defaultVariation; bool m_defaultVariationHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Map