AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateIPSetRequest.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/guardduty/GuardDutyRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/guardduty/model/IpSetFormat.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace GuardDuty
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_GUARDDUTY_API CreateIPSetRequest();
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_GUARDDUTY_API Aws::String SerializePayload() const override;
36
37
39
43 inline const Aws::String& GetDetectorId() const{ return m_detectorId; }
44 inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
45 inline void SetDetectorId(const Aws::String& value) { m_detectorIdHasBeenSet = true; m_detectorId = value; }
46 inline void SetDetectorId(Aws::String&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::move(value); }
47 inline void SetDetectorId(const char* value) { m_detectorIdHasBeenSet = true; m_detectorId.assign(value); }
48 inline CreateIPSetRequest& WithDetectorId(const Aws::String& value) { SetDetectorId(value); return *this;}
49 inline CreateIPSetRequest& WithDetectorId(Aws::String&& value) { SetDetectorId(std::move(value)); return *this;}
50 inline CreateIPSetRequest& WithDetectorId(const char* value) { SetDetectorId(value); return *this;}
52
54
58 inline const Aws::String& GetName() const{ return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
61 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
62 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
63 inline CreateIPSetRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
64 inline CreateIPSetRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
65 inline CreateIPSetRequest& WithName(const char* value) { SetName(value); return *this;}
67
69
72 inline const IpSetFormat& GetFormat() const{ return m_format; }
73 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
74 inline void SetFormat(const IpSetFormat& value) { m_formatHasBeenSet = true; m_format = value; }
75 inline void SetFormat(IpSetFormat&& value) { m_formatHasBeenSet = true; m_format = std::move(value); }
76 inline CreateIPSetRequest& WithFormat(const IpSetFormat& value) { SetFormat(value); return *this;}
77 inline CreateIPSetRequest& WithFormat(IpSetFormat&& value) { SetFormat(std::move(value)); return *this;}
79
81
84 inline const Aws::String& GetLocation() const{ return m_location; }
85 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
86 inline void SetLocation(const Aws::String& value) { m_locationHasBeenSet = true; m_location = value; }
87 inline void SetLocation(Aws::String&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
88 inline void SetLocation(const char* value) { m_locationHasBeenSet = true; m_location.assign(value); }
89 inline CreateIPSetRequest& WithLocation(const Aws::String& value) { SetLocation(value); return *this;}
90 inline CreateIPSetRequest& WithLocation(Aws::String&& value) { SetLocation(std::move(value)); return *this;}
91 inline CreateIPSetRequest& WithLocation(const char* value) { SetLocation(value); return *this;}
93
95
99 inline bool GetActivate() const{ return m_activate; }
100 inline bool ActivateHasBeenSet() const { return m_activateHasBeenSet; }
101 inline void SetActivate(bool value) { m_activateHasBeenSet = true; m_activate = value; }
102 inline CreateIPSetRequest& WithActivate(bool value) { SetActivate(value); return *this;}
104
106
109 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
110 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
111 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
112 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
113 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
114 inline CreateIPSetRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
115 inline CreateIPSetRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
116 inline CreateIPSetRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
118
120
123 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
124 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
125 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
126 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
127 inline CreateIPSetRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
128 inline CreateIPSetRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
129 inline CreateIPSetRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
130 inline CreateIPSetRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
131 inline CreateIPSetRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
132 inline CreateIPSetRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
133 inline CreateIPSetRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
134 inline CreateIPSetRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
135 inline CreateIPSetRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
137 private:
138
139 Aws::String m_detectorId;
140 bool m_detectorIdHasBeenSet = false;
141
142 Aws::String m_name;
143 bool m_nameHasBeenSet = false;
144
145 IpSetFormat m_format;
146 bool m_formatHasBeenSet = false;
147
148 Aws::String m_location;
149 bool m_locationHasBeenSet = false;
150
151 bool m_activate;
152 bool m_activateHasBeenSet = false;
153
154 Aws::String m_clientToken;
155 bool m_clientTokenHasBeenSet = false;
156
158 bool m_tagsHasBeenSet = false;
159 };
160
161} // namespace Model
162} // namespace GuardDuty
163} // namespace Aws
CreateIPSetRequest & AddTags(const Aws::String &key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_GUARDDUTY_API Aws::String SerializePayload() const override
CreateIPSetRequest & WithName(const char *value)
CreateIPSetRequest & AddTags(const Aws::String &key, const Aws::String &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateIPSetRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateIPSetRequest & WithDetectorId(Aws::String &&value)
void SetName(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
CreateIPSetRequest & WithName(const Aws::String &value)
CreateIPSetRequest & WithLocation(const char *value)
void SetDetectorId(const Aws::String &value)
void SetFormat(const IpSetFormat &value)
CreateIPSetRequest & AddTags(const char *key, Aws::String &&value)
CreateIPSetRequest & WithDetectorId(const Aws::String &value)
CreateIPSetRequest & WithFormat(IpSetFormat &&value)
CreateIPSetRequest & AddTags(Aws::String &&key, const char *value)
CreateIPSetRequest & WithDetectorId(const char *value)
CreateIPSetRequest & WithClientToken(const Aws::String &value)
void SetLocation(const Aws::String &value)
CreateIPSetRequest & AddTags(const char *key, const char *value)
CreateIPSetRequest & WithActivate(bool value)
void SetClientToken(const Aws::String &value)
CreateIPSetRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateIPSetRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateIPSetRequest & WithClientToken(const char *value)
CreateIPSetRequest & WithClientToken(Aws::String &&value)
CreateIPSetRequest & WithLocation(const Aws::String &value)
CreateIPSetRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateIPSetRequest & WithFormat(const IpSetFormat &value)
CreateIPSetRequest & WithName(Aws::String &&value)
CreateIPSetRequest & WithLocation(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