/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { namespace CloudWatchEvidently { namespace Model { /** */ class CreateFeatureRequest : public CloudWatchEvidentlyRequest { public: AWS_CLOUDWATCHEVIDENTLY_API CreateFeatureRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateFeature"; } AWS_CLOUDWATCHEVIDENTLY_API Aws::String SerializePayload() const override; /** *

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.

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.

*/ inline const Aws::String& GetDefaultVariation() const{ return m_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.

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.

*/ inline bool DefaultVariationHasBeenSet() const { return m_defaultVariationHasBeenSet; } /** *

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.

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.

*/ inline void SetDefaultVariation(const Aws::String& value) { m_defaultVariationHasBeenSet = true; m_defaultVariation = value; } /** *

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.

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.

*/ inline void SetDefaultVariation(Aws::String&& value) { m_defaultVariationHasBeenSet = true; m_defaultVariation = std::move(value); } /** *

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.

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.

*/ inline void SetDefaultVariation(const char* value) { m_defaultVariationHasBeenSet = true; m_defaultVariation.assign(value); } /** *

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.

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.

*/ inline CreateFeatureRequest& WithDefaultVariation(const Aws::String& value) { SetDefaultVariation(value); return *this;} /** *

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.

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.

*/ inline CreateFeatureRequest& WithDefaultVariation(Aws::String&& value) { SetDefaultVariation(std::move(value)); return *this;} /** *

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.

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.

*/ inline CreateFeatureRequest& WithDefaultVariation(const char* value) { SetDefaultVariation(value); return *this;} /** *

An optional description of the feature.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

An optional description of the feature.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

An optional description of the feature.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

An optional description of the feature.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

An optional description of the feature.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

An optional description of the feature.

*/ inline CreateFeatureRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

An optional description of the feature.

*/ inline CreateFeatureRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

An optional description of the feature.

*/ inline CreateFeatureRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

Specify 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.

*/ inline const Aws::Map& GetEntityOverrides() const{ return m_entityOverrides; } /** *

Specify 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.

*/ inline bool EntityOverridesHasBeenSet() const { return m_entityOverridesHasBeenSet; } /** *

Specify 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.

*/ inline void SetEntityOverrides(const Aws::Map& value) { m_entityOverridesHasBeenSet = true; m_entityOverrides = value; } /** *

Specify 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.

*/ inline void SetEntityOverrides(Aws::Map&& value) { m_entityOverridesHasBeenSet = true; m_entityOverrides = std::move(value); } /** *

Specify 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.

*/ inline CreateFeatureRequest& WithEntityOverrides(const Aws::Map& value) { SetEntityOverrides(value); return *this;} /** *

Specify 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.

*/ inline CreateFeatureRequest& WithEntityOverrides(Aws::Map&& value) { SetEntityOverrides(std::move(value)); return *this;} /** *

Specify 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.

*/ inline CreateFeatureRequest& AddEntityOverrides(const Aws::String& key, const Aws::String& value) { m_entityOverridesHasBeenSet = true; m_entityOverrides.emplace(key, value); return *this; } /** *

Specify 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.

*/ inline CreateFeatureRequest& AddEntityOverrides(Aws::String&& key, const Aws::String& value) { m_entityOverridesHasBeenSet = true; m_entityOverrides.emplace(std::move(key), value); return *this; } /** *

Specify 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.

*/ inline CreateFeatureRequest& AddEntityOverrides(const Aws::String& key, Aws::String&& value) { m_entityOverridesHasBeenSet = true; m_entityOverrides.emplace(key, std::move(value)); return *this; } /** *

Specify 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.

*/ inline CreateFeatureRequest& AddEntityOverrides(Aws::String&& key, Aws::String&& value) { m_entityOverridesHasBeenSet = true; m_entityOverrides.emplace(std::move(key), std::move(value)); return *this; } /** *

Specify 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.

*/ inline CreateFeatureRequest& AddEntityOverrides(const char* key, Aws::String&& value) { m_entityOverridesHasBeenSet = true; m_entityOverrides.emplace(key, std::move(value)); return *this; } /** *

Specify 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.

*/ inline CreateFeatureRequest& AddEntityOverrides(Aws::String&& key, const char* value) { m_entityOverridesHasBeenSet = true; m_entityOverrides.emplace(std::move(key), value); return *this; } /** *

Specify 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.

*/ inline CreateFeatureRequest& AddEntityOverrides(const char* key, const char* value) { m_entityOverridesHasBeenSet = true; m_entityOverrides.emplace(key, value); return *this; } /** *

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.

*/ inline const FeatureEvaluationStrategy& GetEvaluationStrategy() const{ return m_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.

*/ inline bool EvaluationStrategyHasBeenSet() const { return m_evaluationStrategyHasBeenSet; } /** *

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.

*/ inline void SetEvaluationStrategy(const FeatureEvaluationStrategy& value) { m_evaluationStrategyHasBeenSet = true; m_evaluationStrategy = value; } /** *

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.

*/ inline void SetEvaluationStrategy(FeatureEvaluationStrategy&& value) { m_evaluationStrategyHasBeenSet = true; m_evaluationStrategy = std::move(value); } /** *

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.

*/ inline CreateFeatureRequest& WithEvaluationStrategy(const FeatureEvaluationStrategy& value) { SetEvaluationStrategy(value); return *this;} /** *

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.

*/ inline CreateFeatureRequest& WithEvaluationStrategy(FeatureEvaluationStrategy&& value) { SetEvaluationStrategy(std::move(value)); return *this;} /** *

The name for the new feature.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name for the new feature.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name for the new feature.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name for the new feature.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name for the new feature.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name for the new feature.

*/ inline CreateFeatureRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name for the new feature.

*/ inline CreateFeatureRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name for the new feature.

*/ inline CreateFeatureRequest& WithName(const char* value) { SetName(value); return *this;} /** *

The name or ARN of the project that is to contain the new feature.

*/ inline const Aws::String& GetProject() const{ return m_project; } /** *

The name or ARN of the project that is to contain the new feature.

*/ inline bool ProjectHasBeenSet() const { return m_projectHasBeenSet; } /** *

The name or ARN of the project that is to contain the new feature.

*/ inline void SetProject(const Aws::String& value) { m_projectHasBeenSet = true; m_project = value; } /** *

The name or ARN of the project that is to contain the new feature.

*/ inline void SetProject(Aws::String&& value) { m_projectHasBeenSet = true; m_project = std::move(value); } /** *

The name or ARN of the project that is to contain the new feature.

*/ inline void SetProject(const char* value) { m_projectHasBeenSet = true; m_project.assign(value); } /** *

The name or ARN of the project that is to contain the new feature.

*/ inline CreateFeatureRequest& WithProject(const Aws::String& value) { SetProject(value); return *this;} /** *

The name or ARN of the project that is to contain the new feature.

*/ inline CreateFeatureRequest& WithProject(Aws::String&& value) { SetProject(std::move(value)); return *this;} /** *

The name or ARN of the project that is to contain the new feature.

*/ inline CreateFeatureRequest& WithProject(const char* value) { SetProject(value); return *this;} /** *

Assigns one or more tags (key-value pairs) to the feature.

Tags can * help you organize and categorize your resources. You can also use them to scope * user permissions by granting a user permission to access or change only * resources with certain tag values.

Tags don't have any semantic meaning * to Amazon Web Services and are interpreted strictly as strings of * characters.

You can associate as many as 50 tags with a feature.

*

For more information, see Tagging * Amazon Web Services resources.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

Assigns one or more tags (key-value pairs) to the feature.

Tags can * help you organize and categorize your resources. You can also use them to scope * user permissions by granting a user permission to access or change only * resources with certain tag values.

Tags don't have any semantic meaning * to Amazon Web Services and are interpreted strictly as strings of * characters.

You can associate as many as 50 tags with a feature.

*

For more information, see Tagging * Amazon Web Services resources.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

Assigns one or more tags (key-value pairs) to the feature.

Tags can * help you organize and categorize your resources. You can also use them to scope * user permissions by granting a user permission to access or change only * resources with certain tag values.

Tags don't have any semantic meaning * to Amazon Web Services and are interpreted strictly as strings of * characters.

You can associate as many as 50 tags with a feature.

*

For more information, see Tagging * Amazon Web Services resources.

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

Assigns one or more tags (key-value pairs) to the feature.

Tags can * help you organize and categorize your resources. You can also use them to scope * user permissions by granting a user permission to access or change only * resources with certain tag values.

Tags don't have any semantic meaning * to Amazon Web Services and are interpreted strictly as strings of * characters.

You can associate as many as 50 tags with a feature.

*

For more information, see Tagging * Amazon Web Services resources.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

Assigns one or more tags (key-value pairs) to the feature.

Tags can * help you organize and categorize your resources. You can also use them to scope * user permissions by granting a user permission to access or change only * resources with certain tag values.

Tags don't have any semantic meaning * to Amazon Web Services and are interpreted strictly as strings of * characters.

You can associate as many as 50 tags with a feature.

*

For more information, see Tagging * Amazon Web Services resources.

*/ inline CreateFeatureRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

Assigns one or more tags (key-value pairs) to the feature.

Tags can * help you organize and categorize your resources. You can also use them to scope * user permissions by granting a user permission to access or change only * resources with certain tag values.

Tags don't have any semantic meaning * to Amazon Web Services and are interpreted strictly as strings of * characters.

You can associate as many as 50 tags with a feature.

*

For more information, see Tagging * Amazon Web Services resources.

*/ inline CreateFeatureRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

Assigns one or more tags (key-value pairs) to the feature.

Tags can * help you organize and categorize your resources. You can also use them to scope * user permissions by granting a user permission to access or change only * resources with certain tag values.

Tags don't have any semantic meaning * to Amazon Web Services and are interpreted strictly as strings of * characters.

You can associate as many as 50 tags with a feature.

*

For more information, see Tagging * Amazon Web Services resources.

*/ inline CreateFeatureRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

Assigns one or more tags (key-value pairs) to the feature.

Tags can * help you organize and categorize your resources. You can also use them to scope * user permissions by granting a user permission to access or change only * resources with certain tag values.

Tags don't have any semantic meaning * to Amazon Web Services and are interpreted strictly as strings of * characters.

You can associate as many as 50 tags with a feature.

*

For more information, see Tagging * Amazon Web Services resources.

*/ inline CreateFeatureRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

Assigns one or more tags (key-value pairs) to the feature.

Tags can * help you organize and categorize your resources. You can also use them to scope * user permissions by granting a user permission to access or change only * resources with certain tag values.

Tags don't have any semantic meaning * to Amazon Web Services and are interpreted strictly as strings of * characters.

You can associate as many as 50 tags with a feature.

*

For more information, see Tagging * Amazon Web Services resources.

*/ inline CreateFeatureRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

Assigns one or more tags (key-value pairs) to the feature.

Tags can * help you organize and categorize your resources. You can also use them to scope * user permissions by granting a user permission to access or change only * resources with certain tag values.

Tags don't have any semantic meaning * to Amazon Web Services and are interpreted strictly as strings of * characters.

You can associate as many as 50 tags with a feature.

*

For more information, see Tagging * Amazon Web Services resources.

*/ inline CreateFeatureRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

Assigns one or more tags (key-value pairs) to the feature.

Tags can * help you organize and categorize your resources. You can also use them to scope * user permissions by granting a user permission to access or change only * resources with certain tag values.

Tags don't have any semantic meaning * to Amazon Web Services and are interpreted strictly as strings of * characters.

You can associate as many as 50 tags with a feature.

*

For more information, see Tagging * Amazon Web Services resources.

*/ inline CreateFeatureRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

Assigns one or more tags (key-value pairs) to the feature.

Tags can * help you organize and categorize your resources. You can also use them to scope * user permissions by granting a user permission to access or change only * resources with certain tag values.

Tags don't have any semantic meaning * to Amazon Web Services and are interpreted strictly as strings of * characters.

You can associate as many as 50 tags with a feature.

*

For more information, see Tagging * Amazon Web Services resources.

*/ inline CreateFeatureRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

Assigns one or more tags (key-value pairs) to the feature.

Tags can * help you organize and categorize your resources. You can also use them to scope * user permissions by granting a user permission to access or change only * resources with certain tag values.

Tags don't have any semantic meaning * to Amazon Web Services and are interpreted strictly as strings of * characters.

You can associate as many as 50 tags with a feature.

*

For more information, see Tagging * Amazon Web Services resources.

*/ inline CreateFeatureRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

An array of structures that contain the configuration of the feature's * different variations.

*/ inline const Aws::Vector& GetVariations() const{ return m_variations; } /** *

An 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::Vector& value) { m_variationsHasBeenSet = true; m_variations = value; } /** *

An array of structures that contain the configuration of the feature's * different variations.

*/ inline void SetVariations(Aws::Vector&& value) { m_variationsHasBeenSet = true; m_variations = std::move(value); } /** *

An array of structures that contain the configuration of the feature's * different variations.

*/ inline CreateFeatureRequest& WithVariations(const Aws::Vector& value) { SetVariations(value); return *this;} /** *

An array of structures that contain the configuration of the feature's * different variations.

*/ inline CreateFeatureRequest& WithVariations(Aws::Vector&& value) { SetVariations(std::move(value)); return *this;} /** *

An array of structures that contain the configuration of the feature's * different variations.

*/ inline CreateFeatureRequest& AddVariations(const VariationConfig& 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 CreateFeatureRequest& AddVariations(VariationConfig&& value) { m_variationsHasBeenSet = true; m_variations.push_back(std::move(value)); return *this; } private: Aws::String m_defaultVariation; bool m_defaultVariationHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Map m_entityOverrides; bool m_entityOverridesHasBeenSet = false; FeatureEvaluationStrategy m_evaluationStrategy; bool m_evaluationStrategyHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_project; bool m_projectHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; Aws::Vector m_variations; bool m_variationsHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchEvidently } // namespace Aws