AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
CreateIPSetRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/guardduty/GuardDutyRequest.h>
11#include <aws/guardduty/GuardDuty_EXPORTS.h>
12#include <aws/guardduty/model/IpSetFormat.h>
13
14#include <utility>
15
16namespace Aws {
17namespace GuardDuty {
18namespace Model {
19
23 public:
24 AWS_GUARDDUTY_API CreateIPSetRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateIPSet"; }
31
32 AWS_GUARDDUTY_API Aws::String SerializePayload() const override;
33
35
42 inline const Aws::String& GetDetectorId() const { return m_detectorId; }
43 inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
44 template <typename DetectorIdT = Aws::String>
45 void SetDetectorId(DetectorIdT&& value) {
46 m_detectorIdHasBeenSet = true;
47 m_detectorId = std::forward<DetectorIdT>(value);
48 }
49 template <typename DetectorIdT = Aws::String>
50 CreateIPSetRequest& WithDetectorId(DetectorIdT&& value) {
51 SetDetectorId(std::forward<DetectorIdT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetName() const { return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 template <typename NameT = Aws::String>
64 void SetName(NameT&& value) {
65 m_nameHasBeenSet = true;
66 m_name = std::forward<NameT>(value);
67 }
68 template <typename NameT = Aws::String>
69 CreateIPSetRequest& WithName(NameT&& value) {
70 SetName(std::forward<NameT>(value));
71 return *this;
72 }
74
76
79 inline IpSetFormat GetFormat() const { return m_format; }
80 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
81 inline void SetFormat(IpSetFormat value) {
82 m_formatHasBeenSet = true;
83 m_format = value;
84 }
86 SetFormat(value);
87 return *this;
88 }
90
92
95 inline const Aws::String& GetLocation() const { return m_location; }
96 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
97 template <typename LocationT = Aws::String>
98 void SetLocation(LocationT&& value) {
99 m_locationHasBeenSet = true;
100 m_location = std::forward<LocationT>(value);
101 }
102 template <typename LocationT = Aws::String>
103 CreateIPSetRequest& WithLocation(LocationT&& value) {
104 SetLocation(std::forward<LocationT>(value));
105 return *this;
106 }
108
110
114 inline bool GetActivate() const { return m_activate; }
115 inline bool ActivateHasBeenSet() const { return m_activateHasBeenSet; }
116 inline void SetActivate(bool value) {
117 m_activateHasBeenSet = true;
118 m_activate = value;
119 }
120 inline CreateIPSetRequest& WithActivate(bool value) {
121 SetActivate(value);
122 return *this;
123 }
125
127
130 inline const Aws::String& GetClientToken() const { return m_clientToken; }
131 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
132 template <typename ClientTokenT = Aws::String>
133 void SetClientToken(ClientTokenT&& value) {
134 m_clientTokenHasBeenSet = true;
135 m_clientToken = std::forward<ClientTokenT>(value);
136 }
137 template <typename ClientTokenT = Aws::String>
138 CreateIPSetRequest& WithClientToken(ClientTokenT&& value) {
139 SetClientToken(std::forward<ClientTokenT>(value));
140 return *this;
141 }
143
145
148 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
149 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
150 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
151 void SetTags(TagsT&& value) {
152 m_tagsHasBeenSet = true;
153 m_tags = std::forward<TagsT>(value);
154 }
155 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
156 CreateIPSetRequest& WithTags(TagsT&& value) {
157 SetTags(std::forward<TagsT>(value));
158 return *this;
159 }
160 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
161 CreateIPSetRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
162 m_tagsHasBeenSet = true;
163 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
164 return *this;
165 }
167
169
173 inline const Aws::String& GetExpectedBucketOwner() const { return m_expectedBucketOwner; }
174 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
175 template <typename ExpectedBucketOwnerT = Aws::String>
176 void SetExpectedBucketOwner(ExpectedBucketOwnerT&& value) {
177 m_expectedBucketOwnerHasBeenSet = true;
178 m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value);
179 }
180 template <typename ExpectedBucketOwnerT = Aws::String>
181 CreateIPSetRequest& WithExpectedBucketOwner(ExpectedBucketOwnerT&& value) {
182 SetExpectedBucketOwner(std::forward<ExpectedBucketOwnerT>(value));
183 return *this;
184 }
186 private:
187 Aws::String m_detectorId;
188
189 Aws::String m_name;
190
192
193 Aws::String m_location;
194
195 bool m_activate{false};
196
198
200
201 Aws::String m_expectedBucketOwner;
202 bool m_detectorIdHasBeenSet = false;
203 bool m_nameHasBeenSet = false;
204 bool m_formatHasBeenSet = false;
205 bool m_locationHasBeenSet = false;
206 bool m_activateHasBeenSet = false;
207 bool m_clientTokenHasBeenSet = true;
208 bool m_tagsHasBeenSet = false;
209 bool m_expectedBucketOwnerHasBeenSet = false;
210};
211
212} // namespace Model
213} // namespace GuardDuty
214} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_GUARDDUTY_API Aws::String SerializePayload() const override
CreateIPSetRequest & WithFormat(IpSetFormat value)
virtual const char * GetServiceRequestName() const override
CreateIPSetRequest & WithTags(TagsT &&value)
const Aws::String & GetExpectedBucketOwner() const
CreateIPSetRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateIPSetRequest & WithDetectorId(DetectorIdT &&value)
void SetExpectedBucketOwner(ExpectedBucketOwnerT &&value)
CreateIPSetRequest & WithName(NameT &&value)
CreateIPSetRequest & WithActivate(bool value)
CreateIPSetRequest & WithClientToken(ClientTokenT &&value)
CreateIPSetRequest & WithLocation(LocationT &&value)
AWS_GUARDDUTY_API CreateIPSetRequest()=default
CreateIPSetRequest & WithExpectedBucketOwner(ExpectedBucketOwnerT &&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