AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
CreateThreatIntelSetRequest.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/ThreatIntelSetFormat.h>
13
14#include <utility>
15
16namespace Aws {
17namespace GuardDuty {
18namespace Model {
19
23 public:
24 AWS_GUARDDUTY_API CreateThreatIntelSetRequest() = 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 "CreateThreatIntelSet"; }
31
32 AWS_GUARDDUTY_API Aws::String SerializePayload() const override;
33
35
43 inline const Aws::String& GetDetectorId() const { return m_detectorId; }
44 inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
45 template <typename DetectorIdT = Aws::String>
46 void SetDetectorId(DetectorIdT&& value) {
47 m_detectorIdHasBeenSet = true;
48 m_detectorId = std::forward<DetectorIdT>(value);
49 }
50 template <typename DetectorIdT = Aws::String>
52 SetDetectorId(std::forward<DetectorIdT>(value));
53 return *this;
54 }
56
58
63 inline const Aws::String& GetName() const { return m_name; }
64 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
65 template <typename NameT = Aws::String>
66 void SetName(NameT&& value) {
67 m_nameHasBeenSet = true;
68 m_name = std::forward<NameT>(value);
69 }
70 template <typename NameT = Aws::String>
72 SetName(std::forward<NameT>(value));
73 return *this;
74 }
76
78
81 inline ThreatIntelSetFormat GetFormat() const { return m_format; }
82 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
83 inline void SetFormat(ThreatIntelSetFormat value) {
84 m_formatHasBeenSet = true;
85 m_format = value;
86 }
88 SetFormat(value);
89 return *this;
90 }
92
94
97 inline const Aws::String& GetLocation() const { return m_location; }
98 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
99 template <typename LocationT = Aws::String>
100 void SetLocation(LocationT&& value) {
101 m_locationHasBeenSet = true;
102 m_location = std::forward<LocationT>(value);
103 }
104 template <typename LocationT = Aws::String>
106 SetLocation(std::forward<LocationT>(value));
107 return *this;
108 }
110
112
116 inline bool GetActivate() const { return m_activate; }
117 inline bool ActivateHasBeenSet() const { return m_activateHasBeenSet; }
118 inline void SetActivate(bool value) {
119 m_activateHasBeenSet = true;
120 m_activate = value;
121 }
123 SetActivate(value);
124 return *this;
125 }
127
129
132 inline const Aws::String& GetClientToken() const { return m_clientToken; }
133 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
134 template <typename ClientTokenT = Aws::String>
135 void SetClientToken(ClientTokenT&& value) {
136 m_clientTokenHasBeenSet = true;
137 m_clientToken = std::forward<ClientTokenT>(value);
138 }
139 template <typename ClientTokenT = Aws::String>
141 SetClientToken(std::forward<ClientTokenT>(value));
142 return *this;
143 }
145
147
150 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
151 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
152 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
153 void SetTags(TagsT&& value) {
154 m_tagsHasBeenSet = true;
155 m_tags = std::forward<TagsT>(value);
156 }
157 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
159 SetTags(std::forward<TagsT>(value));
160 return *this;
161 }
162 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
163 CreateThreatIntelSetRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
164 m_tagsHasBeenSet = true;
165 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
166 return *this;
167 }
169
171
175 inline const Aws::String& GetExpectedBucketOwner() const { return m_expectedBucketOwner; }
176 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
177 template <typename ExpectedBucketOwnerT = Aws::String>
178 void SetExpectedBucketOwner(ExpectedBucketOwnerT&& value) {
179 m_expectedBucketOwnerHasBeenSet = true;
180 m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value);
181 }
182 template <typename ExpectedBucketOwnerT = Aws::String>
184 SetExpectedBucketOwner(std::forward<ExpectedBucketOwnerT>(value));
185 return *this;
186 }
188 private:
189 Aws::String m_detectorId;
190
191 Aws::String m_name;
192
194
195 Aws::String m_location;
196
197 bool m_activate{false};
198
200
202
203 Aws::String m_expectedBucketOwner;
204 bool m_detectorIdHasBeenSet = false;
205 bool m_nameHasBeenSet = false;
206 bool m_formatHasBeenSet = false;
207 bool m_locationHasBeenSet = false;
208 bool m_activateHasBeenSet = false;
209 bool m_clientTokenHasBeenSet = true;
210 bool m_tagsHasBeenSet = false;
211 bool m_expectedBucketOwnerHasBeenSet = false;
212};
213
214} // namespace Model
215} // namespace GuardDuty
216} // namespace Aws
virtual const char * GetServiceRequestName() const override
CreateThreatIntelSetRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateThreatIntelSetRequest & WithTags(TagsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateThreatIntelSetRequest & WithActivate(bool value)
CreateThreatIntelSetRequest & WithDetectorId(DetectorIdT &&value)
AWS_GUARDDUTY_API Aws::String SerializePayload() const override
CreateThreatIntelSetRequest & WithClientToken(ClientTokenT &&value)
AWS_GUARDDUTY_API CreateThreatIntelSetRequest()=default
CreateThreatIntelSetRequest & WithExpectedBucketOwner(ExpectedBucketOwnerT &&value)
CreateThreatIntelSetRequest & WithName(NameT &&value)
CreateThreatIntelSetRequest & WithLocation(LocationT &&value)
CreateThreatIntelSetRequest & WithFormat(ThreatIntelSetFormat 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