AWS SDK for C++

AWS SDK for C++ Version 1.11.937

Loading...
Searching...
No Matches
CreateConfiguredAudienceModelRequest.h
1
6#pragma once
7#include <aws/cleanroomsml/CleanRoomsMLRequest.h>
8#include <aws/cleanroomsml/CleanRoomsML_EXPORTS.h>
9#include <aws/cleanroomsml/model/AudienceSizeConfig.h>
10#include <aws/cleanroomsml/model/ConfiguredAudienceModelOutputConfig.h>
11#include <aws/cleanroomsml/model/SharedAudienceMetrics.h>
12#include <aws/cleanroomsml/model/TagOnCreatePolicy.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16
17#include <utility>
18
19namespace Aws {
20namespace CleanRoomsML {
21namespace Model {
22
26 public:
27 AWS_CLEANROOMSML_API CreateConfiguredAudienceModelRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateConfiguredAudienceModel"; }
34
35 AWS_CLEANROOMSML_API Aws::String SerializePayload() const override;
36
38
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetAudienceModelArn() const { return m_audienceModelArn; }
61 inline bool AudienceModelArnHasBeenSet() const { return m_audienceModelArnHasBeenSet; }
62 template <typename AudienceModelArnT = Aws::String>
63 void SetAudienceModelArn(AudienceModelArnT&& value) {
64 m_audienceModelArnHasBeenSet = true;
65 m_audienceModelArn = std::forward<AudienceModelArnT>(value);
66 }
67 template <typename AudienceModelArnT = Aws::String>
69 SetAudienceModelArn(std::forward<AudienceModelArnT>(value));
70 return *this;
71 }
73
75
82 inline const ConfiguredAudienceModelOutputConfig& GetOutputConfig() const { return m_outputConfig; }
83 inline bool OutputConfigHasBeenSet() const { return m_outputConfigHasBeenSet; }
84 template <typename OutputConfigT = ConfiguredAudienceModelOutputConfig>
85 void SetOutputConfig(OutputConfigT&& value) {
86 m_outputConfigHasBeenSet = true;
87 m_outputConfig = std::forward<OutputConfigT>(value);
88 }
89 template <typename OutputConfigT = ConfiguredAudienceModelOutputConfig>
91 SetOutputConfig(std::forward<OutputConfigT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::String& GetDescription() const { return m_description; }
101 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
102 template <typename DescriptionT = Aws::String>
103 void SetDescription(DescriptionT&& value) {
104 m_descriptionHasBeenSet = true;
105 m_description = std::forward<DescriptionT>(value);
106 }
107 template <typename DescriptionT = Aws::String>
109 SetDescription(std::forward<DescriptionT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::Vector<SharedAudienceMetrics>& GetSharedAudienceMetrics() const { return m_sharedAudienceMetrics; }
119 inline bool SharedAudienceMetricsHasBeenSet() const { return m_sharedAudienceMetricsHasBeenSet; }
120 template <typename SharedAudienceMetricsT = Aws::Vector<SharedAudienceMetrics>>
121 void SetSharedAudienceMetrics(SharedAudienceMetricsT&& value) {
122 m_sharedAudienceMetricsHasBeenSet = true;
123 m_sharedAudienceMetrics = std::forward<SharedAudienceMetricsT>(value);
124 }
125 template <typename SharedAudienceMetricsT = Aws::Vector<SharedAudienceMetrics>>
127 SetSharedAudienceMetrics(std::forward<SharedAudienceMetricsT>(value));
128 return *this;
129 }
131 m_sharedAudienceMetricsHasBeenSet = true;
132 m_sharedAudienceMetrics.push_back(value);
133 return *this;
134 }
136
138
142 inline int GetMinMatchingSeedSize() const { return m_minMatchingSeedSize; }
143 inline bool MinMatchingSeedSizeHasBeenSet() const { return m_minMatchingSeedSizeHasBeenSet; }
144 inline void SetMinMatchingSeedSize(int value) {
145 m_minMatchingSeedSizeHasBeenSet = true;
146 m_minMatchingSeedSize = value;
147 }
150 return *this;
151 }
153
155
164 inline const AudienceSizeConfig& GetAudienceSizeConfig() const { return m_audienceSizeConfig; }
165 inline bool AudienceSizeConfigHasBeenSet() const { return m_audienceSizeConfigHasBeenSet; }
166 template <typename AudienceSizeConfigT = AudienceSizeConfig>
167 void SetAudienceSizeConfig(AudienceSizeConfigT&& value) {
168 m_audienceSizeConfigHasBeenSet = true;
169 m_audienceSizeConfig = std::forward<AudienceSizeConfigT>(value);
170 }
171 template <typename AudienceSizeConfigT = AudienceSizeConfig>
173 SetAudienceSizeConfig(std::forward<AudienceSizeConfigT>(value));
174 return *this;
175 }
177
179
199 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
200 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
201 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
202 void SetTags(TagsT&& value) {
203 m_tagsHasBeenSet = true;
204 m_tags = std::forward<TagsT>(value);
205 }
206 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
208 SetTags(std::forward<TagsT>(value));
209 return *this;
210 }
211 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
212 CreateConfiguredAudienceModelRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
213 m_tagsHasBeenSet = true;
214 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
215 return *this;
216 }
218
220
231 inline TagOnCreatePolicy GetChildResourceTagOnCreatePolicy() const { return m_childResourceTagOnCreatePolicy; }
232 inline bool ChildResourceTagOnCreatePolicyHasBeenSet() const { return m_childResourceTagOnCreatePolicyHasBeenSet; }
234 m_childResourceTagOnCreatePolicyHasBeenSet = true;
235 m_childResourceTagOnCreatePolicy = value;
236 }
242 private:
243 Aws::String m_name;
244
245 Aws::String m_audienceModelArn;
246
248
249 Aws::String m_description;
250
251 Aws::Vector<SharedAudienceMetrics> m_sharedAudienceMetrics;
252
253 int m_minMatchingSeedSize{0};
254
255 AudienceSizeConfig m_audienceSizeConfig;
256
258
259 TagOnCreatePolicy m_childResourceTagOnCreatePolicy{TagOnCreatePolicy::NOT_SET};
260 bool m_nameHasBeenSet = false;
261 bool m_audienceModelArnHasBeenSet = false;
262 bool m_outputConfigHasBeenSet = false;
263 bool m_descriptionHasBeenSet = false;
264 bool m_sharedAudienceMetricsHasBeenSet = false;
265 bool m_minMatchingSeedSizeHasBeenSet = false;
266 bool m_audienceSizeConfigHasBeenSet = false;
267 bool m_tagsHasBeenSet = false;
268 bool m_childResourceTagOnCreatePolicyHasBeenSet = false;
269};
270
271} // namespace Model
272} // namespace CleanRoomsML
273} // namespace Aws
CreateConfiguredAudienceModelRequest & WithAudienceModelArn(AudienceModelArnT &&value)
AWS_CLEANROOMSML_API Aws::String SerializePayload() const override
CreateConfiguredAudienceModelRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_CLEANROOMSML_API CreateConfiguredAudienceModelRequest()=default
CreateConfiguredAudienceModelRequest & AddSharedAudienceMetrics(SharedAudienceMetrics value)
CreateConfiguredAudienceModelRequest & WithSharedAudienceMetrics(SharedAudienceMetricsT &&value)
CreateConfiguredAudienceModelRequest & WithOutputConfig(OutputConfigT &&value)
const Aws::Vector< SharedAudienceMetrics > & GetSharedAudienceMetrics() const
CreateConfiguredAudienceModelRequest & WithChildResourceTagOnCreatePolicy(TagOnCreatePolicy value)
CreateConfiguredAudienceModelRequest & WithDescription(DescriptionT &&value)
CreateConfiguredAudienceModelRequest & WithAudienceSizeConfig(AudienceSizeConfigT &&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