AWS SDK for C++

AWS SDK for C++ Version 1.11.757

Loading...
Searching...
No Matches
GetThreatEntitySetResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/guardduty/GuardDuty_EXPORTS.h>
12#include <aws/guardduty/model/ThreatEntitySetFormat.h>
13#include <aws/guardduty/model/ThreatEntitySetStatus.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace GuardDuty {
27namespace Model {
29 public:
30 AWS_GUARDDUTY_API GetThreatEntitySetResult() = default;
33
35
39 inline const Aws::String& GetName() const { return m_name; }
40 template <typename NameT = Aws::String>
41 void SetName(NameT&& value) {
42 m_nameHasBeenSet = true;
43 m_name = std::forward<NameT>(value);
44 }
45 template <typename NameT = Aws::String>
47 SetName(std::forward<NameT>(value));
48 return *this;
49 }
51
53
56 inline ThreatEntitySetFormat GetFormat() const { return m_format; }
57 inline void SetFormat(ThreatEntitySetFormat value) {
58 m_formatHasBeenSet = true;
59 m_format = value;
60 }
62 SetFormat(value);
63 return *this;
64 }
66
68
71 inline const Aws::String& GetLocation() const { return m_location; }
72 template <typename LocationT = Aws::String>
73 void SetLocation(LocationT&& value) {
74 m_locationHasBeenSet = true;
75 m_location = std::forward<LocationT>(value);
76 }
77 template <typename LocationT = Aws::String>
79 SetLocation(std::forward<LocationT>(value));
80 return *this;
81 }
83
85
89 inline const Aws::String& GetExpectedBucketOwner() const { return m_expectedBucketOwner; }
90 template <typename ExpectedBucketOwnerT = Aws::String>
91 void SetExpectedBucketOwner(ExpectedBucketOwnerT&& value) {
92 m_expectedBucketOwnerHasBeenSet = true;
93 m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value);
94 }
95 template <typename ExpectedBucketOwnerT = Aws::String>
96 GetThreatEntitySetResult& WithExpectedBucketOwner(ExpectedBucketOwnerT&& value) {
97 SetExpectedBucketOwner(std::forward<ExpectedBucketOwnerT>(value));
98 return *this;
99 }
101
103
106 inline ThreatEntitySetStatus GetStatus() const { return m_status; }
107 inline void SetStatus(ThreatEntitySetStatus value) {
108 m_statusHasBeenSet = true;
109 m_status = value;
110 }
112 SetStatus(value);
113 return *this;
114 }
116
118
121 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
122 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
123 void SetTags(TagsT&& value) {
124 m_tagsHasBeenSet = true;
125 m_tags = std::forward<TagsT>(value);
126 }
127 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
129 SetTags(std::forward<TagsT>(value));
130 return *this;
131 }
132 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
133 GetThreatEntitySetResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
134 m_tagsHasBeenSet = true;
135 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
136 return *this;
137 }
139
141
144 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
145 template <typename CreatedAtT = Aws::Utils::DateTime>
146 void SetCreatedAt(CreatedAtT&& value) {
147 m_createdAtHasBeenSet = true;
148 m_createdAt = std::forward<CreatedAtT>(value);
149 }
150 template <typename CreatedAtT = Aws::Utils::DateTime>
152 SetCreatedAt(std::forward<CreatedAtT>(value));
153 return *this;
154 }
156
158
161 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
162 template <typename UpdatedAtT = Aws::Utils::DateTime>
163 void SetUpdatedAt(UpdatedAtT&& value) {
164 m_updatedAtHasBeenSet = true;
165 m_updatedAt = std::forward<UpdatedAtT>(value);
166 }
167 template <typename UpdatedAtT = Aws::Utils::DateTime>
169 SetUpdatedAt(std::forward<UpdatedAtT>(value));
170 return *this;
171 }
173
175
178 inline const Aws::String& GetErrorDetails() const { return m_errorDetails; }
179 template <typename ErrorDetailsT = Aws::String>
180 void SetErrorDetails(ErrorDetailsT&& value) {
181 m_errorDetailsHasBeenSet = true;
182 m_errorDetails = std::forward<ErrorDetailsT>(value);
183 }
184 template <typename ErrorDetailsT = Aws::String>
186 SetErrorDetails(std::forward<ErrorDetailsT>(value));
187 return *this;
188 }
190
192
193 inline const Aws::String& GetRequestId() const { return m_requestId; }
194 template <typename RequestIdT = Aws::String>
195 void SetRequestId(RequestIdT&& value) {
196 m_requestIdHasBeenSet = true;
197 m_requestId = std::forward<RequestIdT>(value);
198 }
199 template <typename RequestIdT = Aws::String>
201 SetRequestId(std::forward<RequestIdT>(value));
202 return *this;
203 }
205 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
206
207 private:
208 Aws::String m_name;
209
211
212 Aws::String m_location;
213
214 Aws::String m_expectedBucketOwner;
215
217
219
220 Aws::Utils::DateTime m_createdAt{};
221
222 Aws::Utils::DateTime m_updatedAt{};
223
224 Aws::String m_errorDetails;
225
226 Aws::String m_requestId;
227 Aws::Http::HttpResponseCode m_HttpResponseCode;
228 bool m_nameHasBeenSet = false;
229 bool m_formatHasBeenSet = false;
230 bool m_locationHasBeenSet = false;
231 bool m_expectedBucketOwnerHasBeenSet = false;
232 bool m_statusHasBeenSet = false;
233 bool m_tagsHasBeenSet = false;
234 bool m_createdAtHasBeenSet = false;
235 bool m_updatedAtHasBeenSet = false;
236 bool m_errorDetailsHasBeenSet = false;
237 bool m_requestIdHasBeenSet = false;
238};
239
240} // namespace Model
241} // namespace GuardDuty
242} // namespace Aws
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetThreatEntitySetResult & WithUpdatedAt(UpdatedAtT &&value)
GetThreatEntitySetResult & WithStatus(ThreatEntitySetStatus value)
GetThreatEntitySetResult & WithRequestId(RequestIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
GetThreatEntitySetResult & WithName(NameT &&value)
GetThreatEntitySetResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_GUARDDUTY_API GetThreatEntitySetResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetThreatEntitySetResult & WithTags(TagsT &&value)
void SetExpectedBucketOwner(ExpectedBucketOwnerT &&value)
GetThreatEntitySetResult & WithCreatedAt(CreatedAtT &&value)
AWS_GUARDDUTY_API GetThreatEntitySetResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetThreatEntitySetResult & WithLocation(LocationT &&value)
GetThreatEntitySetResult & WithFormat(ThreatEntitySetFormat value)
GetThreatEntitySetResult & WithExpectedBucketOwner(ExpectedBucketOwnerT &&value)
GetThreatEntitySetResult & WithErrorDetails(ErrorDetailsT &&value)
AWS_GUARDDUTY_API GetThreatEntitySetResult()=default
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
Aws::Utils::Json::JsonValue JsonValue