AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateClassificationJobRequest.h
1
6#pragma once
7#include <aws/macie2/Macie2_EXPORTS.h>
8#include <aws/macie2/Macie2Request.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/macie2/model/JobType.h>
12#include <aws/macie2/model/ManagedDataIdentifierSelector.h>
13#include <aws/macie2/model/S3JobDefinition.h>
14#include <aws/macie2/model/JobScheduleFrequency.h>
15#include <aws/core/utils/memory/stl/AWSMap.h>
16#include <utility>
17#include <aws/core/utils/UUID.h>
18
19namespace Aws
20{
21namespace Macie2
22{
23namespace Model
24{
25
29 {
30 public:
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateClassificationJob"; }
38
39 AWS_MACIE2_API Aws::String SerializePayload() const override;
40
41
43
47 inline const Aws::Vector<Aws::String>& GetAllowListIds() const{ return m_allowListIds; }
48 inline bool AllowListIdsHasBeenSet() const { return m_allowListIdsHasBeenSet; }
49 inline void SetAllowListIds(const Aws::Vector<Aws::String>& value) { m_allowListIdsHasBeenSet = true; m_allowListIds = value; }
50 inline void SetAllowListIds(Aws::Vector<Aws::String>&& value) { m_allowListIdsHasBeenSet = true; m_allowListIds = std::move(value); }
53 inline CreateClassificationJobRequest& AddAllowListIds(const Aws::String& value) { m_allowListIdsHasBeenSet = true; m_allowListIds.push_back(value); return *this; }
54 inline CreateClassificationJobRequest& AddAllowListIds(Aws::String&& value) { m_allowListIdsHasBeenSet = true; m_allowListIds.push_back(std::move(value)); return *this; }
55 inline CreateClassificationJobRequest& AddAllowListIds(const char* value) { m_allowListIdsHasBeenSet = true; m_allowListIds.push_back(value); return *this; }
57
59
63 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
64 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
65 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
66 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
67 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
68 inline CreateClassificationJobRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
69 inline CreateClassificationJobRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
70 inline CreateClassificationJobRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
72
74
80 inline const Aws::Vector<Aws::String>& GetCustomDataIdentifierIds() const{ return m_customDataIdentifierIds; }
81 inline bool CustomDataIdentifierIdsHasBeenSet() const { return m_customDataIdentifierIdsHasBeenSet; }
82 inline void SetCustomDataIdentifierIds(const Aws::Vector<Aws::String>& value) { m_customDataIdentifierIdsHasBeenSet = true; m_customDataIdentifierIds = value; }
83 inline void SetCustomDataIdentifierIds(Aws::Vector<Aws::String>&& value) { m_customDataIdentifierIdsHasBeenSet = true; m_customDataIdentifierIds = std::move(value); }
86 inline CreateClassificationJobRequest& AddCustomDataIdentifierIds(const Aws::String& value) { m_customDataIdentifierIdsHasBeenSet = true; m_customDataIdentifierIds.push_back(value); return *this; }
87 inline CreateClassificationJobRequest& AddCustomDataIdentifierIds(Aws::String&& value) { m_customDataIdentifierIdsHasBeenSet = true; m_customDataIdentifierIds.push_back(std::move(value)); return *this; }
88 inline CreateClassificationJobRequest& AddCustomDataIdentifierIds(const char* value) { m_customDataIdentifierIdsHasBeenSet = true; m_customDataIdentifierIds.push_back(value); return *this; }
90
92
96 inline const Aws::String& GetDescription() const{ return m_description; }
97 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
98 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
99 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
100 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
101 inline CreateClassificationJobRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
102 inline CreateClassificationJobRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
103 inline CreateClassificationJobRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
105
107
114 inline bool GetInitialRun() const{ return m_initialRun; }
115 inline bool InitialRunHasBeenSet() const { return m_initialRunHasBeenSet; }
116 inline void SetInitialRun(bool value) { m_initialRunHasBeenSet = true; m_initialRun = value; }
117 inline CreateClassificationJobRequest& WithInitialRun(bool value) { SetInitialRun(value); return *this;}
119
121
128 inline const JobType& GetJobType() const{ return m_jobType; }
129 inline bool JobTypeHasBeenSet() const { return m_jobTypeHasBeenSet; }
130 inline void SetJobType(const JobType& value) { m_jobTypeHasBeenSet = true; m_jobType = value; }
131 inline void SetJobType(JobType&& value) { m_jobTypeHasBeenSet = true; m_jobType = std::move(value); }
132 inline CreateClassificationJobRequest& WithJobType(const JobType& value) { SetJobType(value); return *this;}
133 inline CreateClassificationJobRequest& WithJobType(JobType&& value) { SetJobType(std::move(value)); return *this;}
135
137
144 inline const Aws::Vector<Aws::String>& GetManagedDataIdentifierIds() const{ return m_managedDataIdentifierIds; }
145 inline bool ManagedDataIdentifierIdsHasBeenSet() const { return m_managedDataIdentifierIdsHasBeenSet; }
146 inline void SetManagedDataIdentifierIds(const Aws::Vector<Aws::String>& value) { m_managedDataIdentifierIdsHasBeenSet = true; m_managedDataIdentifierIds = value; }
147 inline void SetManagedDataIdentifierIds(Aws::Vector<Aws::String>&& value) { m_managedDataIdentifierIdsHasBeenSet = true; m_managedDataIdentifierIds = std::move(value); }
150 inline CreateClassificationJobRequest& AddManagedDataIdentifierIds(const Aws::String& value) { m_managedDataIdentifierIdsHasBeenSet = true; m_managedDataIdentifierIds.push_back(value); return *this; }
151 inline CreateClassificationJobRequest& AddManagedDataIdentifierIds(Aws::String&& value) { m_managedDataIdentifierIdsHasBeenSet = true; m_managedDataIdentifierIds.push_back(std::move(value)); return *this; }
152 inline CreateClassificationJobRequest& AddManagedDataIdentifierIds(const char* value) { m_managedDataIdentifierIdsHasBeenSet = true; m_managedDataIdentifierIds.push_back(value); return *this; }
154
156
183 inline const ManagedDataIdentifierSelector& GetManagedDataIdentifierSelector() const{ return m_managedDataIdentifierSelector; }
184 inline bool ManagedDataIdentifierSelectorHasBeenSet() const { return m_managedDataIdentifierSelectorHasBeenSet; }
185 inline void SetManagedDataIdentifierSelector(const ManagedDataIdentifierSelector& value) { m_managedDataIdentifierSelectorHasBeenSet = true; m_managedDataIdentifierSelector = value; }
186 inline void SetManagedDataIdentifierSelector(ManagedDataIdentifierSelector&& value) { m_managedDataIdentifierSelectorHasBeenSet = true; m_managedDataIdentifierSelector = std::move(value); }
190
192
196 inline const Aws::String& GetName() const{ return m_name; }
197 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
198 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
199 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
200 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
201 inline CreateClassificationJobRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
202 inline CreateClassificationJobRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
203 inline CreateClassificationJobRequest& WithName(const char* value) { SetName(value); return *this;}
205
207
211 inline const S3JobDefinition& GetS3JobDefinition() const{ return m_s3JobDefinition; }
212 inline bool S3JobDefinitionHasBeenSet() const { return m_s3JobDefinitionHasBeenSet; }
213 inline void SetS3JobDefinition(const S3JobDefinition& value) { m_s3JobDefinitionHasBeenSet = true; m_s3JobDefinition = value; }
214 inline void SetS3JobDefinition(S3JobDefinition&& value) { m_s3JobDefinitionHasBeenSet = true; m_s3JobDefinition = std::move(value); }
218
220
227 inline int GetSamplingPercentage() const{ return m_samplingPercentage; }
228 inline bool SamplingPercentageHasBeenSet() const { return m_samplingPercentageHasBeenSet; }
229 inline void SetSamplingPercentage(int value) { m_samplingPercentageHasBeenSet = true; m_samplingPercentage = value; }
232
234
239 inline const JobScheduleFrequency& GetScheduleFrequency() const{ return m_scheduleFrequency; }
240 inline bool ScheduleFrequencyHasBeenSet() const { return m_scheduleFrequencyHasBeenSet; }
241 inline void SetScheduleFrequency(const JobScheduleFrequency& value) { m_scheduleFrequencyHasBeenSet = true; m_scheduleFrequency = value; }
242 inline void SetScheduleFrequency(JobScheduleFrequency&& value) { m_scheduleFrequencyHasBeenSet = true; m_scheduleFrequency = std::move(value); }
246
248
254 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
255 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
256 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
257 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
259 inline CreateClassificationJobRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
260 inline CreateClassificationJobRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
261 inline CreateClassificationJobRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
262 inline CreateClassificationJobRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
263 inline CreateClassificationJobRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
264 inline CreateClassificationJobRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
265 inline CreateClassificationJobRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
266 inline CreateClassificationJobRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
268 private:
269
270 Aws::Vector<Aws::String> m_allowListIds;
271 bool m_allowListIdsHasBeenSet = false;
272
273 Aws::String m_clientToken;
274 bool m_clientTokenHasBeenSet = false;
275
276 Aws::Vector<Aws::String> m_customDataIdentifierIds;
277 bool m_customDataIdentifierIdsHasBeenSet = false;
278
279 Aws::String m_description;
280 bool m_descriptionHasBeenSet = false;
281
282 bool m_initialRun;
283 bool m_initialRunHasBeenSet = false;
284
285 JobType m_jobType;
286 bool m_jobTypeHasBeenSet = false;
287
288 Aws::Vector<Aws::String> m_managedDataIdentifierIds;
289 bool m_managedDataIdentifierIdsHasBeenSet = false;
290
291 ManagedDataIdentifierSelector m_managedDataIdentifierSelector;
292 bool m_managedDataIdentifierSelectorHasBeenSet = false;
293
294 Aws::String m_name;
295 bool m_nameHasBeenSet = false;
296
297 S3JobDefinition m_s3JobDefinition;
298 bool m_s3JobDefinitionHasBeenSet = false;
299
300 int m_samplingPercentage;
301 bool m_samplingPercentageHasBeenSet = false;
302
303 JobScheduleFrequency m_scheduleFrequency;
304 bool m_scheduleFrequencyHasBeenSet = false;
305
307 bool m_tagsHasBeenSet = false;
308 };
309
310} // namespace Model
311} // namespace Macie2
312} // namespace Aws
CreateClassificationJobRequest & AddManagedDataIdentifierIds(Aws::String &&value)
CreateClassificationJobRequest & AddCustomDataIdentifierIds(const char *value)
CreateClassificationJobRequest & WithManagedDataIdentifierIds(Aws::Vector< Aws::String > &&value)
CreateClassificationJobRequest & AddManagedDataIdentifierIds(const char *value)
CreateClassificationJobRequest & AddManagedDataIdentifierIds(const Aws::String &value)
CreateClassificationJobRequest & WithManagedDataIdentifierIds(const Aws::Vector< Aws::String > &value)
CreateClassificationJobRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateClassificationJobRequest & WithClientToken(Aws::String &&value)
CreateClassificationJobRequest & WithScheduleFrequency(JobScheduleFrequency &&value)
const Aws::Vector< Aws::String > & GetManagedDataIdentifierIds() const
CreateClassificationJobRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateClassificationJobRequest & AddTags(Aws::String &&key, const char *value)
void SetManagedDataIdentifierIds(const Aws::Vector< Aws::String > &value)
CreateClassificationJobRequest & WithJobType(const JobType &value)
CreateClassificationJobRequest & WithS3JobDefinition(S3JobDefinition &&value)
CreateClassificationJobRequest & AddCustomDataIdentifierIds(const Aws::String &value)
CreateClassificationJobRequest & WithDescription(const Aws::String &value)
const Aws::Vector< Aws::String > & GetCustomDataIdentifierIds() const
CreateClassificationJobRequest & WithInitialRun(bool value)
CreateClassificationJobRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateClassificationJobRequest & WithJobType(JobType &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateClassificationJobRequest & WithAllowListIds(Aws::Vector< Aws::String > &&value)
CreateClassificationJobRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateClassificationJobRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateClassificationJobRequest & AddTags(const char *key, const char *value)
CreateClassificationJobRequest & WithClientToken(const Aws::String &value)
CreateClassificationJobRequest & WithName(Aws::String &&value)
CreateClassificationJobRequest & WithScheduleFrequency(const JobScheduleFrequency &value)
const ManagedDataIdentifierSelector & GetManagedDataIdentifierSelector() const
CreateClassificationJobRequest & WithSamplingPercentage(int value)
const Aws::Vector< Aws::String > & GetAllowListIds() const
CreateClassificationJobRequest & WithAllowListIds(const Aws::Vector< Aws::String > &value)
void SetManagedDataIdentifierSelector(const ManagedDataIdentifierSelector &value)
void SetManagedDataIdentifierSelector(ManagedDataIdentifierSelector &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateClassificationJobRequest & WithName(const Aws::String &value)
void SetCustomDataIdentifierIds(Aws::Vector< Aws::String > &&value)
CreateClassificationJobRequest & WithClientToken(const char *value)
void SetCustomDataIdentifierIds(const Aws::Vector< Aws::String > &value)
CreateClassificationJobRequest & WithCustomDataIdentifierIds(const Aws::Vector< Aws::String > &value)
AWS_MACIE2_API Aws::String SerializePayload() const override
CreateClassificationJobRequest & AddAllowListIds(Aws::String &&value)
CreateClassificationJobRequest & WithManagedDataIdentifierSelector(ManagedDataIdentifierSelector &&value)
CreateClassificationJobRequest & WithDescription(const char *value)
CreateClassificationJobRequest & WithDescription(Aws::String &&value)
CreateClassificationJobRequest & WithCustomDataIdentifierIds(Aws::Vector< Aws::String > &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetManagedDataIdentifierIds(Aws::Vector< Aws::String > &&value)
CreateClassificationJobRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateClassificationJobRequest & WithManagedDataIdentifierSelector(const ManagedDataIdentifierSelector &value)
CreateClassificationJobRequest & AddCustomDataIdentifierIds(Aws::String &&value)
CreateClassificationJobRequest & WithName(const char *value)
CreateClassificationJobRequest & AddAllowListIds(const char *value)
CreateClassificationJobRequest & AddAllowListIds(const Aws::String &value)
void SetAllowListIds(const Aws::Vector< Aws::String > &value)
CreateClassificationJobRequest & WithS3JobDefinition(const S3JobDefinition &value)
CreateClassificationJobRequest & AddTags(const char *key, Aws::String &&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