AWS SDK for C++  1.8.128
AWS SDK for C++
CreateIPSetRequest.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 "CreateIPSet"; }
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 CreateIPSetRequest& WithDetectorId(const Aws::String& value) { SetDetectorId(value); return *this;}
73 
78  inline CreateIPSetRequest& WithDetectorId(Aws::String&& value) { SetDetectorId(std::move(value)); return *this;}
79 
84  inline CreateIPSetRequest& WithDetectorId(const char* value) { SetDetectorId(value); return *this;}
85 
86 
91  inline const Aws::String& GetName() const{ return m_name; }
92 
97  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
98 
103  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
104 
109  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
110 
115  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
116 
121  inline CreateIPSetRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
122 
127  inline CreateIPSetRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
128 
133  inline CreateIPSetRequest& WithName(const char* value) { SetName(value); return *this;}
134 
135 
139  inline const IpSetFormat& GetFormat() const{ return m_format; }
140 
144  inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
145 
149  inline void SetFormat(const IpSetFormat& value) { m_formatHasBeenSet = true; m_format = value; }
150 
154  inline void SetFormat(IpSetFormat&& value) { m_formatHasBeenSet = true; m_format = std::move(value); }
155 
159  inline CreateIPSetRequest& WithFormat(const IpSetFormat& value) { SetFormat(value); return *this;}
160 
164  inline CreateIPSetRequest& WithFormat(IpSetFormat&& value) { SetFormat(std::move(value)); return *this;}
165 
166 
171  inline const Aws::String& GetLocation() const{ return m_location; }
172 
177  inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
178 
183  inline void SetLocation(const Aws::String& value) { m_locationHasBeenSet = true; m_location = value; }
184 
189  inline void SetLocation(Aws::String&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
190 
195  inline void SetLocation(const char* value) { m_locationHasBeenSet = true; m_location.assign(value); }
196 
201  inline CreateIPSetRequest& WithLocation(const Aws::String& value) { SetLocation(value); return *this;}
202 
207  inline CreateIPSetRequest& WithLocation(Aws::String&& value) { SetLocation(std::move(value)); return *this;}
208 
213  inline CreateIPSetRequest& WithLocation(const char* value) { SetLocation(value); return *this;}
214 
215 
220  inline bool GetActivate() const{ return m_activate; }
221 
226  inline bool ActivateHasBeenSet() const { return m_activateHasBeenSet; }
227 
232  inline void SetActivate(bool value) { m_activateHasBeenSet = true; m_activate = value; }
233 
238  inline CreateIPSetRequest& WithActivate(bool value) { SetActivate(value); return *this;}
239 
240 
244  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
245 
249  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
250 
254  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
255 
259  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
260 
264  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
265 
269  inline CreateIPSetRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
270 
274  inline CreateIPSetRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
275 
279  inline CreateIPSetRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
280 
281 
285  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
286 
290  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
291 
295  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
296 
300  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
301 
305  inline CreateIPSetRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
306 
310  inline CreateIPSetRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
311 
315  inline CreateIPSetRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
316 
320  inline CreateIPSetRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
321 
325  inline CreateIPSetRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
326 
330  inline CreateIPSetRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
331 
335  inline CreateIPSetRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
336 
340  inline CreateIPSetRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
341 
345  inline CreateIPSetRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
346 
347  private:
348 
349  Aws::String m_detectorId;
350  bool m_detectorIdHasBeenSet;
351 
352  Aws::String m_name;
353  bool m_nameHasBeenSet;
354 
355  IpSetFormat m_format;
356  bool m_formatHasBeenSet;
357 
358  Aws::String m_location;
359  bool m_locationHasBeenSet;
360 
361  bool m_activate;
362  bool m_activateHasBeenSet;
363 
364  Aws::String m_clientToken;
365  bool m_clientTokenHasBeenSet;
366 
368  bool m_tagsHasBeenSet;
369  };
370 
371 } // namespace Model
372 } // namespace GuardDuty
373 } // namespace Aws
Aws::GuardDuty::Model::CreateIPSetRequest::WithName
CreateIPSetRequest & WithName(const Aws::String &value)
Definition: CreateIPSetRequest.h:121
Aws::GuardDuty::Model::CreateIPSetRequest::WithLocation
CreateIPSetRequest & WithLocation(const char *value)
Definition: CreateIPSetRequest.h:213
Aws::GuardDuty::Model::CreateIPSetRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: CreateIPSetRequest.h:259
Aws::GuardDuty::Model::CreateIPSetRequest::SetName
void SetName(const char *value)
Definition: CreateIPSetRequest.h:115
Aws::GuardDuty::Model::CreateIPSetRequest::SetDetectorId
void SetDetectorId(const char *value)
Definition: CreateIPSetRequest.h:66
Aws::GuardDuty::Model::CreateIPSetRequest::WithTags
CreateIPSetRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateIPSetRequest.h:305
Aws::GuardDuty::Model::CreateIPSetRequest::GetTags
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition: CreateIPSetRequest.h:285
Aws::GuardDuty::Model::CreateIPSetRequest::DetectorIdHasBeenSet
bool DetectorIdHasBeenSet() const
Definition: CreateIPSetRequest.h:48
Aws::GuardDuty::Model::CreateIPSetRequest::AddTags
CreateIPSetRequest & AddTags(const char *key, const char *value)
Definition: CreateIPSetRequest.h:345
Aws::GuardDuty::Model::CreateIPSetRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: CreateIPSetRequest.h:254
Aws::GuardDuty::Model::CreateIPSetRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateIPSetRequest.h:290
Aws::GuardDuty::Model::CreateIPSetRequest::AddTags
CreateIPSetRequest & AddTags(const Aws::String &key, const Aws::String &value)
Definition: CreateIPSetRequest.h:315
Aws::GuardDuty::Model::CreateIPSetRequest::WithClientToken
CreateIPSetRequest & WithClientToken(const char *value)
Definition: CreateIPSetRequest.h:279
Aws::GuardDuty::Model::CreateIPSetRequest::WithDetectorId
CreateIPSetRequest & WithDetectorId(const Aws::String &value)
Definition: CreateIPSetRequest.h:72
Aws::GuardDuty::Model::CreateIPSetRequest::WithActivate
CreateIPSetRequest & WithActivate(bool value)
Definition: CreateIPSetRequest.h:238
Aws::GuardDuty::Model::CreateIPSetRequest::SetFormat
void SetFormat(const IpSetFormat &value)
Definition: CreateIPSetRequest.h:149
Aws::GuardDuty::Model::CreateIPSetRequest::SetDetectorId
void SetDetectorId(Aws::String &&value)
Definition: CreateIPSetRequest.h:60
Aws::GuardDuty::Model::CreateIPSetRequest::WithClientToken
CreateIPSetRequest & WithClientToken(const Aws::String &value)
Definition: CreateIPSetRequest.h:269
Aws::GuardDuty::Model::CreateIPSetRequest::AddTags
CreateIPSetRequest & AddTags(Aws::String &&key, const char *value)
Definition: CreateIPSetRequest.h:340
Aws::GuardDuty::Model::CreateIPSetRequest::WithFormat
CreateIPSetRequest & WithFormat(const IpSetFormat &value)
Definition: CreateIPSetRequest.h:159
Aws::GuardDuty::Model::CreateIPSetRequest::SetClientToken
void SetClientToken(const char *value)
Definition: CreateIPSetRequest.h:264
Aws::GuardDuty::Model::CreateIPSetRequest::GetActivate
bool GetActivate() const
Definition: CreateIPSetRequest.h:220
Aws::GuardDuty::Model::IpSetFormat
IpSetFormat
Definition: IpSetFormat.h:17
Aws::GuardDuty::Model::CreateIPSetRequest::SetLocation
void SetLocation(Aws::String &&value)
Definition: CreateIPSetRequest.h:189
Aws::GuardDuty::Model::CreateIPSetRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::GuardDuty::Model::CreateIPSetRequest::WithDetectorId
CreateIPSetRequest & WithDetectorId(Aws::String &&value)
Definition: CreateIPSetRequest.h:78
Aws::GuardDuty::Model::CreateIPSetRequest::AddTags
CreateIPSetRequest & AddTags(const char *key, Aws::String &&value)
Definition: CreateIPSetRequest.h:335
GuardDuty_EXPORTS.h
Aws::GuardDuty::Model::CreateIPSetRequest::WithTags
CreateIPSetRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateIPSetRequest.h:310
Aws::GuardDuty::Model::CreateIPSetRequest
Definition: CreateIPSetRequest.h:25
Aws::GuardDuty::Model::CreateIPSetRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateIPSetRequest.h:33
Aws::GuardDuty::Model::CreateIPSetRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: CreateIPSetRequest.h:249
AWS_GUARDDUTY_API
#define AWS_GUARDDUTY_API
Definition: GuardDuty_EXPORTS.h:28
Aws::GuardDuty::Model::CreateIPSetRequest::WithLocation
CreateIPSetRequest & WithLocation(const Aws::String &value)
Definition: CreateIPSetRequest.h:201
Aws::GuardDuty::Model::CreateIPSetRequest::LocationHasBeenSet
bool LocationHasBeenSet() const
Definition: CreateIPSetRequest.h:177
Aws::GuardDuty::Model::CreateIPSetRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: CreateIPSetRequest.h:244
Aws::GuardDuty::Model::CreateIPSetRequest::WithLocation
CreateIPSetRequest & WithLocation(Aws::String &&value)
Definition: CreateIPSetRequest.h:207
Aws::GuardDuty::Model::CreateIPSetRequest::SetTags
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateIPSetRequest.h:295
AWSString.h
Aws::GuardDuty::Model::CreateIPSetRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateIPSetRequest.h:103
Aws::GuardDuty::Model::CreateIPSetRequest::AddTags
CreateIPSetRequest & AddTags(Aws::String &&key, Aws::String &&value)
Definition: CreateIPSetRequest.h:330
Aws::GuardDuty::Model::CreateIPSetRequest::WithClientToken
CreateIPSetRequest & WithClientToken(Aws::String &&value)
Definition: CreateIPSetRequest.h:274
Aws::GuardDuty::Model::CreateIPSetRequest::SetFormat
void SetFormat(IpSetFormat &&value)
Definition: CreateIPSetRequest.h:154
Aws::GuardDuty::Model::CreateIPSetRequest::AddTags
CreateIPSetRequest & AddTags(Aws::String &&key, const Aws::String &value)
Definition: CreateIPSetRequest.h:320
Aws::GuardDuty::Model::CreateIPSetRequest::SetDetectorId
void SetDetectorId(const Aws::String &value)
Definition: CreateIPSetRequest.h:54
Aws::GuardDuty::Model::CreateIPSetRequest::GetFormat
const IpSetFormat & GetFormat() const
Definition: CreateIPSetRequest.h:139
Aws::GuardDuty::Model::CreateIPSetRequest::WithDetectorId
CreateIPSetRequest & WithDetectorId(const char *value)
Definition: CreateIPSetRequest.h:84
Aws::GuardDuty::Model::CreateIPSetRequest::CreateIPSetRequest
CreateIPSetRequest()
Aws::GuardDuty::Model::CreateIPSetRequest::GetName
const Aws::String & GetName() const
Definition: CreateIPSetRequest.h:91
Aws::GuardDuty::Model::CreateIPSetRequest::SetTags
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateIPSetRequest.h:300
Aws
Definition: AccessManagementClient.h:15
Aws::GuardDuty::Model::CreateIPSetRequest::AddTags
CreateIPSetRequest & AddTags(const Aws::String &key, Aws::String &&value)
Definition: CreateIPSetRequest.h:325
Aws::GuardDuty::Model::CreateIPSetRequest::FormatHasBeenSet
bool FormatHasBeenSet() const
Definition: CreateIPSetRequest.h:144
Aws::GuardDuty::Model::CreateIPSetRequest::SetLocation
void SetLocation(const Aws::String &value)
Definition: CreateIPSetRequest.h:183
Aws::GuardDuty::Model::CreateIPSetRequest::WithName
CreateIPSetRequest & WithName(const char *value)
Definition: CreateIPSetRequest.h:133
GuardDutyRequest.h
Aws::GuardDuty::Model::CreateIPSetRequest::SetLocation
void SetLocation(const char *value)
Definition: CreateIPSetRequest.h:195
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GuardDuty::Model::CreateIPSetRequest::GetLocation
const Aws::String & GetLocation() const
Definition: CreateIPSetRequest.h:171
Aws::GuardDuty::Model::CreateIPSetRequest::ActivateHasBeenSet
bool ActivateHasBeenSet() const
Definition: CreateIPSetRequest.h:226
Aws::GuardDuty::Model::CreateIPSetRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateIPSetRequest.h:109
Aws::GuardDuty::GuardDutyRequest
Definition: GuardDutyRequest.h:17
UUID.h
Aws::GuardDuty::Model::CreateIPSetRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateIPSetRequest.h:97
AWSMap.h
Aws::GuardDuty::Model::CreateIPSetRequest::SetActivate
void SetActivate(bool value)
Definition: CreateIPSetRequest.h:232
Aws::GuardDuty::Model::CreateIPSetRequest::GetDetectorId
const Aws::String & GetDetectorId() const
Definition: CreateIPSetRequest.h:42
IpSetFormat.h
Aws::GuardDuty::Model::CreateIPSetRequest::WithName
CreateIPSetRequest & WithName(Aws::String &&value)
Definition: CreateIPSetRequest.h:127
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::GuardDuty::Model::CreateIPSetRequest::WithFormat
CreateIPSetRequest & WithFormat(IpSetFormat &&value)
Definition: CreateIPSetRequest.h:164