AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
31 AWS_MACIE2_API CreateClassificationJobRequest() = default;
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 template<typename AllowListIdsT = Aws::Vector<Aws::String>>
50 void SetAllowListIds(AllowListIdsT&& value) { m_allowListIdsHasBeenSet = true; m_allowListIds = std::forward<AllowListIdsT>(value); }
51 template<typename AllowListIdsT = Aws::Vector<Aws::String>>
52 CreateClassificationJobRequest& WithAllowListIds(AllowListIdsT&& value) { SetAllowListIds(std::forward<AllowListIdsT>(value)); return *this;}
53 template<typename AllowListIdsT = Aws::String>
54 CreateClassificationJobRequest& AddAllowListIds(AllowListIdsT&& value) { m_allowListIdsHasBeenSet = true; m_allowListIds.emplace_back(std::forward<AllowListIdsT>(value)); return *this; }
56
58
62 inline const Aws::String& GetClientToken() const { return m_clientToken; }
63 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
64 template<typename ClientTokenT = Aws::String>
65 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
66 template<typename ClientTokenT = Aws::String>
67 CreateClassificationJobRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
69
71
77 inline const Aws::Vector<Aws::String>& GetCustomDataIdentifierIds() const { return m_customDataIdentifierIds; }
78 inline bool CustomDataIdentifierIdsHasBeenSet() const { return m_customDataIdentifierIdsHasBeenSet; }
79 template<typename CustomDataIdentifierIdsT = Aws::Vector<Aws::String>>
80 void SetCustomDataIdentifierIds(CustomDataIdentifierIdsT&& value) { m_customDataIdentifierIdsHasBeenSet = true; m_customDataIdentifierIds = std::forward<CustomDataIdentifierIdsT>(value); }
81 template<typename CustomDataIdentifierIdsT = Aws::Vector<Aws::String>>
82 CreateClassificationJobRequest& WithCustomDataIdentifierIds(CustomDataIdentifierIdsT&& value) { SetCustomDataIdentifierIds(std::forward<CustomDataIdentifierIdsT>(value)); return *this;}
83 template<typename CustomDataIdentifierIdsT = Aws::String>
84 CreateClassificationJobRequest& AddCustomDataIdentifierIds(CustomDataIdentifierIdsT&& value) { m_customDataIdentifierIdsHasBeenSet = true; m_customDataIdentifierIds.emplace_back(std::forward<CustomDataIdentifierIdsT>(value)); return *this; }
86
88
92 inline const Aws::String& GetDescription() const { return m_description; }
93 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
94 template<typename DescriptionT = Aws::String>
95 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
96 template<typename DescriptionT = Aws::String>
97 CreateClassificationJobRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
99
101
108 inline bool GetInitialRun() const { return m_initialRun; }
109 inline bool InitialRunHasBeenSet() const { return m_initialRunHasBeenSet; }
110 inline void SetInitialRun(bool value) { m_initialRunHasBeenSet = true; m_initialRun = value; }
111 inline CreateClassificationJobRequest& WithInitialRun(bool value) { SetInitialRun(value); return *this;}
113
115
122 inline JobType GetJobType() const { return m_jobType; }
123 inline bool JobTypeHasBeenSet() const { return m_jobTypeHasBeenSet; }
124 inline void SetJobType(JobType value) { m_jobTypeHasBeenSet = true; m_jobType = value; }
125 inline CreateClassificationJobRequest& WithJobType(JobType value) { SetJobType(value); return *this;}
127
129
136 inline const Aws::Vector<Aws::String>& GetManagedDataIdentifierIds() const { return m_managedDataIdentifierIds; }
137 inline bool ManagedDataIdentifierIdsHasBeenSet() const { return m_managedDataIdentifierIdsHasBeenSet; }
138 template<typename ManagedDataIdentifierIdsT = Aws::Vector<Aws::String>>
139 void SetManagedDataIdentifierIds(ManagedDataIdentifierIdsT&& value) { m_managedDataIdentifierIdsHasBeenSet = true; m_managedDataIdentifierIds = std::forward<ManagedDataIdentifierIdsT>(value); }
140 template<typename ManagedDataIdentifierIdsT = Aws::Vector<Aws::String>>
141 CreateClassificationJobRequest& WithManagedDataIdentifierIds(ManagedDataIdentifierIdsT&& value) { SetManagedDataIdentifierIds(std::forward<ManagedDataIdentifierIdsT>(value)); return *this;}
142 template<typename ManagedDataIdentifierIdsT = Aws::String>
143 CreateClassificationJobRequest& AddManagedDataIdentifierIds(ManagedDataIdentifierIdsT&& value) { m_managedDataIdentifierIdsHasBeenSet = true; m_managedDataIdentifierIds.emplace_back(std::forward<ManagedDataIdentifierIdsT>(value)); return *this; }
145
147
174 inline ManagedDataIdentifierSelector GetManagedDataIdentifierSelector() const { return m_managedDataIdentifierSelector; }
175 inline bool ManagedDataIdentifierSelectorHasBeenSet() const { return m_managedDataIdentifierSelectorHasBeenSet; }
176 inline void SetManagedDataIdentifierSelector(ManagedDataIdentifierSelector value) { m_managedDataIdentifierSelectorHasBeenSet = true; m_managedDataIdentifierSelector = value; }
179
181
185 inline const Aws::String& GetName() const { return m_name; }
186 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
187 template<typename NameT = Aws::String>
188 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
189 template<typename NameT = Aws::String>
190 CreateClassificationJobRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
192
194
198 inline const S3JobDefinition& GetS3JobDefinition() const { return m_s3JobDefinition; }
199 inline bool S3JobDefinitionHasBeenSet() const { return m_s3JobDefinitionHasBeenSet; }
200 template<typename S3JobDefinitionT = S3JobDefinition>
201 void SetS3JobDefinition(S3JobDefinitionT&& value) { m_s3JobDefinitionHasBeenSet = true; m_s3JobDefinition = std::forward<S3JobDefinitionT>(value); }
202 template<typename S3JobDefinitionT = S3JobDefinition>
203 CreateClassificationJobRequest& WithS3JobDefinition(S3JobDefinitionT&& value) { SetS3JobDefinition(std::forward<S3JobDefinitionT>(value)); return *this;}
205
207
214 inline int GetSamplingPercentage() const { return m_samplingPercentage; }
215 inline bool SamplingPercentageHasBeenSet() const { return m_samplingPercentageHasBeenSet; }
216 inline void SetSamplingPercentage(int value) { m_samplingPercentageHasBeenSet = true; m_samplingPercentage = value; }
219
221
226 inline const JobScheduleFrequency& GetScheduleFrequency() const { return m_scheduleFrequency; }
227 inline bool ScheduleFrequencyHasBeenSet() const { return m_scheduleFrequencyHasBeenSet; }
228 template<typename ScheduleFrequencyT = JobScheduleFrequency>
229 void SetScheduleFrequency(ScheduleFrequencyT&& value) { m_scheduleFrequencyHasBeenSet = true; m_scheduleFrequency = std::forward<ScheduleFrequencyT>(value); }
230 template<typename ScheduleFrequencyT = JobScheduleFrequency>
231 CreateClassificationJobRequest& WithScheduleFrequency(ScheduleFrequencyT&& value) { SetScheduleFrequency(std::forward<ScheduleFrequencyT>(value)); return *this;}
233
235
241 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
242 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
243 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
244 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
245 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
246 CreateClassificationJobRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
247 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
248 CreateClassificationJobRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
249 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
250 }
252 private:
253
254 Aws::Vector<Aws::String> m_allowListIds;
255 bool m_allowListIdsHasBeenSet = false;
256
258 bool m_clientTokenHasBeenSet = true;
259
260 Aws::Vector<Aws::String> m_customDataIdentifierIds;
261 bool m_customDataIdentifierIdsHasBeenSet = false;
262
263 Aws::String m_description;
264 bool m_descriptionHasBeenSet = false;
265
266 bool m_initialRun{false};
267 bool m_initialRunHasBeenSet = false;
268
269 JobType m_jobType{JobType::NOT_SET};
270 bool m_jobTypeHasBeenSet = false;
271
272 Aws::Vector<Aws::String> m_managedDataIdentifierIds;
273 bool m_managedDataIdentifierIdsHasBeenSet = false;
274
276 bool m_managedDataIdentifierSelectorHasBeenSet = false;
277
278 Aws::String m_name;
279 bool m_nameHasBeenSet = false;
280
281 S3JobDefinition m_s3JobDefinition;
282 bool m_s3JobDefinitionHasBeenSet = false;
283
284 int m_samplingPercentage{0};
285 bool m_samplingPercentageHasBeenSet = false;
286
287 JobScheduleFrequency m_scheduleFrequency;
288 bool m_scheduleFrequencyHasBeenSet = false;
289
291 bool m_tagsHasBeenSet = false;
292 };
293
294} // namespace Model
295} // namespace Macie2
296} // 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