AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
CreateTrustedEntitySetRequest.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/TrustedEntitySetFormat.h>
13
14#include <utility>
15
16namespace Aws {
17namespace GuardDuty {
18namespace Model {
19
23 public:
24 AWS_GUARDDUTY_API CreateTrustedEntitySetRequest() = 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 "CreateTrustedEntitySet"; }
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>
51 SetDetectorId(std::forward<DetectorIdT>(value));
52 return *this;
53 }
55
57
62 inline const Aws::String& GetName() const { return m_name; }
63 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
64 template <typename NameT = Aws::String>
65 void SetName(NameT&& value) {
66 m_nameHasBeenSet = true;
67 m_name = std::forward<NameT>(value);
68 }
69 template <typename NameT = Aws::String>
71 SetName(std::forward<NameT>(value));
72 return *this;
73 }
75
77
80 inline TrustedEntitySetFormat GetFormat() const { return m_format; }
81 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
82 inline void SetFormat(TrustedEntitySetFormat value) {
83 m_formatHasBeenSet = true;
84 m_format = value;
85 }
87 SetFormat(value);
88 return *this;
89 }
91
93
102 inline const Aws::String& GetLocation() const { return m_location; }
103 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
104 template <typename LocationT = Aws::String>
105 void SetLocation(LocationT&& value) {
106 m_locationHasBeenSet = true;
107 m_location = std::forward<LocationT>(value);
108 }
109 template <typename LocationT = Aws::String>
111 SetLocation(std::forward<LocationT>(value));
112 return *this;
113 }
115
117
121 inline const Aws::String& GetExpectedBucketOwner() const { return m_expectedBucketOwner; }
122 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
123 template <typename ExpectedBucketOwnerT = Aws::String>
124 void SetExpectedBucketOwner(ExpectedBucketOwnerT&& value) {
125 m_expectedBucketOwnerHasBeenSet = true;
126 m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value);
127 }
128 template <typename ExpectedBucketOwnerT = Aws::String>
130 SetExpectedBucketOwner(std::forward<ExpectedBucketOwnerT>(value));
131 return *this;
132 }
134
136
140 inline bool GetActivate() const { return m_activate; }
141 inline bool ActivateHasBeenSet() const { return m_activateHasBeenSet; }
142 inline void SetActivate(bool value) {
143 m_activateHasBeenSet = true;
144 m_activate = value;
145 }
147 SetActivate(value);
148 return *this;
149 }
151
153
156 inline const Aws::String& GetClientToken() const { return m_clientToken; }
157 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
158 template <typename ClientTokenT = Aws::String>
159 void SetClientToken(ClientTokenT&& value) {
160 m_clientTokenHasBeenSet = true;
161 m_clientToken = std::forward<ClientTokenT>(value);
162 }
163 template <typename ClientTokenT = Aws::String>
165 SetClientToken(std::forward<ClientTokenT>(value));
166 return *this;
167 }
169
171
174 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
175 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
176 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
177 void SetTags(TagsT&& value) {
178 m_tagsHasBeenSet = true;
179 m_tags = std::forward<TagsT>(value);
180 }
181 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
183 SetTags(std::forward<TagsT>(value));
184 return *this;
185 }
186 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
187 CreateTrustedEntitySetRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
188 m_tagsHasBeenSet = true;
189 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
190 return *this;
191 }
193 private:
194 Aws::String m_detectorId;
195
196 Aws::String m_name;
197
199
200 Aws::String m_location;
201
202 Aws::String m_expectedBucketOwner;
203
204 bool m_activate{false};
205
207
209 bool m_detectorIdHasBeenSet = false;
210 bool m_nameHasBeenSet = false;
211 bool m_formatHasBeenSet = false;
212 bool m_locationHasBeenSet = false;
213 bool m_expectedBucketOwnerHasBeenSet = false;
214 bool m_activateHasBeenSet = false;
215 bool m_clientTokenHasBeenSet = true;
216 bool m_tagsHasBeenSet = false;
217};
218
219} // namespace Model
220} // namespace GuardDuty
221} // namespace Aws
AWS_GUARDDUTY_API CreateTrustedEntitySetRequest()=default
CreateTrustedEntitySetRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateTrustedEntitySetRequest & WithClientToken(ClientTokenT &&value)
CreateTrustedEntitySetRequest & WithTags(TagsT &&value)
CreateTrustedEntitySetRequest & WithLocation(LocationT &&value)
AWS_GUARDDUTY_API Aws::String SerializePayload() const override
CreateTrustedEntitySetRequest & WithName(NameT &&value)
CreateTrustedEntitySetRequest & WithDetectorId(DetectorIdT &&value)
CreateTrustedEntitySetRequest & WithFormat(TrustedEntitySetFormat value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateTrustedEntitySetRequest & 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