AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateFeatureRequest.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/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/evidently/model/FeatureEvaluationStrategy.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 UpdateFeatureRequest();
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 "UpdateFeature"; }
35
36 AWS_CLOUDWATCHEVIDENTLY_API Aws::String SerializePayload() const override;
37
38
40
47 inline const Aws::Vector<VariationConfig>& GetAddOrUpdateVariations() const{ return m_addOrUpdateVariations; }
48 inline bool AddOrUpdateVariationsHasBeenSet() const { return m_addOrUpdateVariationsHasBeenSet; }
49 inline void SetAddOrUpdateVariations(const Aws::Vector<VariationConfig>& value) { m_addOrUpdateVariationsHasBeenSet = true; m_addOrUpdateVariations = value; }
50 inline void SetAddOrUpdateVariations(Aws::Vector<VariationConfig>&& value) { m_addOrUpdateVariationsHasBeenSet = true; m_addOrUpdateVariations = std::move(value); }
53 inline UpdateFeatureRequest& AddAddOrUpdateVariations(const VariationConfig& value) { m_addOrUpdateVariationsHasBeenSet = true; m_addOrUpdateVariations.push_back(value); return *this; }
54 inline UpdateFeatureRequest& AddAddOrUpdateVariations(VariationConfig&& value) { m_addOrUpdateVariationsHasBeenSet = true; m_addOrUpdateVariations.push_back(std::move(value)); return *this; }
56
58
63 inline const Aws::String& GetDefaultVariation() const{ return m_defaultVariation; }
64 inline bool DefaultVariationHasBeenSet() const { return m_defaultVariationHasBeenSet; }
65 inline void SetDefaultVariation(const Aws::String& value) { m_defaultVariationHasBeenSet = true; m_defaultVariation = value; }
66 inline void SetDefaultVariation(Aws::String&& value) { m_defaultVariationHasBeenSet = true; m_defaultVariation = std::move(value); }
67 inline void SetDefaultVariation(const char* value) { m_defaultVariationHasBeenSet = true; m_defaultVariation.assign(value); }
68 inline UpdateFeatureRequest& WithDefaultVariation(const Aws::String& value) { SetDefaultVariation(value); return *this;}
69 inline UpdateFeatureRequest& WithDefaultVariation(Aws::String&& value) { SetDefaultVariation(std::move(value)); return *this;}
70 inline UpdateFeatureRequest& WithDefaultVariation(const char* value) { SetDefaultVariation(value); return *this;}
72
74
77 inline const Aws::String& GetDescription() const{ return m_description; }
78 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
79 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
80 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
81 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
82 inline UpdateFeatureRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
83 inline UpdateFeatureRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
84 inline UpdateFeatureRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
86
88
96 inline const Aws::Map<Aws::String, Aws::String>& GetEntityOverrides() const{ return m_entityOverrides; }
97 inline bool EntityOverridesHasBeenSet() const { return m_entityOverridesHasBeenSet; }
98 inline void SetEntityOverrides(const Aws::Map<Aws::String, Aws::String>& value) { m_entityOverridesHasBeenSet = true; m_entityOverrides = value; }
99 inline void SetEntityOverrides(Aws::Map<Aws::String, Aws::String>&& value) { m_entityOverridesHasBeenSet = true; m_entityOverrides = std::move(value); }
102 inline UpdateFeatureRequest& AddEntityOverrides(const Aws::String& key, const Aws::String& value) { m_entityOverridesHasBeenSet = true; m_entityOverrides.emplace(key, value); return *this; }
103 inline UpdateFeatureRequest& AddEntityOverrides(Aws::String&& key, const Aws::String& value) { m_entityOverridesHasBeenSet = true; m_entityOverrides.emplace(std::move(key), value); return *this; }
104 inline UpdateFeatureRequest& AddEntityOverrides(const Aws::String& key, Aws::String&& value) { m_entityOverridesHasBeenSet = true; m_entityOverrides.emplace(key, std::move(value)); return *this; }
105 inline UpdateFeatureRequest& AddEntityOverrides(Aws::String&& key, Aws::String&& value) { m_entityOverridesHasBeenSet = true; m_entityOverrides.emplace(std::move(key), std::move(value)); return *this; }
106 inline UpdateFeatureRequest& AddEntityOverrides(const char* key, Aws::String&& value) { m_entityOverridesHasBeenSet = true; m_entityOverrides.emplace(key, std::move(value)); return *this; }
107 inline UpdateFeatureRequest& AddEntityOverrides(Aws::String&& key, const char* value) { m_entityOverridesHasBeenSet = true; m_entityOverrides.emplace(std::move(key), value); return *this; }
108 inline UpdateFeatureRequest& AddEntityOverrides(const char* key, const char* value) { m_entityOverridesHasBeenSet = true; m_entityOverrides.emplace(key, value); return *this; }
110
112
117 inline const FeatureEvaluationStrategy& GetEvaluationStrategy() const{ return m_evaluationStrategy; }
118 inline bool EvaluationStrategyHasBeenSet() const { return m_evaluationStrategyHasBeenSet; }
119 inline void SetEvaluationStrategy(const FeatureEvaluationStrategy& value) { m_evaluationStrategyHasBeenSet = true; m_evaluationStrategy = value; }
120 inline void SetEvaluationStrategy(FeatureEvaluationStrategy&& value) { m_evaluationStrategyHasBeenSet = true; m_evaluationStrategy = std::move(value); }
124
126
129 inline const Aws::String& GetFeature() const{ return m_feature; }
130 inline bool FeatureHasBeenSet() const { return m_featureHasBeenSet; }
131 inline void SetFeature(const Aws::String& value) { m_featureHasBeenSet = true; m_feature = value; }
132 inline void SetFeature(Aws::String&& value) { m_featureHasBeenSet = true; m_feature = std::move(value); }
133 inline void SetFeature(const char* value) { m_featureHasBeenSet = true; m_feature.assign(value); }
134 inline UpdateFeatureRequest& WithFeature(const Aws::String& value) { SetFeature(value); return *this;}
135 inline UpdateFeatureRequest& WithFeature(Aws::String&& value) { SetFeature(std::move(value)); return *this;}
136 inline UpdateFeatureRequest& WithFeature(const char* value) { SetFeature(value); return *this;}
138
140
143 inline const Aws::String& GetProject() const{ return m_project; }
144 inline bool ProjectHasBeenSet() const { return m_projectHasBeenSet; }
145 inline void SetProject(const Aws::String& value) { m_projectHasBeenSet = true; m_project = value; }
146 inline void SetProject(Aws::String&& value) { m_projectHasBeenSet = true; m_project = std::move(value); }
147 inline void SetProject(const char* value) { m_projectHasBeenSet = true; m_project.assign(value); }
148 inline UpdateFeatureRequest& WithProject(const Aws::String& value) { SetProject(value); return *this;}
149 inline UpdateFeatureRequest& WithProject(Aws::String&& value) { SetProject(std::move(value)); return *this;}
150 inline UpdateFeatureRequest& WithProject(const char* value) { SetProject(value); return *this;}
152
154
160 inline const Aws::Vector<Aws::String>& GetRemoveVariations() const{ return m_removeVariations; }
161 inline bool RemoveVariationsHasBeenSet() const { return m_removeVariationsHasBeenSet; }
162 inline void SetRemoveVariations(const Aws::Vector<Aws::String>& value) { m_removeVariationsHasBeenSet = true; m_removeVariations = value; }
163 inline void SetRemoveVariations(Aws::Vector<Aws::String>&& value) { m_removeVariationsHasBeenSet = true; m_removeVariations = std::move(value); }
166 inline UpdateFeatureRequest& AddRemoveVariations(const Aws::String& value) { m_removeVariationsHasBeenSet = true; m_removeVariations.push_back(value); return *this; }
167 inline UpdateFeatureRequest& AddRemoveVariations(Aws::String&& value) { m_removeVariationsHasBeenSet = true; m_removeVariations.push_back(std::move(value)); return *this; }
168 inline UpdateFeatureRequest& AddRemoveVariations(const char* value) { m_removeVariationsHasBeenSet = true; m_removeVariations.push_back(value); return *this; }
170 private:
171
172 Aws::Vector<VariationConfig> m_addOrUpdateVariations;
173 bool m_addOrUpdateVariationsHasBeenSet = false;
174
175 Aws::String m_defaultVariation;
176 bool m_defaultVariationHasBeenSet = false;
177
178 Aws::String m_description;
179 bool m_descriptionHasBeenSet = false;
180
181 Aws::Map<Aws::String, Aws::String> m_entityOverrides;
182 bool m_entityOverridesHasBeenSet = false;
183
184 FeatureEvaluationStrategy m_evaluationStrategy;
185 bool m_evaluationStrategyHasBeenSet = false;
186
187 Aws::String m_feature;
188 bool m_featureHasBeenSet = false;
189
190 Aws::String m_project;
191 bool m_projectHasBeenSet = false;
192
193 Aws::Vector<Aws::String> m_removeVariations;
194 bool m_removeVariationsHasBeenSet = false;
195 };
196
197} // namespace Model
198} // namespace CloudWatchEvidently
199} // namespace Aws
void SetEntityOverrides(Aws::Map< Aws::String, Aws::String > &&value)
UpdateFeatureRequest & WithDescription(const Aws::String &value)
UpdateFeatureRequest & WithDefaultVariation(const Aws::String &value)
UpdateFeatureRequest & WithEvaluationStrategy(const FeatureEvaluationStrategy &value)
UpdateFeatureRequest & AddEntityOverrides(const char *key, const char *value)
void SetEntityOverrides(const Aws::Map< Aws::String, Aws::String > &value)
UpdateFeatureRequest & WithProject(const Aws::String &value)
UpdateFeatureRequest & WithFeature(Aws::String &&value)
UpdateFeatureRequest & AddEntityOverrides(const Aws::String &key, Aws::String &&value)
UpdateFeatureRequest & WithRemoveVariations(const Aws::Vector< Aws::String > &value)
void SetAddOrUpdateVariations(Aws::Vector< VariationConfig > &&value)
UpdateFeatureRequest & WithDescription(Aws::String &&value)
UpdateFeatureRequest & AddEntityOverrides(const Aws::String &key, const Aws::String &value)
UpdateFeatureRequest & WithAddOrUpdateVariations(const Aws::Vector< VariationConfig > &value)
UpdateFeatureRequest & WithEntityOverrides(const Aws::Map< Aws::String, Aws::String > &value)
UpdateFeatureRequest & WithProject(Aws::String &&value)
const Aws::Vector< Aws::String > & GetRemoveVariations() const
UpdateFeatureRequest & WithProject(const char *value)
UpdateFeatureRequest & AddRemoveVariations(const char *value)
UpdateFeatureRequest & AddEntityOverrides(Aws::String &&key, const char *value)
UpdateFeatureRequest & AddRemoveVariations(const Aws::String &value)
AWS_CLOUDWATCHEVIDENTLY_API Aws::String SerializePayload() const override
UpdateFeatureRequest & WithFeature(const Aws::String &value)
UpdateFeatureRequest & WithDefaultVariation(Aws::String &&value)
UpdateFeatureRequest & AddEntityOverrides(Aws::String &&key, Aws::String &&value)
UpdateFeatureRequest & WithDescription(const char *value)
void SetAddOrUpdateVariations(const Aws::Vector< VariationConfig > &value)
void SetRemoveVariations(Aws::Vector< Aws::String > &&value)
UpdateFeatureRequest & WithRemoveVariations(Aws::Vector< Aws::String > &&value)
AWS_CLOUDWATCHEVIDENTLY_API UpdateFeatureRequest()
const Aws::Map< Aws::String, Aws::String > & GetEntityOverrides() const
void SetRemoveVariations(const Aws::Vector< Aws::String > &value)
UpdateFeatureRequest & WithEvaluationStrategy(FeatureEvaluationStrategy &&value)
UpdateFeatureRequest & AddEntityOverrides(Aws::String &&key, const Aws::String &value)
void SetEvaluationStrategy(const FeatureEvaluationStrategy &value)
UpdateFeatureRequest & AddAddOrUpdateVariations(const VariationConfig &value)
UpdateFeatureRequest & AddRemoveVariations(Aws::String &&value)
UpdateFeatureRequest & AddEntityOverrides(const char *key, Aws::String &&value)
const Aws::Vector< VariationConfig > & GetAddOrUpdateVariations() const
UpdateFeatureRequest & AddAddOrUpdateVariations(VariationConfig &&value)
UpdateFeatureRequest & WithDefaultVariation(const char *value)
UpdateFeatureRequest & WithEntityOverrides(Aws::Map< Aws::String, Aws::String > &&value)
UpdateFeatureRequest & WithAddOrUpdateVariations(Aws::Vector< VariationConfig > &&value)
virtual const char * GetServiceRequestName() const override
const FeatureEvaluationStrategy & GetEvaluationStrategy() const
UpdateFeatureRequest & WithFeature(const char *value)
void SetEvaluationStrategy(FeatureEvaluationStrategy &&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