AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
GetTrustedEntitySetResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/guardduty/GuardDuty_EXPORTS.h>
11#include <aws/guardduty/model/TrustedEntitySetFormat.h>
12#include <aws/guardduty/model/TrustedEntitySetStatus.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace GuardDuty {
26namespace Model {
28 public:
29 AWS_GUARDDUTY_API GetTrustedEntitySetResult() = default;
32
34
38 inline const Aws::String& GetName() const { return m_name; }
39 template <typename NameT = Aws::String>
40 void SetName(NameT&& value) {
41 m_nameHasBeenSet = true;
42 m_name = std::forward<NameT>(value);
43 }
44 template <typename NameT = Aws::String>
46 SetName(std::forward<NameT>(value));
47 return *this;
48 }
50
52
55 inline TrustedEntitySetFormat GetFormat() const { return m_format; }
56 inline void SetFormat(TrustedEntitySetFormat value) {
57 m_formatHasBeenSet = true;
58 m_format = value;
59 }
61 SetFormat(value);
62 return *this;
63 }
65
67
70 inline const Aws::String& GetLocation() const { return m_location; }
71 template <typename LocationT = Aws::String>
72 void SetLocation(LocationT&& value) {
73 m_locationHasBeenSet = true;
74 m_location = std::forward<LocationT>(value);
75 }
76 template <typename LocationT = Aws::String>
78 SetLocation(std::forward<LocationT>(value));
79 return *this;
80 }
82
84
88 inline const Aws::String& GetExpectedBucketOwner() const { return m_expectedBucketOwner; }
89 template <typename ExpectedBucketOwnerT = Aws::String>
90 void SetExpectedBucketOwner(ExpectedBucketOwnerT&& value) {
91 m_expectedBucketOwnerHasBeenSet = true;
92 m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value);
93 }
94 template <typename ExpectedBucketOwnerT = Aws::String>
95 GetTrustedEntitySetResult& WithExpectedBucketOwner(ExpectedBucketOwnerT&& value) {
96 SetExpectedBucketOwner(std::forward<ExpectedBucketOwnerT>(value));
97 return *this;
98 }
100
102
105 inline TrustedEntitySetStatus GetStatus() const { return m_status; }
107 m_statusHasBeenSet = true;
108 m_status = value;
109 }
111 SetStatus(value);
112 return *this;
113 }
115
117
120 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
121 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
122 void SetTags(TagsT&& value) {
123 m_tagsHasBeenSet = true;
124 m_tags = std::forward<TagsT>(value);
125 }
126 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
128 SetTags(std::forward<TagsT>(value));
129 return *this;
130 }
131 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
132 GetTrustedEntitySetResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
133 m_tagsHasBeenSet = true;
134 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
135 return *this;
136 }
138
140
143 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
144 template <typename CreatedAtT = Aws::Utils::DateTime>
145 void SetCreatedAt(CreatedAtT&& value) {
146 m_createdAtHasBeenSet = true;
147 m_createdAt = std::forward<CreatedAtT>(value);
148 }
149 template <typename CreatedAtT = Aws::Utils::DateTime>
151 SetCreatedAt(std::forward<CreatedAtT>(value));
152 return *this;
153 }
155
157
160 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
161 template <typename UpdatedAtT = Aws::Utils::DateTime>
162 void SetUpdatedAt(UpdatedAtT&& value) {
163 m_updatedAtHasBeenSet = true;
164 m_updatedAt = std::forward<UpdatedAtT>(value);
165 }
166 template <typename UpdatedAtT = Aws::Utils::DateTime>
168 SetUpdatedAt(std::forward<UpdatedAtT>(value));
169 return *this;
170 }
172
174
177 inline const Aws::String& GetErrorDetails() const { return m_errorDetails; }
178 template <typename ErrorDetailsT = Aws::String>
179 void SetErrorDetails(ErrorDetailsT&& value) {
180 m_errorDetailsHasBeenSet = true;
181 m_errorDetails = std::forward<ErrorDetailsT>(value);
182 }
183 template <typename ErrorDetailsT = Aws::String>
185 SetErrorDetails(std::forward<ErrorDetailsT>(value));
186 return *this;
187 }
189
191
192 inline const Aws::String& GetRequestId() const { return m_requestId; }
193 template <typename RequestIdT = Aws::String>
194 void SetRequestId(RequestIdT&& value) {
195 m_requestIdHasBeenSet = true;
196 m_requestId = std::forward<RequestIdT>(value);
197 }
198 template <typename RequestIdT = Aws::String>
200 SetRequestId(std::forward<RequestIdT>(value));
201 return *this;
202 }
204 private:
205 Aws::String m_name;
206
208
209 Aws::String m_location;
210
211 Aws::String m_expectedBucketOwner;
212
214
216
217 Aws::Utils::DateTime m_createdAt{};
218
219 Aws::Utils::DateTime m_updatedAt{};
220
221 Aws::String m_errorDetails;
222
223 Aws::String m_requestId;
224 bool m_nameHasBeenSet = false;
225 bool m_formatHasBeenSet = false;
226 bool m_locationHasBeenSet = false;
227 bool m_expectedBucketOwnerHasBeenSet = false;
228 bool m_statusHasBeenSet = false;
229 bool m_tagsHasBeenSet = false;
230 bool m_createdAtHasBeenSet = false;
231 bool m_updatedAtHasBeenSet = false;
232 bool m_errorDetailsHasBeenSet = false;
233 bool m_requestIdHasBeenSet = false;
234};
235
236} // namespace Model
237} // namespace GuardDuty
238} // namespace Aws
GetTrustedEntitySetResult & WithStatus(TrustedEntitySetStatus value)
GetTrustedEntitySetResult & WithExpectedBucketOwner(ExpectedBucketOwnerT &&value)
GetTrustedEntitySetResult & WithRequestId(RequestIdT &&value)
AWS_GUARDDUTY_API GetTrustedEntitySetResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetExpectedBucketOwner(ExpectedBucketOwnerT &&value)
GetTrustedEntitySetResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
GetTrustedEntitySetResult & WithUpdatedAt(UpdatedAtT &&value)
AWS_GUARDDUTY_API GetTrustedEntitySetResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetTrustedEntitySetResult & WithErrorDetails(ErrorDetailsT &&value)
GetTrustedEntitySetResult & WithCreatedAt(CreatedAtT &&value)
GetTrustedEntitySetResult & WithLocation(LocationT &&value)
GetTrustedEntitySetResult & WithName(NameT &&value)
GetTrustedEntitySetResult & WithTags(TagsT &&value)
AWS_GUARDDUTY_API GetTrustedEntitySetResult()=default
GetTrustedEntitySetResult & WithFormat(TrustedEntitySetFormat 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
Aws::Utils::Json::JsonValue JsonValue