AWS SDK for C++  1.9.106
AWS SDK for C++
CreateThreatIntelSetRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 #include <aws/core/utils/UUID.h>
14 
15 namespace Aws
16 {
17 namespace GuardDuty
18 {
19 namespace Model
20 {
21 
25  {
26  public:
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 "CreateThreatIntelSet"; }
34 
35  Aws::String SerializePayload() const override;
36 
37 
42  inline const Aws::String& GetDetectorId() const{ return m_detectorId; }
43 
48  inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
49 
54  inline void SetDetectorId(const Aws::String& value) { m_detectorIdHasBeenSet = true; m_detectorId = value; }
55 
60  inline void SetDetectorId(Aws::String&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::move(value); }
61 
66  inline void SetDetectorId(const char* value) { m_detectorIdHasBeenSet = true; m_detectorId.assign(value); }
67 
72  inline CreateThreatIntelSetRequest& WithDetectorId(const Aws::String& value) { SetDetectorId(value); return *this;}
73 
78  inline CreateThreatIntelSetRequest& WithDetectorId(Aws::String&& value) { SetDetectorId(std::move(value)); return *this;}
79 
84  inline CreateThreatIntelSetRequest& WithDetectorId(const char* value) { SetDetectorId(value); return *this;}
85 
86 
92  inline const Aws::String& GetName() const{ return m_name; }
93 
99  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
100 
106  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
107 
113  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
114 
120  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
121 
127  inline CreateThreatIntelSetRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
128 
134  inline CreateThreatIntelSetRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
135 
141  inline CreateThreatIntelSetRequest& WithName(const char* value) { SetName(value); return *this;}
142 
143 
147  inline const ThreatIntelSetFormat& GetFormat() const{ return m_format; }
148 
152  inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
153 
157  inline void SetFormat(const ThreatIntelSetFormat& value) { m_formatHasBeenSet = true; m_format = value; }
158 
162  inline void SetFormat(ThreatIntelSetFormat&& value) { m_formatHasBeenSet = true; m_format = std::move(value); }
163 
167  inline CreateThreatIntelSetRequest& WithFormat(const ThreatIntelSetFormat& value) { SetFormat(value); return *this;}
168 
172  inline CreateThreatIntelSetRequest& WithFormat(ThreatIntelSetFormat&& value) { SetFormat(std::move(value)); return *this;}
173 
174 
179  inline const Aws::String& GetLocation() const{ return m_location; }
180 
185  inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
186 
191  inline void SetLocation(const Aws::String& value) { m_locationHasBeenSet = true; m_location = value; }
192 
197  inline void SetLocation(Aws::String&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
198 
203  inline void SetLocation(const char* value) { m_locationHasBeenSet = true; m_location.assign(value); }
204 
209  inline CreateThreatIntelSetRequest& WithLocation(const Aws::String& value) { SetLocation(value); return *this;}
210 
215  inline CreateThreatIntelSetRequest& WithLocation(Aws::String&& value) { SetLocation(std::move(value)); return *this;}
216 
221  inline CreateThreatIntelSetRequest& WithLocation(const char* value) { SetLocation(value); return *this;}
222 
223 
228  inline bool GetActivate() const{ return m_activate; }
229 
234  inline bool ActivateHasBeenSet() const { return m_activateHasBeenSet; }
235 
240  inline void SetActivate(bool value) { m_activateHasBeenSet = true; m_activate = value; }
241 
246  inline CreateThreatIntelSetRequest& WithActivate(bool value) { SetActivate(value); return *this;}
247 
248 
252  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
253 
257  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
258 
262  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
263 
267  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
268 
272  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
273 
277  inline CreateThreatIntelSetRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
278 
282  inline CreateThreatIntelSetRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
283 
287  inline CreateThreatIntelSetRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
288 
289 
293  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
294 
298  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
299 
303  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
304 
308  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
309 
313  inline CreateThreatIntelSetRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
314 
318  inline CreateThreatIntelSetRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
319 
323  inline CreateThreatIntelSetRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
324 
328  inline CreateThreatIntelSetRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
329 
333  inline CreateThreatIntelSetRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
334 
338  inline CreateThreatIntelSetRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
339 
343  inline CreateThreatIntelSetRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
344 
348  inline CreateThreatIntelSetRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
349 
353  inline CreateThreatIntelSetRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
354 
355  private:
356 
357  Aws::String m_detectorId;
358  bool m_detectorIdHasBeenSet;
359 
360  Aws::String m_name;
361  bool m_nameHasBeenSet;
362 
363  ThreatIntelSetFormat m_format;
364  bool m_formatHasBeenSet;
365 
366  Aws::String m_location;
367  bool m_locationHasBeenSet;
368 
369  bool m_activate;
370  bool m_activateHasBeenSet;
371 
372  Aws::String m_clientToken;
373  bool m_clientTokenHasBeenSet;
374 
376  bool m_tagsHasBeenSet;
377  };
378 
379 } // namespace Model
380 } // namespace GuardDuty
381 } // namespace Aws
Aws::GuardDuty::Model::CreateThreatIntelSetRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateThreatIntelSetRequest.h:113
Aws::GuardDuty::Model::CreateThreatIntelSetRequest::SetLocation
void SetLocation(Aws::String &&value)
Definition: CreateThreatIntelSetRequest.h:197
Aws::GuardDuty::Model::CreateThreatIntelSetRequest::WithLocation
CreateThreatIntelSetRequest & WithLocation(const char *value)
Definition: CreateThreatIntelSetRequest.h:221
Aws::GuardDuty::Model::CreateThreatIntelSetRequest::WithDetectorId
CreateThreatIntelSetRequest & WithDetectorId(const Aws::String &value)
Definition: CreateThreatIntelSetRequest.h:72
Aws::GuardDuty::Model::CreateThreatIntelSetRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: CreateThreatIntelSetRequest.h:257
Aws::GuardDuty::Model::CreateThreatIntelSetRequest::SetClientToken
void SetClientToken(const char *value)
Definition: CreateThreatIntelSetRequest.h:272
Aws::GuardDuty::Model::CreateThreatIntelSetRequest::AddTags
CreateThreatIntelSetRequest & AddTags(const char *key, const char *value)
Definition: CreateThreatIntelSetRequest.h:353
Aws::GuardDuty::Model::CreateThreatIntelSetRequest::SetDetectorId
void SetDetectorId(const Aws::String &value)
Definition: CreateThreatIntelSetRequest.h:54
Aws::GuardDuty::Model::CreateThreatIntelSetRequest::SetLocation
void SetLocation(const char *value)
Definition: CreateThreatIntelSetRequest.h:203
Aws::GuardDuty::Model::CreateThreatIntelSetRequest::GetTags
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition: CreateThreatIntelSetRequest.h:293
Aws::GuardDuty::Model::CreateThreatIntelSetRequest::WithLocation
CreateThreatIntelSetRequest & WithLocation(const Aws::String &value)
Definition: CreateThreatIntelSetRequest.h:209
Aws::GuardDuty::Model::ThreatIntelSetFormat
ThreatIntelSetFormat
Definition: ThreatIntelSetFormat.h:17
Aws::GuardDuty::Model::CreateThreatIntelSetRequest::SetDetectorId
void SetDetectorId(Aws::String &&value)
Definition: CreateThreatIntelSetRequest.h:60
Aws::GuardDuty::Model::CreateThreatIntelSetRequest::WithName
CreateThreatIntelSetRequest & WithName(const char *value)
Definition: CreateThreatIntelSetRequest.h:141
Aws::GuardDuty::Model::CreateThreatIntelSetRequest::FormatHasBeenSet
bool FormatHasBeenSet() const
Definition: CreateThreatIntelSetRequest.h:152
Aws::GuardDuty::Model::CreateThreatIntelSetRequest::WithClientToken
CreateThreatIntelSetRequest & WithClientToken(const char *value)
Definition: CreateThreatIntelSetRequest.h:287
Aws::GuardDuty::Model::CreateThreatIntelSetRequest::AddTags
CreateThreatIntelSetRequest & AddTags(const char *key, Aws::String &&value)
Definition: CreateThreatIntelSetRequest.h:343
Aws::GuardDuty::Model::CreateThreatIntelSetRequest::WithDetectorId
CreateThreatIntelSetRequest & WithDetectorId(const char *value)
Definition: CreateThreatIntelSetRequest.h:84
Aws::GuardDuty::Model::CreateThreatIntelSetRequest::WithName
CreateThreatIntelSetRequest & WithName(Aws::String &&value)
Definition: CreateThreatIntelSetRequest.h:134
Aws::GuardDuty::Model::CreateThreatIntelSetRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: CreateThreatIntelSetRequest.h:252
Aws::GuardDuty::Model::CreateThreatIntelSetRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: CreateThreatIntelSetRequest.h:267
Aws::GuardDuty::Model::CreateThreatIntelSetRequest::WithLocation
CreateThreatIntelSetRequest & WithLocation(Aws::String &&value)
Definition: CreateThreatIntelSetRequest.h:215
Aws::GuardDuty::Model::CreateThreatIntelSetRequest::WithActivate
CreateThreatIntelSetRequest & WithActivate(bool value)
Definition: CreateThreatIntelSetRequest.h:246
Aws::GuardDuty::Model::CreateThreatIntelSetRequest::WithFormat
CreateThreatIntelSetRequest & WithFormat(ThreatIntelSetFormat &&value)
Definition: CreateThreatIntelSetRequest.h:172
GuardDuty_EXPORTS.h
Aws::GuardDuty::Model::CreateThreatIntelSetRequest::WithDetectorId
CreateThreatIntelSetRequest & WithDetectorId(Aws::String &&value)
Definition: CreateThreatIntelSetRequest.h:78
Aws::GuardDuty::Model::CreateThreatIntelSetRequest::LocationHasBeenSet
bool LocationHasBeenSet() const
Definition: CreateThreatIntelSetRequest.h:185
Aws::GuardDuty::Model::CreateThreatIntelSetRequest::SetLocation
void SetLocation(const Aws::String &value)
Definition: CreateThreatIntelSetRequest.h:191
Aws::GuardDuty::Model::CreateThreatIntelSetRequest::WithClientToken
CreateThreatIntelSetRequest & WithClientToken(Aws::String &&value)
Definition: CreateThreatIntelSetRequest.h:282
Aws::GuardDuty::Model::CreateThreatIntelSetRequest::SetTags
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateThreatIntelSetRequest.h:303
Aws::GuardDuty::Model::CreateThreatIntelSetRequest::AddTags
CreateThreatIntelSetRequest & AddTags(Aws::String &&key, const Aws::String &value)
Definition: CreateThreatIntelSetRequest.h:328
AWS_GUARDDUTY_API
#define AWS_GUARDDUTY_API
Definition: GuardDuty_EXPORTS.h:28
Aws::GuardDuty::Model::CreateThreatIntelSetRequest::WithFormat
CreateThreatIntelSetRequest & WithFormat(const ThreatIntelSetFormat &value)
Definition: CreateThreatIntelSetRequest.h:167
Aws::GuardDuty::Model::CreateThreatIntelSetRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::GuardDuty::Model::CreateThreatIntelSetRequest::SetFormat
void SetFormat(ThreatIntelSetFormat &&value)
Definition: CreateThreatIntelSetRequest.h:162
Aws::GuardDuty::Model::CreateThreatIntelSetRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateThreatIntelSetRequest.h:99
Aws::GuardDuty::Model::CreateThreatIntelSetRequest::GetDetectorId
const Aws::String & GetDetectorId() const
Definition: CreateThreatIntelSetRequest.h:42
Aws::GuardDuty::Model::CreateThreatIntelSetRequest::SetDetectorId
void SetDetectorId(const char *value)
Definition: CreateThreatIntelSetRequest.h:66
Aws::GuardDuty::Model::CreateThreatIntelSetRequest::AddTags
CreateThreatIntelSetRequest & AddTags(Aws::String &&key, const char *value)
Definition: CreateThreatIntelSetRequest.h:348
AWSString.h
Aws::GuardDuty::Model::CreateThreatIntelSetRequest::GetLocation
const Aws::String & GetLocation() const
Definition: CreateThreatIntelSetRequest.h:179
ThreatIntelSetFormat.h
Aws::GuardDuty::Model::CreateThreatIntelSetRequest::GetActivate
bool GetActivate() const
Definition: CreateThreatIntelSetRequest.h:228
Aws::GuardDuty::Model::CreateThreatIntelSetRequest::WithTags
CreateThreatIntelSetRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateThreatIntelSetRequest.h:318
Aws::GuardDuty::Model::CreateThreatIntelSetRequest::WithTags
CreateThreatIntelSetRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateThreatIntelSetRequest.h:313
Aws::GuardDuty::Model::CreateThreatIntelSetRequest::SetName
void SetName(const char *value)
Definition: CreateThreatIntelSetRequest.h:120
Aws::GuardDuty::Model::CreateThreatIntelSetRequest::AddTags
CreateThreatIntelSetRequest & AddTags(Aws::String &&key, Aws::String &&value)
Definition: CreateThreatIntelSetRequest.h:338
Aws::GuardDuty::Model::CreateThreatIntelSetRequest::GetFormat
const ThreatIntelSetFormat & GetFormat() const
Definition: CreateThreatIntelSetRequest.h:147
Aws::GuardDuty::Model::CreateThreatIntelSetRequest
Definition: CreateThreatIntelSetRequest.h:25
Aws::GuardDuty::Model::CreateThreatIntelSetRequest::SetActivate
void SetActivate(bool value)
Definition: CreateThreatIntelSetRequest.h:240
Aws::GuardDuty::Model::CreateThreatIntelSetRequest::AddTags
CreateThreatIntelSetRequest & AddTags(const Aws::String &key, Aws::String &&value)
Definition: CreateThreatIntelSetRequest.h:333
Aws
Definition: AccessManagementClient.h:15
Aws::GuardDuty::Model::CreateThreatIntelSetRequest::CreateThreatIntelSetRequest
CreateThreatIntelSetRequest()
Aws::GuardDuty::Model::CreateThreatIntelSetRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateThreatIntelSetRequest.h:298
GuardDutyRequest.h
Aws::GuardDuty::Model::CreateThreatIntelSetRequest::ActivateHasBeenSet
bool ActivateHasBeenSet() const
Definition: CreateThreatIntelSetRequest.h:234
Aws::GuardDuty::Model::CreateThreatIntelSetRequest::GetName
const Aws::String & GetName() const
Definition: CreateThreatIntelSetRequest.h:92
Aws::GuardDuty::Model::CreateThreatIntelSetRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateThreatIntelSetRequest.h:106
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GuardDuty::GuardDutyRequest
Definition: GuardDutyRequest.h:17
Aws::GuardDuty::Model::CreateThreatIntelSetRequest::AddTags
CreateThreatIntelSetRequest & AddTags(const Aws::String &key, const Aws::String &value)
Definition: CreateThreatIntelSetRequest.h:323
Aws::GuardDuty::Model::CreateThreatIntelSetRequest::DetectorIdHasBeenSet
bool DetectorIdHasBeenSet() const
Definition: CreateThreatIntelSetRequest.h:48
UUID.h
AWSMap.h
Aws::GuardDuty::Model::CreateThreatIntelSetRequest::WithName
CreateThreatIntelSetRequest & WithName(const Aws::String &value)
Definition: CreateThreatIntelSetRequest.h:127
Aws::GuardDuty::Model::CreateThreatIntelSetRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateThreatIntelSetRequest.h:33
Aws::GuardDuty::Model::CreateThreatIntelSetRequest::SetTags
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateThreatIntelSetRequest.h:308
Aws::GuardDuty::Model::CreateThreatIntelSetRequest::SetFormat
void SetFormat(const ThreatIntelSetFormat &value)
Definition: CreateThreatIntelSetRequest.h:157
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::GuardDuty::Model::CreateThreatIntelSetRequest::WithClientToken
CreateThreatIntelSetRequest & WithClientToken(const Aws::String &value)
Definition: CreateThreatIntelSetRequest.h:277
Aws::GuardDuty::Model::CreateThreatIntelSetRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: CreateThreatIntelSetRequest.h:262