AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
CreateClassificationJobRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/macie2/Macie2Request.h>
12#include <aws/macie2/Macie2_EXPORTS.h>
13#include <aws/macie2/model/JobScheduleFrequency.h>
14#include <aws/macie2/model/JobType.h>
15#include <aws/macie2/model/ManagedDataIdentifierSelector.h>
16#include <aws/macie2/model/S3JobDefinition.h>
17
18#include <utility>
19
20namespace Aws {
21namespace Macie2 {
22namespace Model {
23
27 public:
28 AWS_MACIE2_API CreateClassificationJobRequest() = 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 "CreateClassificationJob"; }
35
36 AWS_MACIE2_API Aws::String SerializePayload() const override;
37
39
43 inline const Aws::Vector<Aws::String>& GetAllowListIds() const { return m_allowListIds; }
44 inline bool AllowListIdsHasBeenSet() const { return m_allowListIdsHasBeenSet; }
45 template <typename AllowListIdsT = Aws::Vector<Aws::String>>
46 void SetAllowListIds(AllowListIdsT&& value) {
47 m_allowListIdsHasBeenSet = true;
48 m_allowListIds = std::forward<AllowListIdsT>(value);
49 }
50 template <typename AllowListIdsT = Aws::Vector<Aws::String>>
52 SetAllowListIds(std::forward<AllowListIdsT>(value));
53 return *this;
54 }
55 template <typename AllowListIdsT = Aws::String>
57 m_allowListIdsHasBeenSet = true;
58 m_allowListIds.emplace_back(std::forward<AllowListIdsT>(value));
59 return *this;
60 }
62
64
68 inline const Aws::String& GetClientToken() const { return m_clientToken; }
69 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
70 template <typename ClientTokenT = Aws::String>
71 void SetClientToken(ClientTokenT&& value) {
72 m_clientTokenHasBeenSet = true;
73 m_clientToken = std::forward<ClientTokenT>(value);
74 }
75 template <typename ClientTokenT = Aws::String>
77 SetClientToken(std::forward<ClientTokenT>(value));
78 return *this;
79 }
81
83
89 inline const Aws::Vector<Aws::String>& GetCustomDataIdentifierIds() const { return m_customDataIdentifierIds; }
90 inline bool CustomDataIdentifierIdsHasBeenSet() const { return m_customDataIdentifierIdsHasBeenSet; }
91 template <typename CustomDataIdentifierIdsT = Aws::Vector<Aws::String>>
92 void SetCustomDataIdentifierIds(CustomDataIdentifierIdsT&& value) {
93 m_customDataIdentifierIdsHasBeenSet = true;
94 m_customDataIdentifierIds = std::forward<CustomDataIdentifierIdsT>(value);
95 }
96 template <typename CustomDataIdentifierIdsT = Aws::Vector<Aws::String>>
98 SetCustomDataIdentifierIds(std::forward<CustomDataIdentifierIdsT>(value));
99 return *this;
100 }
101 template <typename CustomDataIdentifierIdsT = Aws::String>
103 m_customDataIdentifierIdsHasBeenSet = true;
104 m_customDataIdentifierIds.emplace_back(std::forward<CustomDataIdentifierIdsT>(value));
105 return *this;
106 }
108
110
114 inline const Aws::String& GetDescription() const { return m_description; }
115 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
116 template <typename DescriptionT = Aws::String>
117 void SetDescription(DescriptionT&& value) {
118 m_descriptionHasBeenSet = true;
119 m_description = std::forward<DescriptionT>(value);
120 }
121 template <typename DescriptionT = Aws::String>
123 SetDescription(std::forward<DescriptionT>(value));
124 return *this;
125 }
127
129
136 inline bool GetInitialRun() const { return m_initialRun; }
137 inline bool InitialRunHasBeenSet() const { return m_initialRunHasBeenSet; }
138 inline void SetInitialRun(bool value) {
139 m_initialRunHasBeenSet = true;
140 m_initialRun = value;
141 }
143 SetInitialRun(value);
144 return *this;
145 }
147
149
156 inline JobType GetJobType() const { return m_jobType; }
157 inline bool JobTypeHasBeenSet() const { return m_jobTypeHasBeenSet; }
158 inline void SetJobType(JobType value) {
159 m_jobTypeHasBeenSet = true;
160 m_jobType = value;
161 }
163 SetJobType(value);
164 return *this;
165 }
167
169
176 inline const Aws::Vector<Aws::String>& GetManagedDataIdentifierIds() const { return m_managedDataIdentifierIds; }
177 inline bool ManagedDataIdentifierIdsHasBeenSet() const { return m_managedDataIdentifierIdsHasBeenSet; }
178 template <typename ManagedDataIdentifierIdsT = Aws::Vector<Aws::String>>
179 void SetManagedDataIdentifierIds(ManagedDataIdentifierIdsT&& value) {
180 m_managedDataIdentifierIdsHasBeenSet = true;
181 m_managedDataIdentifierIds = std::forward<ManagedDataIdentifierIdsT>(value);
182 }
183 template <typename ManagedDataIdentifierIdsT = Aws::Vector<Aws::String>>
185 SetManagedDataIdentifierIds(std::forward<ManagedDataIdentifierIdsT>(value));
186 return *this;
187 }
188 template <typename ManagedDataIdentifierIdsT = Aws::String>
190 m_managedDataIdentifierIdsHasBeenSet = true;
191 m_managedDataIdentifierIds.emplace_back(std::forward<ManagedDataIdentifierIdsT>(value));
192 return *this;
193 }
195
197
224 inline ManagedDataIdentifierSelector GetManagedDataIdentifierSelector() const { return m_managedDataIdentifierSelector; }
225 inline bool ManagedDataIdentifierSelectorHasBeenSet() const { return m_managedDataIdentifierSelectorHasBeenSet; }
227 m_managedDataIdentifierSelectorHasBeenSet = true;
228 m_managedDataIdentifierSelector = value;
229 }
232 return *this;
233 }
235
237
241 inline const Aws::String& GetName() const { return m_name; }
242 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
243 template <typename NameT = Aws::String>
244 void SetName(NameT&& value) {
245 m_nameHasBeenSet = true;
246 m_name = std::forward<NameT>(value);
247 }
248 template <typename NameT = Aws::String>
250 SetName(std::forward<NameT>(value));
251 return *this;
252 }
254
256
260 inline const S3JobDefinition& GetS3JobDefinition() const { return m_s3JobDefinition; }
261 inline bool S3JobDefinitionHasBeenSet() const { return m_s3JobDefinitionHasBeenSet; }
262 template <typename S3JobDefinitionT = S3JobDefinition>
263 void SetS3JobDefinition(S3JobDefinitionT&& value) {
264 m_s3JobDefinitionHasBeenSet = true;
265 m_s3JobDefinition = std::forward<S3JobDefinitionT>(value);
266 }
267 template <typename S3JobDefinitionT = S3JobDefinition>
269 SetS3JobDefinition(std::forward<S3JobDefinitionT>(value));
270 return *this;
271 }
273
275
282 inline int GetSamplingPercentage() const { return m_samplingPercentage; }
283 inline bool SamplingPercentageHasBeenSet() const { return m_samplingPercentageHasBeenSet; }
284 inline void SetSamplingPercentage(int value) {
285 m_samplingPercentageHasBeenSet = true;
286 m_samplingPercentage = value;
287 }
290 return *this;
291 }
293
295
300 inline const JobScheduleFrequency& GetScheduleFrequency() const { return m_scheduleFrequency; }
301 inline bool ScheduleFrequencyHasBeenSet() const { return m_scheduleFrequencyHasBeenSet; }
302 template <typename ScheduleFrequencyT = JobScheduleFrequency>
303 void SetScheduleFrequency(ScheduleFrequencyT&& value) {
304 m_scheduleFrequencyHasBeenSet = true;
305 m_scheduleFrequency = std::forward<ScheduleFrequencyT>(value);
306 }
307 template <typename ScheduleFrequencyT = JobScheduleFrequency>
309 SetScheduleFrequency(std::forward<ScheduleFrequencyT>(value));
310 return *this;
311 }
313
315
321 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
322 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
323 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
324 void SetTags(TagsT&& value) {
325 m_tagsHasBeenSet = true;
326 m_tags = std::forward<TagsT>(value);
327 }
328 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
330 SetTags(std::forward<TagsT>(value));
331 return *this;
332 }
333 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
334 CreateClassificationJobRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
335 m_tagsHasBeenSet = true;
336 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
337 return *this;
338 }
340 private:
341 Aws::Vector<Aws::String> m_allowListIds;
342
344
345 Aws::Vector<Aws::String> m_customDataIdentifierIds;
346
347 Aws::String m_description;
348
349 bool m_initialRun{false};
350
351 JobType m_jobType{JobType::NOT_SET};
352
353 Aws::Vector<Aws::String> m_managedDataIdentifierIds;
354
356
357 Aws::String m_name;
358
359 S3JobDefinition m_s3JobDefinition;
360
361 int m_samplingPercentage{0};
362
363 JobScheduleFrequency m_scheduleFrequency;
364
366 bool m_allowListIdsHasBeenSet = false;
367 bool m_clientTokenHasBeenSet = true;
368 bool m_customDataIdentifierIdsHasBeenSet = false;
369 bool m_descriptionHasBeenSet = false;
370 bool m_initialRunHasBeenSet = false;
371 bool m_jobTypeHasBeenSet = false;
372 bool m_managedDataIdentifierIdsHasBeenSet = false;
373 bool m_managedDataIdentifierSelectorHasBeenSet = false;
374 bool m_nameHasBeenSet = false;
375 bool m_s3JobDefinitionHasBeenSet = false;
376 bool m_samplingPercentageHasBeenSet = false;
377 bool m_scheduleFrequencyHasBeenSet = false;
378 bool m_tagsHasBeenSet = false;
379};
380
381} // namespace Model
382} // namespace Macie2
383} // namespace Aws
CreateClassificationJobRequest & WithAllowListIds(AllowListIdsT &&value)
CreateClassificationJobRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
void SetManagedDataIdentifierIds(ManagedDataIdentifierIdsT &&value)
const Aws::Vector< Aws::String > & GetManagedDataIdentifierIds() const
CreateClassificationJobRequest & WithManagedDataIdentifierSelector(ManagedDataIdentifierSelector value)
CreateClassificationJobRequest & AddManagedDataIdentifierIds(ManagedDataIdentifierIdsT &&value)
CreateClassificationJobRequest & WithJobType(JobType value)
CreateClassificationJobRequest & WithTags(TagsT &&value)
CreateClassificationJobRequest & WithName(NameT &&value)
CreateClassificationJobRequest & WithScheduleFrequency(ScheduleFrequencyT &&value)
const Aws::Vector< Aws::String > & GetCustomDataIdentifierIds() const
CreateClassificationJobRequest & WithInitialRun(bool value)
CreateClassificationJobRequest & AddAllowListIds(AllowListIdsT &&value)
CreateClassificationJobRequest & WithSamplingPercentage(int value)
const Aws::Vector< Aws::String > & GetAllowListIds() const
CreateClassificationJobRequest & WithCustomDataIdentifierIds(CustomDataIdentifierIdsT &&value)
void SetManagedDataIdentifierSelector(ManagedDataIdentifierSelector value)
CreateClassificationJobRequest & WithManagedDataIdentifierIds(ManagedDataIdentifierIdsT &&value)
void SetCustomDataIdentifierIds(CustomDataIdentifierIdsT &&value)
AWS_MACIE2_API CreateClassificationJobRequest()=default
AWS_MACIE2_API Aws::String SerializePayload() const override
ManagedDataIdentifierSelector GetManagedDataIdentifierSelector() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateClassificationJobRequest & WithS3JobDefinition(S3JobDefinitionT &&value)
CreateClassificationJobRequest & WithClientToken(ClientTokenT &&value)
CreateClassificationJobRequest & AddCustomDataIdentifierIds(CustomDataIdentifierIdsT &&value)
CreateClassificationJobRequest & WithDescription(DescriptionT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
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