AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename DefaultVariationT = Aws::String>
51 void SetDefaultVariation(DefaultVariationT&& value) { m_defaultVariationHasBeenSet = true; m_defaultVariation = std::forward<DefaultVariationT>(value); }
52 template<typename DefaultVariationT = Aws::String>
53 CreateFeatureRequest& WithDefaultVariation(DefaultVariationT&& value) { SetDefaultVariation(std::forward<DefaultVariationT>(value)); return *this;}
55
57
60 inline const Aws::String& GetDescription() const { return m_description; }
61 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
62 template<typename DescriptionT = Aws::String>
63 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
64 template<typename DescriptionT = Aws::String>
65 CreateFeatureRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
67
69
77 inline const Aws::Map<Aws::String, Aws::String>& GetEntityOverrides() const { return m_entityOverrides; }
78 inline bool EntityOverridesHasBeenSet() const { return m_entityOverridesHasBeenSet; }
79 template<typename EntityOverridesT = Aws::Map<Aws::String, Aws::String>>
80 void SetEntityOverrides(EntityOverridesT&& value) { m_entityOverridesHasBeenSet = true; m_entityOverrides = std::forward<EntityOverridesT>(value); }
81 template<typename EntityOverridesT = Aws::Map<Aws::String, Aws::String>>
82 CreateFeatureRequest& WithEntityOverrides(EntityOverridesT&& value) { SetEntityOverrides(std::forward<EntityOverridesT>(value)); return *this;}
83 template<typename EntityOverridesKeyT = Aws::String, typename EntityOverridesValueT = Aws::String>
84 CreateFeatureRequest& AddEntityOverrides(EntityOverridesKeyT&& key, EntityOverridesValueT&& value) {
85 m_entityOverridesHasBeenSet = true; m_entityOverrides.emplace(std::forward<EntityOverridesKeyT>(key), std::forward<EntityOverridesValueT>(value)); return *this;
86 }
88
90
95 inline FeatureEvaluationStrategy GetEvaluationStrategy() const { return m_evaluationStrategy; }
96 inline bool EvaluationStrategyHasBeenSet() const { return m_evaluationStrategyHasBeenSet; }
97 inline void SetEvaluationStrategy(FeatureEvaluationStrategy value) { m_evaluationStrategyHasBeenSet = true; m_evaluationStrategy = value; }
100
102
105 inline const Aws::String& GetName() const { return m_name; }
106 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
107 template<typename NameT = Aws::String>
108 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
109 template<typename NameT = Aws::String>
110 CreateFeatureRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
112
114
117 inline const Aws::String& GetProject() const { return m_project; }
118 inline bool ProjectHasBeenSet() const { return m_projectHasBeenSet; }
119 template<typename ProjectT = Aws::String>
120 void SetProject(ProjectT&& value) { m_projectHasBeenSet = true; m_project = std::forward<ProjectT>(value); }
121 template<typename ProjectT = Aws::String>
122 CreateFeatureRequest& WithProject(ProjectT&& value) { SetProject(std::forward<ProjectT>(value)); return *this;}
124
126
137 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
138 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
139 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
140 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
141 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
142 CreateFeatureRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
143 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
144 CreateFeatureRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
145 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
146 }
148
150
154 inline const Aws::Vector<VariationConfig>& GetVariations() const { return m_variations; }
155 inline bool VariationsHasBeenSet() const { return m_variationsHasBeenSet; }
156 template<typename VariationsT = Aws::Vector<VariationConfig>>
157 void SetVariations(VariationsT&& value) { m_variationsHasBeenSet = true; m_variations = std::forward<VariationsT>(value); }
158 template<typename VariationsT = Aws::Vector<VariationConfig>>
159 CreateFeatureRequest& WithVariations(VariationsT&& value) { SetVariations(std::forward<VariationsT>(value)); return *this;}
160 template<typename VariationsT = VariationConfig>
161 CreateFeatureRequest& AddVariations(VariationsT&& value) { m_variationsHasBeenSet = true; m_variations.emplace_back(std::forward<VariationsT>(value)); return *this; }
163 private:
164
165 Aws::String m_defaultVariation;
166 bool m_defaultVariationHasBeenSet = false;
167
168 Aws::String m_description;
169 bool m_descriptionHasBeenSet = false;
170
171 Aws::Map<Aws::String, Aws::String> m_entityOverrides;
172 bool m_entityOverridesHasBeenSet = false;
173
175 bool m_evaluationStrategyHasBeenSet = false;
176
177 Aws::String m_name;
178 bool m_nameHasBeenSet = false;
179
180 Aws::String m_project;
181 bool m_projectHasBeenSet = false;
182
184 bool m_tagsHasBeenSet = false;
185
186 Aws::Vector<VariationConfig> m_variations;
187 bool m_variationsHasBeenSet = false;
188 };
189
190} // namespace Model
191} // namespace CloudWatchEvidently
192} // namespace Aws
const Aws::Vector< VariationConfig > & GetVariations() const
CreateFeatureRequest & WithProject(ProjectT &&value)
virtual const char * GetServiceRequestName() const override
AWS_CLOUDWATCHEVIDENTLY_API CreateFeatureRequest()=default
CreateFeatureRequest & AddVariations(VariationsT &&value)
CreateFeatureRequest & WithDescription(DescriptionT &&value)
CreateFeatureRequest & WithEvaluationStrategy(FeatureEvaluationStrategy value)
CreateFeatureRequest & WithVariations(VariationsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetEntityOverrides() const
CreateFeatureRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetEvaluationStrategy(FeatureEvaluationStrategy value)
CreateFeatureRequest & WithDefaultVariation(DefaultVariationT &&value)
CreateFeatureRequest & AddEntityOverrides(EntityOverridesKeyT &&key, EntityOverridesValueT &&value)
AWS_CLOUDWATCHEVIDENTLY_API Aws::String SerializePayload() const override
CreateFeatureRequest & WithEntityOverrides(EntityOverridesT &&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