AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateDataGrantResult.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/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 CreateDataGrantResult() = 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>
61 CreateDataGrantResult& WithSenderPrincipal(SenderPrincipalT&& value) {
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>
78 CreateDataGrantResult& WithReceiverPrincipal(ReceiverPrincipalT&& value) {
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>
95 CreateDataGrantResult& WithDescription(DescriptionT&& value) {
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>
127 CreateDataGrantResult& WithAcceptedAt(AcceptedAtT&& value) {
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& GetSourceDataSetId() const { return m_sourceDataSetId; }
187 template <typename SourceDataSetIdT = Aws::String>
188 void SetSourceDataSetId(SourceDataSetIdT&& value) {
189 m_sourceDataSetIdHasBeenSet = true;
190 m_sourceDataSetId = std::forward<SourceDataSetIdT>(value);
191 }
192 template <typename SourceDataSetIdT = Aws::String>
193 CreateDataGrantResult& WithSourceDataSetId(SourceDataSetIdT&& value) {
194 SetSourceDataSetId(std::forward<SourceDataSetIdT>(value));
195 return *this;
196 }
198
200
203 inline const Aws::String& GetId() const { return m_id; }
204 template <typename IdT = Aws::String>
205 void SetId(IdT&& value) {
206 m_idHasBeenSet = true;
207 m_id = std::forward<IdT>(value);
208 }
209 template <typename IdT = Aws::String>
211 SetId(std::forward<IdT>(value));
212 return *this;
213 }
215
217
220 inline const Aws::String& GetArn() const { return m_arn; }
221 template <typename ArnT = Aws::String>
222 void SetArn(ArnT&& value) {
223 m_arnHasBeenSet = true;
224 m_arn = std::forward<ArnT>(value);
225 }
226 template <typename ArnT = Aws::String>
228 SetArn(std::forward<ArnT>(value));
229 return *this;
230 }
232
234
237 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
238 template <typename CreatedAtT = Aws::Utils::DateTime>
239 void SetCreatedAt(CreatedAtT&& value) {
240 m_createdAtHasBeenSet = true;
241 m_createdAt = std::forward<CreatedAtT>(value);
242 }
243 template <typename CreatedAtT = Aws::Utils::DateTime>
245 SetCreatedAt(std::forward<CreatedAtT>(value));
246 return *this;
247 }
249
251
254 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
255 template <typename UpdatedAtT = Aws::Utils::DateTime>
256 void SetUpdatedAt(UpdatedAtT&& value) {
257 m_updatedAtHasBeenSet = true;
258 m_updatedAt = std::forward<UpdatedAtT>(value);
259 }
260 template <typename UpdatedAtT = Aws::Utils::DateTime>
262 SetUpdatedAt(std::forward<UpdatedAtT>(value));
263 return *this;
264 }
266
268
271 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
272 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
273 void SetTags(TagsT&& value) {
274 m_tagsHasBeenSet = true;
275 m_tags = std::forward<TagsT>(value);
276 }
277 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
279 SetTags(std::forward<TagsT>(value));
280 return *this;
281 }
282 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
283 CreateDataGrantResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
284 m_tagsHasBeenSet = true;
285 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
286 return *this;
287 }
289
291
292 inline const Aws::String& GetRequestId() const { return m_requestId; }
293 template <typename RequestIdT = Aws::String>
294 void SetRequestId(RequestIdT&& value) {
295 m_requestIdHasBeenSet = true;
296 m_requestId = std::forward<RequestIdT>(value);
297 }
298 template <typename RequestIdT = Aws::String>
300 SetRequestId(std::forward<RequestIdT>(value));
301 return *this;
302 }
304 private:
305 Aws::String m_name;
306
307 Aws::String m_senderPrincipal;
308
309 Aws::String m_receiverPrincipal;
310
311 Aws::String m_description;
312
314
315 Aws::Utils::DateTime m_acceptedAt{};
316
317 Aws::Utils::DateTime m_endsAt{};
318
320
321 Aws::String m_dataSetId;
322
323 Aws::String m_sourceDataSetId;
324
325 Aws::String m_id;
326
327 Aws::String m_arn;
328
329 Aws::Utils::DateTime m_createdAt{};
330
331 Aws::Utils::DateTime m_updatedAt{};
332
334
335 Aws::String m_requestId;
336 bool m_nameHasBeenSet = false;
337 bool m_senderPrincipalHasBeenSet = false;
338 bool m_receiverPrincipalHasBeenSet = false;
339 bool m_descriptionHasBeenSet = false;
340 bool m_acceptanceStateHasBeenSet = false;
341 bool m_acceptedAtHasBeenSet = false;
342 bool m_endsAtHasBeenSet = false;
343 bool m_grantDistributionScopeHasBeenSet = false;
344 bool m_dataSetIdHasBeenSet = false;
345 bool m_sourceDataSetIdHasBeenSet = false;
346 bool m_idHasBeenSet = false;
347 bool m_arnHasBeenSet = false;
348 bool m_createdAtHasBeenSet = false;
349 bool m_updatedAtHasBeenSet = false;
350 bool m_tagsHasBeenSet = false;
351 bool m_requestIdHasBeenSet = false;
352};
353
354} // namespace Model
355} // namespace DataExchange
356} // 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
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