AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetReceivedDataGrantResult.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/AWSString.h>
10#include <aws/dataexchange/DataExchange_EXPORTS.h>
11#include <aws/dataexchange/model/DataGrantAcceptanceState.h>
12#include <aws/dataexchange/model/GrantDistributionScope.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 DataExchange {
26namespace Model {
28 public:
29 AWS_DATAEXCHANGE_API GetReceivedDataGrantResult() = default;
32
34
37 inline const Aws::String& GetName() const { return m_name; }
38 template <typename NameT = Aws::String>
39 void SetName(NameT&& value) {
40 m_nameHasBeenSet = true;
41 m_name = std::forward<NameT>(value);
42 }
43 template <typename NameT = Aws::String>
45 SetName(std::forward<NameT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetSenderPrincipal() const { return m_senderPrincipal; }
55 template <typename SenderPrincipalT = Aws::String>
56 void SetSenderPrincipal(SenderPrincipalT&& value) {
57 m_senderPrincipalHasBeenSet = true;
58 m_senderPrincipal = std::forward<SenderPrincipalT>(value);
59 }
60 template <typename SenderPrincipalT = Aws::String>
62 SetSenderPrincipal(std::forward<SenderPrincipalT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::String& GetReceiverPrincipal() const { return m_receiverPrincipal; }
72 template <typename ReceiverPrincipalT = Aws::String>
73 void SetReceiverPrincipal(ReceiverPrincipalT&& value) {
74 m_receiverPrincipalHasBeenSet = true;
75 m_receiverPrincipal = std::forward<ReceiverPrincipalT>(value);
76 }
77 template <typename ReceiverPrincipalT = Aws::String>
79 SetReceiverPrincipal(std::forward<ReceiverPrincipalT>(value));
80 return *this;
81 }
83
85
88 inline const Aws::String& GetDescription() const { return m_description; }
89 template <typename DescriptionT = Aws::String>
90 void SetDescription(DescriptionT&& value) {
91 m_descriptionHasBeenSet = true;
92 m_description = std::forward<DescriptionT>(value);
93 }
94 template <typename DescriptionT = Aws::String>
96 SetDescription(std::forward<DescriptionT>(value));
97 return *this;
98 }
100
102
105 inline DataGrantAcceptanceState GetAcceptanceState() const { return m_acceptanceState; }
107 m_acceptanceStateHasBeenSet = true;
108 m_acceptanceState = value;
109 }
111 SetAcceptanceState(value);
112 return *this;
113 }
115
117
120 inline const Aws::Utils::DateTime& GetAcceptedAt() const { return m_acceptedAt; }
121 template <typename AcceptedAtT = Aws::Utils::DateTime>
122 void SetAcceptedAt(AcceptedAtT&& value) {
123 m_acceptedAtHasBeenSet = true;
124 m_acceptedAt = std::forward<AcceptedAtT>(value);
125 }
126 template <typename AcceptedAtT = Aws::Utils::DateTime>
128 SetAcceptedAt(std::forward<AcceptedAtT>(value));
129 return *this;
130 }
132
134
137 inline const Aws::Utils::DateTime& GetEndsAt() const { return m_endsAt; }
138 template <typename EndsAtT = Aws::Utils::DateTime>
139 void SetEndsAt(EndsAtT&& value) {
140 m_endsAtHasBeenSet = true;
141 m_endsAt = std::forward<EndsAtT>(value);
142 }
143 template <typename EndsAtT = Aws::Utils::DateTime>
145 SetEndsAt(std::forward<EndsAtT>(value));
146 return *this;
147 }
149
151
154 inline GrantDistributionScope GetGrantDistributionScope() const { return m_grantDistributionScope; }
156 m_grantDistributionScopeHasBeenSet = true;
157 m_grantDistributionScope = value;
158 }
161 return *this;
162 }
164
166
169 inline const Aws::String& GetDataSetId() const { return m_dataSetId; }
170 template <typename DataSetIdT = Aws::String>
171 void SetDataSetId(DataSetIdT&& value) {
172 m_dataSetIdHasBeenSet = true;
173 m_dataSetId = std::forward<DataSetIdT>(value);
174 }
175 template <typename DataSetIdT = Aws::String>
177 SetDataSetId(std::forward<DataSetIdT>(value));
178 return *this;
179 }
181
183
186 inline const Aws::String& GetId() const { return m_id; }
187 template <typename IdT = Aws::String>
188 void SetId(IdT&& value) {
189 m_idHasBeenSet = true;
190 m_id = std::forward<IdT>(value);
191 }
192 template <typename IdT = Aws::String>
194 SetId(std::forward<IdT>(value));
195 return *this;
196 }
198
200
203 inline const Aws::String& GetArn() const { return m_arn; }
204 template <typename ArnT = Aws::String>
205 void SetArn(ArnT&& value) {
206 m_arnHasBeenSet = true;
207 m_arn = std::forward<ArnT>(value);
208 }
209 template <typename ArnT = Aws::String>
211 SetArn(std::forward<ArnT>(value));
212 return *this;
213 }
215
217
220 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
221 template <typename CreatedAtT = Aws::Utils::DateTime>
222 void SetCreatedAt(CreatedAtT&& value) {
223 m_createdAtHasBeenSet = true;
224 m_createdAt = std::forward<CreatedAtT>(value);
225 }
226 template <typename CreatedAtT = Aws::Utils::DateTime>
228 SetCreatedAt(std::forward<CreatedAtT>(value));
229 return *this;
230 }
232
234
237 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
238 template <typename UpdatedAtT = Aws::Utils::DateTime>
239 void SetUpdatedAt(UpdatedAtT&& value) {
240 m_updatedAtHasBeenSet = true;
241 m_updatedAt = std::forward<UpdatedAtT>(value);
242 }
243 template <typename UpdatedAtT = Aws::Utils::DateTime>
245 SetUpdatedAt(std::forward<UpdatedAtT>(value));
246 return *this;
247 }
249
251
252 inline const Aws::String& GetRequestId() const { return m_requestId; }
253 template <typename RequestIdT = Aws::String>
254 void SetRequestId(RequestIdT&& value) {
255 m_requestIdHasBeenSet = true;
256 m_requestId = std::forward<RequestIdT>(value);
257 }
258 template <typename RequestIdT = Aws::String>
260 SetRequestId(std::forward<RequestIdT>(value));
261 return *this;
262 }
264 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
265
266 private:
267 Aws::String m_name;
268
269 Aws::String m_senderPrincipal;
270
271 Aws::String m_receiverPrincipal;
272
273 Aws::String m_description;
274
276
277 Aws::Utils::DateTime m_acceptedAt{};
278
279 Aws::Utils::DateTime m_endsAt{};
280
282
283 Aws::String m_dataSetId;
284
285 Aws::String m_id;
286
287 Aws::String m_arn;
288
289 Aws::Utils::DateTime m_createdAt{};
290
291 Aws::Utils::DateTime m_updatedAt{};
292
293 Aws::String m_requestId;
294 Aws::Http::HttpResponseCode m_HttpResponseCode;
295 bool m_nameHasBeenSet = false;
296 bool m_senderPrincipalHasBeenSet = false;
297 bool m_receiverPrincipalHasBeenSet = false;
298 bool m_descriptionHasBeenSet = false;
299 bool m_acceptanceStateHasBeenSet = false;
300 bool m_acceptedAtHasBeenSet = false;
301 bool m_endsAtHasBeenSet = false;
302 bool m_grantDistributionScopeHasBeenSet = false;
303 bool m_dataSetIdHasBeenSet = false;
304 bool m_idHasBeenSet = false;
305 bool m_arnHasBeenSet = false;
306 bool m_createdAtHasBeenSet = false;
307 bool m_updatedAtHasBeenSet = false;
308 bool m_requestIdHasBeenSet = false;
309};
310
311} // namespace Model
312} // namespace DataExchange
313} // namespace Aws
GetReceivedDataGrantResult & WithDataSetId(DataSetIdT &&value)
GetReceivedDataGrantResult & WithDescription(DescriptionT &&value)
GetReceivedDataGrantResult & WithName(NameT &&value)
GetReceivedDataGrantResult & WithGrantDistributionScope(GrantDistributionScope value)
GetReceivedDataGrantResult & WithEndsAt(EndsAtT &&value)
AWS_DATAEXCHANGE_API GetReceivedDataGrantResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_DATAEXCHANGE_API GetReceivedDataGrantResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetReceivedDataGrantResult & WithUpdatedAt(UpdatedAtT &&value)
AWS_DATAEXCHANGE_API GetReceivedDataGrantResult()=default
GetReceivedDataGrantResult & WithCreatedAt(CreatedAtT &&value)
GetReceivedDataGrantResult & WithAcceptedAt(AcceptedAtT &&value)
GetReceivedDataGrantResult & WithSenderPrincipal(SenderPrincipalT &&value)
GetReceivedDataGrantResult & WithReceiverPrincipal(ReceiverPrincipalT &&value)
GetReceivedDataGrantResult & WithAcceptanceState(DataGrantAcceptanceState value)
GetReceivedDataGrantResult & WithRequestId(RequestIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue