/** * 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 #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CloudWatchEvidently { namespace Model { /** *

This structure contains information about one Evidently feature in your * account.

See Also:

AWS * API Reference

*/ class FeatureSummary { public: AWS_CLOUDWATCHEVIDENTLY_API FeatureSummary(); AWS_CLOUDWATCHEVIDENTLY_API FeatureSummary(Aws::Utils::Json::JsonView jsonValue); AWS_CLOUDWATCHEVIDENTLY_API FeatureSummary& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CLOUDWATCHEVIDENTLY_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

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 FeatureSummary& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The ARN of the feature.

*/ inline FeatureSummary& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The ARN of the feature.

*/ inline FeatureSummary& 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 FeatureSummary& WithCreatedTime(const Aws::Utils::DateTime& value) { SetCreatedTime(value); return *this;} /** *

The date and time that the feature is created.

*/ inline FeatureSummary& 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.

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

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

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.

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

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.

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

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.

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

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.

*/ inline FeatureSummary& WithDefaultVariation(const Aws::String& value) { SetDefaultVariation(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.

*/ inline FeatureSummary& WithDefaultVariation(Aws::String&& value) { SetDefaultVariation(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.

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

An array of structures that define

*/ inline const Aws::Vector& GetEvaluationRules() const{ return m_evaluationRules; } /** *

An array of structures that define

*/ inline bool EvaluationRulesHasBeenSet() const { return m_evaluationRulesHasBeenSet; } /** *

An array of structures that define

*/ inline void SetEvaluationRules(const Aws::Vector& value) { m_evaluationRulesHasBeenSet = true; m_evaluationRules = value; } /** *

An array of structures that define

*/ inline void SetEvaluationRules(Aws::Vector&& value) { m_evaluationRulesHasBeenSet = true; m_evaluationRules = std::move(value); } /** *

An array of structures that define

*/ inline FeatureSummary& WithEvaluationRules(const Aws::Vector& value) { SetEvaluationRules(value); return *this;} /** *

An array of structures that define

*/ inline FeatureSummary& WithEvaluationRules(Aws::Vector&& value) { SetEvaluationRules(std::move(value)); return *this;} /** *

An array of structures that define

*/ inline FeatureSummary& AddEvaluationRules(const EvaluationRule& value) { m_evaluationRulesHasBeenSet = true; m_evaluationRules.push_back(value); return *this; } /** *

An array of structures that define

*/ inline FeatureSummary& 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.

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

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

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.

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

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.

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

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.

*/ inline FeatureSummary& WithEvaluationStrategy(const FeatureEvaluationStrategy& value) { SetEvaluationStrategy(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.

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

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 FeatureSummary& WithLastUpdatedTime(const Aws::Utils::DateTime& value) { SetLastUpdatedTime(value); return *this;} /** *

The date and time that the feature was most recently updated.

*/ inline FeatureSummary& 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 FeatureSummary& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the feature.

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

The name of the feature.

*/ inline FeatureSummary& 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 FeatureSummary& WithProject(const Aws::String& value) { SetProject(value); return *this;} /** *

The name or ARN of the project that contains the feature.

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

The name or ARN of the project that contains the feature.

*/ inline FeatureSummary& 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 FeatureSummary& WithStatus(const FeatureStatus& value) { SetStatus(value); return *this;} /** *

The current state of the feature.

*/ inline FeatureSummary& WithStatus(FeatureStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The list of tag keys and values associated with this feature.

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

The 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::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The list of tag keys and values associated with this feature.

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

The list of tag keys and values associated with this feature.

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

The list of tag keys and values associated with this feature.

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

The list of tag keys and values associated with this feature.

*/ inline FeatureSummary& 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 FeatureSummary& 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 FeatureSummary& 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 FeatureSummary& 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 FeatureSummary& 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 FeatureSummary& 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 FeatureSummary& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, 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::Vector m_evaluationRules; bool m_evaluationRulesHasBeenSet = false; FeatureEvaluationStrategy m_evaluationStrategy; bool m_evaluationStrategyHasBeenSet = false; Aws::Utils::DateTime m_lastUpdatedTime; bool m_lastUpdatedTimeHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_project; bool m_projectHasBeenSet = false; FeatureStatus m_status; bool m_statusHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchEvidently } // namespace Aws