AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateFeatureRequest.h
1
6#pragma once
7#include <aws/evidently/CloudWatchEvidently_EXPORTS.h>
8#include <aws/evidently/CloudWatchEvidentlyRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/evidently/model/FeatureEvaluationStrategy.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/evidently/model/VariationConfig.h>
14#include <utility>
15
16namespace Aws
17{
18namespace CloudWatchEvidently
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_CLOUDWATCHEVIDENTLY_API CreateFeatureRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateFeature"; }
35
36 AWS_CLOUDWATCHEVIDENTLY_API Aws::String SerializePayload() const override;
37
38
40
48 inline const Aws::String& GetDefaultVariation() const{ return m_defaultVariation; }
49 inline bool DefaultVariationHasBeenSet() const { return m_defaultVariationHasBeenSet; }
50 inline void SetDefaultVariation(const Aws::String& value) { m_defaultVariationHasBeenSet = true; m_defaultVariation = value; }
51 inline void SetDefaultVariation(Aws::String&& value) { m_defaultVariationHasBeenSet = true; m_defaultVariation = std::move(value); }
52 inline void SetDefaultVariation(const char* value) { m_defaultVariationHasBeenSet = true; m_defaultVariation.assign(value); }
53 inline CreateFeatureRequest& WithDefaultVariation(const Aws::String& value) { SetDefaultVariation(value); return *this;}
54 inline CreateFeatureRequest& WithDefaultVariation(Aws::String&& value) { SetDefaultVariation(std::move(value)); return *this;}
55 inline CreateFeatureRequest& WithDefaultVariation(const char* value) { SetDefaultVariation(value); return *this;}
57
59
62 inline const Aws::String& GetDescription() const{ return m_description; }
63 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
64 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
65 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
66 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
67 inline CreateFeatureRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
68 inline CreateFeatureRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
69 inline CreateFeatureRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
71
73
81 inline const Aws::Map<Aws::String, Aws::String>& GetEntityOverrides() const{ return m_entityOverrides; }
82 inline bool EntityOverridesHasBeenSet() const { return m_entityOverridesHasBeenSet; }
83 inline void SetEntityOverrides(const Aws::Map<Aws::String, Aws::String>& value) { m_entityOverridesHasBeenSet = true; m_entityOverrides = value; }
84 inline void SetEntityOverrides(Aws::Map<Aws::String, Aws::String>&& value) { m_entityOverridesHasBeenSet = true; m_entityOverrides = std::move(value); }
87 inline CreateFeatureRequest& AddEntityOverrides(const Aws::String& key, const Aws::String& value) { m_entityOverridesHasBeenSet = true; m_entityOverrides.emplace(key, value); return *this; }
88 inline CreateFeatureRequest& AddEntityOverrides(Aws::String&& key, const Aws::String& value) { m_entityOverridesHasBeenSet = true; m_entityOverrides.emplace(std::move(key), value); return *this; }
89 inline CreateFeatureRequest& AddEntityOverrides(const Aws::String& key, Aws::String&& value) { m_entityOverridesHasBeenSet = true; m_entityOverrides.emplace(key, std::move(value)); return *this; }
90 inline CreateFeatureRequest& AddEntityOverrides(Aws::String&& key, Aws::String&& value) { m_entityOverridesHasBeenSet = true; m_entityOverrides.emplace(std::move(key), std::move(value)); return *this; }
91 inline CreateFeatureRequest& AddEntityOverrides(const char* key, Aws::String&& value) { m_entityOverridesHasBeenSet = true; m_entityOverrides.emplace(key, std::move(value)); return *this; }
92 inline CreateFeatureRequest& AddEntityOverrides(Aws::String&& key, const char* value) { m_entityOverridesHasBeenSet = true; m_entityOverrides.emplace(std::move(key), value); return *this; }
93 inline CreateFeatureRequest& AddEntityOverrides(const char* key, const char* value) { m_entityOverridesHasBeenSet = true; m_entityOverrides.emplace(key, value); return *this; }
95
97
102 inline const FeatureEvaluationStrategy& GetEvaluationStrategy() const{ return m_evaluationStrategy; }
103 inline bool EvaluationStrategyHasBeenSet() const { return m_evaluationStrategyHasBeenSet; }
104 inline void SetEvaluationStrategy(const FeatureEvaluationStrategy& value) { m_evaluationStrategyHasBeenSet = true; m_evaluationStrategy = value; }
105 inline void SetEvaluationStrategy(FeatureEvaluationStrategy&& value) { m_evaluationStrategyHasBeenSet = true; m_evaluationStrategy = std::move(value); }
109
111
114 inline const Aws::String& GetName() const{ return m_name; }
115 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
116 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
117 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
118 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
119 inline CreateFeatureRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
120 inline CreateFeatureRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
121 inline CreateFeatureRequest& WithName(const char* value) { SetName(value); return *this;}
123
125
128 inline const Aws::String& GetProject() const{ return m_project; }
129 inline bool ProjectHasBeenSet() const { return m_projectHasBeenSet; }
130 inline void SetProject(const Aws::String& value) { m_projectHasBeenSet = true; m_project = value; }
131 inline void SetProject(Aws::String&& value) { m_projectHasBeenSet = true; m_project = std::move(value); }
132 inline void SetProject(const char* value) { m_projectHasBeenSet = true; m_project.assign(value); }
133 inline CreateFeatureRequest& WithProject(const Aws::String& value) { SetProject(value); return *this;}
134 inline CreateFeatureRequest& WithProject(Aws::String&& value) { SetProject(std::move(value)); return *this;}
135 inline CreateFeatureRequest& WithProject(const char* value) { SetProject(value); return *this;}
137
139
150 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
151 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
152 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
153 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
154 inline CreateFeatureRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
155 inline CreateFeatureRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
156 inline CreateFeatureRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
157 inline CreateFeatureRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
158 inline CreateFeatureRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
159 inline CreateFeatureRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
160 inline CreateFeatureRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
161 inline CreateFeatureRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
162 inline CreateFeatureRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
164
166
170 inline const Aws::Vector<VariationConfig>& GetVariations() const{ return m_variations; }
171 inline bool VariationsHasBeenSet() const { return m_variationsHasBeenSet; }
172 inline void SetVariations(const Aws::Vector<VariationConfig>& value) { m_variationsHasBeenSet = true; m_variations = value; }
173 inline void SetVariations(Aws::Vector<VariationConfig>&& value) { m_variationsHasBeenSet = true; m_variations = std::move(value); }
175 inline CreateFeatureRequest& WithVariations(Aws::Vector<VariationConfig>&& value) { SetVariations(std::move(value)); return *this;}
176 inline CreateFeatureRequest& AddVariations(const VariationConfig& value) { m_variationsHasBeenSet = true; m_variations.push_back(value); return *this; }
177 inline CreateFeatureRequest& AddVariations(VariationConfig&& value) { m_variationsHasBeenSet = true; m_variations.push_back(std::move(value)); return *this; }
179 private:
180
181 Aws::String m_defaultVariation;
182 bool m_defaultVariationHasBeenSet = false;
183
184 Aws::String m_description;
185 bool m_descriptionHasBeenSet = false;
186
187 Aws::Map<Aws::String, Aws::String> m_entityOverrides;
188 bool m_entityOverridesHasBeenSet = false;
189
190 FeatureEvaluationStrategy m_evaluationStrategy;
191 bool m_evaluationStrategyHasBeenSet = false;
192
193 Aws::String m_name;
194 bool m_nameHasBeenSet = false;
195
196 Aws::String m_project;
197 bool m_projectHasBeenSet = false;
198
200 bool m_tagsHasBeenSet = false;
201
202 Aws::Vector<VariationConfig> m_variations;
203 bool m_variationsHasBeenSet = false;
204 };
205
206} // namespace Model
207} // namespace CloudWatchEvidently
208} // namespace Aws
void SetEvaluationStrategy(FeatureEvaluationStrategy &&value)
const Aws::Vector< VariationConfig > & GetVariations() const
CreateFeatureRequest & AddEntityOverrides(const char *key, const char *value)
CreateFeatureRequest & AddTags(const char *key, Aws::String &&value)
CreateFeatureRequest & WithVariations(const Aws::Vector< VariationConfig > &value)
CreateFeatureRequest & WithProject(const char *value)
CreateFeatureRequest & WithName(const char *value)
CreateFeatureRequest & AddEntityOverrides(Aws::String &&key, Aws::String &&value)
CreateFeatureRequest & WithDefaultVariation(const char *value)
CreateFeatureRequest & AddTags(Aws::String &&key, Aws::String &&value)
virtual const char * GetServiceRequestName() const override
CreateFeatureRequest & WithProject(Aws::String &&value)
CreateFeatureRequest & WithProject(const Aws::String &value)
const FeatureEvaluationStrategy & GetEvaluationStrategy() const
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateFeatureRequest & WithEvaluationStrategy(FeatureEvaluationStrategy &&value)
CreateFeatureRequest & WithDefaultVariation(const Aws::String &value)
CreateFeatureRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetVariations(const Aws::Vector< VariationConfig > &value)
CreateFeatureRequest & AddTags(const char *key, const char *value)
CreateFeatureRequest & WithEntityOverrides(const Aws::Map< Aws::String, Aws::String > &value)
CreateFeatureRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateFeatureRequest & AddEntityOverrides(const Aws::String &key, Aws::String &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateFeatureRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateFeatureRequest & AddVariations(const VariationConfig &value)
CreateFeatureRequest & AddEntityOverrides(Aws::String &&key, const char *value)
CreateFeatureRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateFeatureRequest & WithDefaultVariation(Aws::String &&value)
void SetEntityOverrides(const Aws::Map< Aws::String, Aws::String > &value)
CreateFeatureRequest & WithDescription(Aws::String &&value)
CreateFeatureRequest & AddEntityOverrides(const char *key, Aws::String &&value)
CreateFeatureRequest & AddVariations(VariationConfig &&value)
CreateFeatureRequest & AddEntityOverrides(const Aws::String &key, const Aws::String &value)
CreateFeatureRequest & WithName(const Aws::String &value)
CreateFeatureRequest & WithName(Aws::String &&value)
CreateFeatureRequest & AddEntityOverrides(Aws::String &&key, const Aws::String &value)
void SetEntityOverrides(Aws::Map< Aws::String, Aws::String > &&value)
CreateFeatureRequest & WithVariations(Aws::Vector< VariationConfig > &&value)
CreateFeatureRequest & WithDescription(const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetEntityOverrides() const
AWS_CLOUDWATCHEVIDENTLY_API CreateFeatureRequest()
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateFeatureRequest & WithEvaluationStrategy(const FeatureEvaluationStrategy &value)
void SetVariations(Aws::Vector< VariationConfig > &&value)
CreateFeatureRequest & AddTags(const Aws::String &key, const Aws::String &value)
AWS_CLOUDWATCHEVIDENTLY_API Aws::String SerializePayload() const override
void SetEvaluationStrategy(const FeatureEvaluationStrategy &value)
CreateFeatureRequest & WithEntityOverrides(Aws::Map< Aws::String, Aws::String > &&value)
CreateFeatureRequest & AddTags(Aws::String &&key, const char *value)
CreateFeatureRequest & WithDescription(const char *value)
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