AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Feature.h
1
6#pragma once
7#include <aws/evidently/CloudWatchEvidently_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/evidently/model/FeatureEvaluationStrategy.h>
13#include <aws/evidently/model/FeatureStatus.h>
14#include <aws/evidently/model/VariationValueType.h>
15#include <aws/evidently/model/EvaluationRule.h>
16#include <aws/evidently/model/Variation.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26 class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace CloudWatchEvidently
30{
31namespace Model
32{
33
40 class Feature
41 {
42 public:
43 AWS_CLOUDWATCHEVIDENTLY_API Feature() = default;
44 AWS_CLOUDWATCHEVIDENTLY_API Feature(Aws::Utils::Json::JsonView jsonValue);
45 AWS_CLOUDWATCHEVIDENTLY_API Feature& operator=(Aws::Utils::Json::JsonView jsonValue);
46 AWS_CLOUDWATCHEVIDENTLY_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
53 inline const Aws::String& GetArn() const { return m_arn; }
54 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
55 template<typename ArnT = Aws::String>
56 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
57 template<typename ArnT = Aws::String>
58 Feature& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
60
62
65 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
66 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
67 template<typename CreatedTimeT = Aws::Utils::DateTime>
68 void SetCreatedTime(CreatedTimeT&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::forward<CreatedTimeT>(value); }
69 template<typename CreatedTimeT = Aws::Utils::DateTime>
70 Feature& WithCreatedTime(CreatedTimeT&& value) { SetCreatedTime(std::forward<CreatedTimeT>(value)); return *this;}
72
74
82 inline const Aws::String& GetDefaultVariation() const { return m_defaultVariation; }
83 inline bool DefaultVariationHasBeenSet() const { return m_defaultVariationHasBeenSet; }
84 template<typename DefaultVariationT = Aws::String>
85 void SetDefaultVariation(DefaultVariationT&& value) { m_defaultVariationHasBeenSet = true; m_defaultVariation = std::forward<DefaultVariationT>(value); }
86 template<typename DefaultVariationT = Aws::String>
87 Feature& WithDefaultVariation(DefaultVariationT&& value) { SetDefaultVariation(std::forward<DefaultVariationT>(value)); return *this;}
89
91
94 inline const Aws::String& GetDescription() const { return m_description; }
95 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
96 template<typename DescriptionT = Aws::String>
97 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
98 template<typename DescriptionT = Aws::String>
99 Feature& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
101
103
113 inline const Aws::Map<Aws::String, Aws::String>& GetEntityOverrides() const { return m_entityOverrides; }
114 inline bool EntityOverridesHasBeenSet() const { return m_entityOverridesHasBeenSet; }
115 template<typename EntityOverridesT = Aws::Map<Aws::String, Aws::String>>
116 void SetEntityOverrides(EntityOverridesT&& value) { m_entityOverridesHasBeenSet = true; m_entityOverrides = std::forward<EntityOverridesT>(value); }
117 template<typename EntityOverridesT = Aws::Map<Aws::String, Aws::String>>
118 Feature& WithEntityOverrides(EntityOverridesT&& value) { SetEntityOverrides(std::forward<EntityOverridesT>(value)); return *this;}
119 template<typename EntityOverridesKeyT = Aws::String, typename EntityOverridesValueT = Aws::String>
120 Feature& AddEntityOverrides(EntityOverridesKeyT&& key, EntityOverridesValueT&& value) {
121 m_entityOverridesHasBeenSet = true; m_entityOverrides.emplace(std::forward<EntityOverridesKeyT>(key), std::forward<EntityOverridesValueT>(value)); return *this;
122 }
124
126
129 inline const Aws::Vector<EvaluationRule>& GetEvaluationRules() const { return m_evaluationRules; }
130 inline bool EvaluationRulesHasBeenSet() const { return m_evaluationRulesHasBeenSet; }
131 template<typename EvaluationRulesT = Aws::Vector<EvaluationRule>>
132 void SetEvaluationRules(EvaluationRulesT&& value) { m_evaluationRulesHasBeenSet = true; m_evaluationRules = std::forward<EvaluationRulesT>(value); }
133 template<typename EvaluationRulesT = Aws::Vector<EvaluationRule>>
134 Feature& WithEvaluationRules(EvaluationRulesT&& value) { SetEvaluationRules(std::forward<EvaluationRulesT>(value)); return *this;}
135 template<typename EvaluationRulesT = EvaluationRule>
136 Feature& AddEvaluationRules(EvaluationRulesT&& value) { m_evaluationRulesHasBeenSet = true; m_evaluationRules.emplace_back(std::forward<EvaluationRulesT>(value)); return *this; }
138
140
146 inline FeatureEvaluationStrategy GetEvaluationStrategy() const { return m_evaluationStrategy; }
147 inline bool EvaluationStrategyHasBeenSet() const { return m_evaluationStrategyHasBeenSet; }
148 inline void SetEvaluationStrategy(FeatureEvaluationStrategy value) { m_evaluationStrategyHasBeenSet = true; m_evaluationStrategy = value; }
151
153
156 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const { return m_lastUpdatedTime; }
157 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
158 template<typename LastUpdatedTimeT = Aws::Utils::DateTime>
159 void SetLastUpdatedTime(LastUpdatedTimeT&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::forward<LastUpdatedTimeT>(value); }
160 template<typename LastUpdatedTimeT = Aws::Utils::DateTime>
161 Feature& WithLastUpdatedTime(LastUpdatedTimeT&& value) { SetLastUpdatedTime(std::forward<LastUpdatedTimeT>(value)); return *this;}
163
165
168 inline const Aws::String& GetName() const { return m_name; }
169 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
170 template<typename NameT = Aws::String>
171 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
172 template<typename NameT = Aws::String>
173 Feature& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
175
177
180 inline const Aws::String& GetProject() const { return m_project; }
181 inline bool ProjectHasBeenSet() const { return m_projectHasBeenSet; }
182 template<typename ProjectT = Aws::String>
183 void SetProject(ProjectT&& value) { m_projectHasBeenSet = true; m_project = std::forward<ProjectT>(value); }
184 template<typename ProjectT = Aws::String>
185 Feature& WithProject(ProjectT&& value) { SetProject(std::forward<ProjectT>(value)); return *this;}
187
189
192 inline FeatureStatus GetStatus() const { return m_status; }
193 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
194 inline void SetStatus(FeatureStatus value) { m_statusHasBeenSet = true; m_status = value; }
195 inline Feature& WithStatus(FeatureStatus value) { SetStatus(value); return *this;}
197
199
202 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
203 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
204 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
205 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
206 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
207 Feature& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
208 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
209 Feature& AddTags(TagsKeyT&& key, TagsValueT&& value) {
210 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
211 }
213
215
221 inline VariationValueType GetValueType() const { return m_valueType; }
222 inline bool ValueTypeHasBeenSet() const { return m_valueTypeHasBeenSet; }
223 inline void SetValueType(VariationValueType value) { m_valueTypeHasBeenSet = true; m_valueType = value; }
224 inline Feature& WithValueType(VariationValueType value) { SetValueType(value); return *this;}
226
228
232 inline const Aws::Vector<Variation>& GetVariations() const { return m_variations; }
233 inline bool VariationsHasBeenSet() const { return m_variationsHasBeenSet; }
234 template<typename VariationsT = Aws::Vector<Variation>>
235 void SetVariations(VariationsT&& value) { m_variationsHasBeenSet = true; m_variations = std::forward<VariationsT>(value); }
236 template<typename VariationsT = Aws::Vector<Variation>>
237 Feature& WithVariations(VariationsT&& value) { SetVariations(std::forward<VariationsT>(value)); return *this;}
238 template<typename VariationsT = Variation>
239 Feature& AddVariations(VariationsT&& value) { m_variationsHasBeenSet = true; m_variations.emplace_back(std::forward<VariationsT>(value)); return *this; }
241 private:
242
243 Aws::String m_arn;
244 bool m_arnHasBeenSet = false;
245
246 Aws::Utils::DateTime m_createdTime{};
247 bool m_createdTimeHasBeenSet = false;
248
249 Aws::String m_defaultVariation;
250 bool m_defaultVariationHasBeenSet = false;
251
252 Aws::String m_description;
253 bool m_descriptionHasBeenSet = false;
254
255 Aws::Map<Aws::String, Aws::String> m_entityOverrides;
256 bool m_entityOverridesHasBeenSet = false;
257
258 Aws::Vector<EvaluationRule> m_evaluationRules;
259 bool m_evaluationRulesHasBeenSet = false;
260
262 bool m_evaluationStrategyHasBeenSet = false;
263
264 Aws::Utils::DateTime m_lastUpdatedTime{};
265 bool m_lastUpdatedTimeHasBeenSet = false;
266
267 Aws::String m_name;
268 bool m_nameHasBeenSet = false;
269
270 Aws::String m_project;
271 bool m_projectHasBeenSet = false;
272
274 bool m_statusHasBeenSet = false;
275
277 bool m_tagsHasBeenSet = false;
278
280 bool m_valueTypeHasBeenSet = false;
281
282 Aws::Vector<Variation> m_variations;
283 bool m_variationsHasBeenSet = false;
284 };
285
286} // namespace Model
287} // namespace CloudWatchEvidently
288} // namespace Aws
const Aws::Utils::DateTime & GetCreatedTime() const
Definition Feature.h:65
Feature & AddVariations(VariationsT &&value)
Definition Feature.h:239
FeatureEvaluationStrategy GetEvaluationStrategy() const
Definition Feature.h:146
Feature & AddEvaluationRules(EvaluationRulesT &&value)
Definition Feature.h:136
Feature & WithDefaultVariation(DefaultVariationT &&value)
Definition Feature.h:87
const Aws::Map< Aws::String, Aws::String > & GetEntityOverrides() const
Definition Feature.h:113
void SetEntityOverrides(EntityOverridesT &&value)
Definition Feature.h:116
Feature & WithTags(TagsT &&value)
Definition Feature.h:207
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Feature.h:202
Feature & WithName(NameT &&value)
Definition Feature.h:173
const Aws::Utils::DateTime & GetLastUpdatedTime() const
Definition Feature.h:156
Feature & WithArn(ArnT &&value)
Definition Feature.h:58
void SetValueType(VariationValueType value)
Definition Feature.h:223
const Aws::Vector< EvaluationRule > & GetEvaluationRules() const
Definition Feature.h:129
AWS_CLOUDWATCHEVIDENTLY_API Feature()=default
Feature & WithVariations(VariationsT &&value)
Definition Feature.h:237
void SetLastUpdatedTime(LastUpdatedTimeT &&value)
Definition Feature.h:159
const Aws::String & GetDefaultVariation() const
Definition Feature.h:82
const Aws::String & GetProject() const
Definition Feature.h:180
void SetVariations(VariationsT &&value)
Definition Feature.h:235
Feature & WithCreatedTime(CreatedTimeT &&value)
Definition Feature.h:70
Feature & WithEntityOverrides(EntityOverridesT &&value)
Definition Feature.h:118
void SetEvaluationRules(EvaluationRulesT &&value)
Definition Feature.h:132
Feature & AddEntityOverrides(EntityOverridesKeyT &&key, EntityOverridesValueT &&value)
Definition Feature.h:120
const Aws::String & GetName() const
Definition Feature.h:168
void SetDefaultVariation(DefaultVariationT &&value)
Definition Feature.h:85
AWS_CLOUDWATCHEVIDENTLY_API Feature & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStatus(FeatureStatus value)
Definition Feature.h:194
VariationValueType GetValueType() const
Definition Feature.h:221
const Aws::String & GetArn() const
Definition Feature.h:53
Feature & WithEvaluationRules(EvaluationRulesT &&value)
Definition Feature.h:134
Feature & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition Feature.h:209
Feature & WithLastUpdatedTime(LastUpdatedTimeT &&value)
Definition Feature.h:161
Feature & WithStatus(FeatureStatus value)
Definition Feature.h:195
void SetDescription(DescriptionT &&value)
Definition Feature.h:97
Feature & WithValueType(VariationValueType value)
Definition Feature.h:224
Feature & WithEvaluationStrategy(FeatureEvaluationStrategy value)
Definition Feature.h:149
void SetEvaluationStrategy(FeatureEvaluationStrategy value)
Definition Feature.h:148
Feature & WithDescription(DescriptionT &&value)
Definition Feature.h:99
AWS_CLOUDWATCHEVIDENTLY_API Feature(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDescription() const
Definition Feature.h:94
AWS_CLOUDWATCHEVIDENTLY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Variation > & GetVariations() const
Definition Feature.h:232
void SetCreatedTime(CreatedTimeT &&value)
Definition Feature.h:68
void SetProject(ProjectT &&value)
Definition Feature.h:183
Feature & WithProject(ProjectT &&value)
Definition Feature.h:185
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue