AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
CreateDataGrantResult.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/dataexchange/DataExchange_EXPORTS.h>
12#include <aws/dataexchange/model/DataGrantAcceptanceState.h>
13#include <aws/dataexchange/model/GrantDistributionScope.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 DataExchange {
27namespace Model {
29 public:
30 AWS_DATAEXCHANGE_API CreateDataGrantResult() = default;
33
35
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 const Aws::String& GetSenderPrincipal() const { return m_senderPrincipal; }
56 template <typename SenderPrincipalT = Aws::String>
57 void SetSenderPrincipal(SenderPrincipalT&& value) {
58 m_senderPrincipalHasBeenSet = true;
59 m_senderPrincipal = std::forward<SenderPrincipalT>(value);
60 }
61 template <typename SenderPrincipalT = Aws::String>
62 CreateDataGrantResult& WithSenderPrincipal(SenderPrincipalT&& value) {
63 SetSenderPrincipal(std::forward<SenderPrincipalT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetReceiverPrincipal() const { return m_receiverPrincipal; }
73 template <typename ReceiverPrincipalT = Aws::String>
74 void SetReceiverPrincipal(ReceiverPrincipalT&& value) {
75 m_receiverPrincipalHasBeenSet = true;
76 m_receiverPrincipal = std::forward<ReceiverPrincipalT>(value);
77 }
78 template <typename ReceiverPrincipalT = Aws::String>
79 CreateDataGrantResult& WithReceiverPrincipal(ReceiverPrincipalT&& value) {
80 SetReceiverPrincipal(std::forward<ReceiverPrincipalT>(value));
81 return *this;
82 }
84
86
89 inline const Aws::String& GetDescription() const { return m_description; }
90 template <typename DescriptionT = Aws::String>
91 void SetDescription(DescriptionT&& value) {
92 m_descriptionHasBeenSet = true;
93 m_description = std::forward<DescriptionT>(value);
94 }
95 template <typename DescriptionT = Aws::String>
96 CreateDataGrantResult& WithDescription(DescriptionT&& value) {
97 SetDescription(std::forward<DescriptionT>(value));
98 return *this;
99 }
101
103
106 inline DataGrantAcceptanceState GetAcceptanceState() const { return m_acceptanceState; }
108 m_acceptanceStateHasBeenSet = true;
109 m_acceptanceState = value;
110 }
112 SetAcceptanceState(value);
113 return *this;
114 }
116
118
121 inline const Aws::Utils::DateTime& GetAcceptedAt() const { return m_acceptedAt; }
122 template <typename AcceptedAtT = Aws::Utils::DateTime>
123 void SetAcceptedAt(AcceptedAtT&& value) {
124 m_acceptedAtHasBeenSet = true;
125 m_acceptedAt = std::forward<AcceptedAtT>(value);
126 }
127 template <typename AcceptedAtT = Aws::Utils::DateTime>
128 CreateDataGrantResult& WithAcceptedAt(AcceptedAtT&& value) {
129 SetAcceptedAt(std::forward<AcceptedAtT>(value));
130 return *this;
131 }
133
135
138 inline const Aws::Utils::DateTime& GetEndsAt() const { return m_endsAt; }
139 template <typename EndsAtT = Aws::Utils::DateTime>
140 void SetEndsAt(EndsAtT&& value) {
141 m_endsAtHasBeenSet = true;
142 m_endsAt = std::forward<EndsAtT>(value);
143 }
144 template <typename EndsAtT = Aws::Utils::DateTime>
146 SetEndsAt(std::forward<EndsAtT>(value));
147 return *this;
148 }
150
152
155 inline GrantDistributionScope GetGrantDistributionScope() const { return m_grantDistributionScope; }
157 m_grantDistributionScopeHasBeenSet = true;
158 m_grantDistributionScope = value;
159 }
162 return *this;
163 }
165
167
170 inline const Aws::String& GetDataSetId() const { return m_dataSetId; }
171 template <typename DataSetIdT = Aws::String>
172 void SetDataSetId(DataSetIdT&& value) {
173 m_dataSetIdHasBeenSet = true;
174 m_dataSetId = std::forward<DataSetIdT>(value);
175 }
176 template <typename DataSetIdT = Aws::String>
178 SetDataSetId(std::forward<DataSetIdT>(value));
179 return *this;
180 }
182
184
187 inline const Aws::String& GetSourceDataSetId() const { return m_sourceDataSetId; }
188 template <typename SourceDataSetIdT = Aws::String>
189 void SetSourceDataSetId(SourceDataSetIdT&& value) {
190 m_sourceDataSetIdHasBeenSet = true;
191 m_sourceDataSetId = std::forward<SourceDataSetIdT>(value);
192 }
193 template <typename SourceDataSetIdT = Aws::String>
194 CreateDataGrantResult& WithSourceDataSetId(SourceDataSetIdT&& value) {
195 SetSourceDataSetId(std::forward<SourceDataSetIdT>(value));
196 return *this;
197 }
199
201
204 inline const Aws::String& GetId() const { return m_id; }
205 template <typename IdT = Aws::String>
206 void SetId(IdT&& value) {
207 m_idHasBeenSet = true;
208 m_id = std::forward<IdT>(value);
209 }
210 template <typename IdT = Aws::String>
212 SetId(std::forward<IdT>(value));
213 return *this;
214 }
216
218
221 inline const Aws::String& GetArn() const { return m_arn; }
222 template <typename ArnT = Aws::String>
223 void SetArn(ArnT&& value) {
224 m_arnHasBeenSet = true;
225 m_arn = std::forward<ArnT>(value);
226 }
227 template <typename ArnT = Aws::String>
229 SetArn(std::forward<ArnT>(value));
230 return *this;
231 }
233
235
238 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
239 template <typename CreatedAtT = Aws::Utils::DateTime>
240 void SetCreatedAt(CreatedAtT&& value) {
241 m_createdAtHasBeenSet = true;
242 m_createdAt = std::forward<CreatedAtT>(value);
243 }
244 template <typename CreatedAtT = Aws::Utils::DateTime>
246 SetCreatedAt(std::forward<CreatedAtT>(value));
247 return *this;
248 }
250
252
255 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
256 template <typename UpdatedAtT = Aws::Utils::DateTime>
257 void SetUpdatedAt(UpdatedAtT&& value) {
258 m_updatedAtHasBeenSet = true;
259 m_updatedAt = std::forward<UpdatedAtT>(value);
260 }
261 template <typename UpdatedAtT = Aws::Utils::DateTime>
263 SetUpdatedAt(std::forward<UpdatedAtT>(value));
264 return *this;
265 }
267
269
272 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
273 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
274 void SetTags(TagsT&& value) {
275 m_tagsHasBeenSet = true;
276 m_tags = std::forward<TagsT>(value);
277 }
278 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
280 SetTags(std::forward<TagsT>(value));
281 return *this;
282 }
283 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
284 CreateDataGrantResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
285 m_tagsHasBeenSet = true;
286 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
287 return *this;
288 }
290
292
293 inline const Aws::String& GetRequestId() const { return m_requestId; }
294 template <typename RequestIdT = Aws::String>
295 void SetRequestId(RequestIdT&& value) {
296 m_requestIdHasBeenSet = true;
297 m_requestId = std::forward<RequestIdT>(value);
298 }
299 template <typename RequestIdT = Aws::String>
301 SetRequestId(std::forward<RequestIdT>(value));
302 return *this;
303 }
305 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
306
307 private:
308 Aws::String m_name;
309
310 Aws::String m_senderPrincipal;
311
312 Aws::String m_receiverPrincipal;
313
314 Aws::String m_description;
315
317
318 Aws::Utils::DateTime m_acceptedAt{};
319
320 Aws::Utils::DateTime m_endsAt{};
321
323
324 Aws::String m_dataSetId;
325
326 Aws::String m_sourceDataSetId;
327
328 Aws::String m_id;
329
330 Aws::String m_arn;
331
332 Aws::Utils::DateTime m_createdAt{};
333
334 Aws::Utils::DateTime m_updatedAt{};
335
337
338 Aws::String m_requestId;
339 Aws::Http::HttpResponseCode m_HttpResponseCode;
340 bool m_nameHasBeenSet = false;
341 bool m_senderPrincipalHasBeenSet = false;
342 bool m_receiverPrincipalHasBeenSet = false;
343 bool m_descriptionHasBeenSet = false;
344 bool m_acceptanceStateHasBeenSet = false;
345 bool m_acceptedAtHasBeenSet = false;
346 bool m_endsAtHasBeenSet = false;
347 bool m_grantDistributionScopeHasBeenSet = false;
348 bool m_dataSetIdHasBeenSet = false;
349 bool m_sourceDataSetIdHasBeenSet = false;
350 bool m_idHasBeenSet = false;
351 bool m_arnHasBeenSet = false;
352 bool m_createdAtHasBeenSet = false;
353 bool m_updatedAtHasBeenSet = false;
354 bool m_tagsHasBeenSet = false;
355 bool m_requestIdHasBeenSet = false;
356};
357
358} // namespace Model
359} // namespace DataExchange
360} // namespace Aws
CreateDataGrantResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateDataGrantResult & WithDescription(DescriptionT &&value)
CreateDataGrantResult & WithEndsAt(EndsAtT &&value)
CreateDataGrantResult & WithSourceDataSetId(SourceDataSetIdT &&value)
CreateDataGrantResult & WithTags(TagsT &&value)
CreateDataGrantResult & WithAcceptanceState(DataGrantAcceptanceState value)
const Aws::Utils::DateTime & GetCreatedAt() const
CreateDataGrantResult & WithDataSetId(DataSetIdT &&value)
CreateDataGrantResult & WithName(NameT &&value)
CreateDataGrantResult & WithSenderPrincipal(SenderPrincipalT &&value)
CreateDataGrantResult & WithCreatedAt(CreatedAtT &&value)
const Aws::Utils::DateTime & GetEndsAt() const
CreateDataGrantResult & WithAcceptedAt(AcceptedAtT &&value)
AWS_DATAEXCHANGE_API CreateDataGrantResult()=default
Aws::Http::HttpResponseCode GetHttpResponseCode() const
CreateDataGrantResult & WithUpdatedAt(UpdatedAtT &&value)
CreateDataGrantResult & WithArn(ArnT &&value)
void SetAcceptanceState(DataGrantAcceptanceState value)
AWS_DATAEXCHANGE_API CreateDataGrantResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetGrantDistributionScope(GrantDistributionScope value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_DATAEXCHANGE_API CreateDataGrantResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetReceiverPrincipal(ReceiverPrincipalT &&value)
const Aws::Utils::DateTime & GetAcceptedAt() const
const Aws::Utils::DateTime & GetUpdatedAt() const
CreateDataGrantResult & WithRequestId(RequestIdT &&value)
CreateDataGrantResult & WithReceiverPrincipal(ReceiverPrincipalT &&value)
CreateDataGrantResult & WithGrantDistributionScope(GrantDistributionScope 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