AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
GetDataGrantResult.h
1
6#pragma once
7#include <aws/dataexchange/DataExchange_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/dataexchange/model/DataGrantAcceptanceState.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/dataexchange/model/GrantDistributionScope.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <utility>
14
15namespace Aws
16{
17template<typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace DataExchange
28{
29namespace Model
30{
32 {
33 public:
34 AWS_DATAEXCHANGE_API GetDataGrantResult() = default;
37
38
40
43 inline const Aws::String& GetName() const { return m_name; }
44 template<typename NameT = Aws::String>
45 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
46 template<typename NameT = Aws::String>
47 GetDataGrantResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
49
51
54 inline const Aws::String& GetSenderPrincipal() const { return m_senderPrincipal; }
55 template<typename SenderPrincipalT = Aws::String>
56 void SetSenderPrincipal(SenderPrincipalT&& value) { m_senderPrincipalHasBeenSet = true; m_senderPrincipal = std::forward<SenderPrincipalT>(value); }
57 template<typename SenderPrincipalT = Aws::String>
58 GetDataGrantResult& WithSenderPrincipal(SenderPrincipalT&& value) { SetSenderPrincipal(std::forward<SenderPrincipalT>(value)); return *this;}
60
62
65 inline const Aws::String& GetReceiverPrincipal() const { return m_receiverPrincipal; }
66 template<typename ReceiverPrincipalT = Aws::String>
67 void SetReceiverPrincipal(ReceiverPrincipalT&& value) { m_receiverPrincipalHasBeenSet = true; m_receiverPrincipal = std::forward<ReceiverPrincipalT>(value); }
68 template<typename ReceiverPrincipalT = Aws::String>
69 GetDataGrantResult& WithReceiverPrincipal(ReceiverPrincipalT&& value) { SetReceiverPrincipal(std::forward<ReceiverPrincipalT>(value)); return *this;}
71
73
76 inline const Aws::String& GetDescription() const { return m_description; }
77 template<typename DescriptionT = Aws::String>
78 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
79 template<typename DescriptionT = Aws::String>
80 GetDataGrantResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
82
84
87 inline DataGrantAcceptanceState GetAcceptanceState() const { return m_acceptanceState; }
88 inline void SetAcceptanceState(DataGrantAcceptanceState value) { m_acceptanceStateHasBeenSet = true; m_acceptanceState = value; }
91
93
96 inline const Aws::Utils::DateTime& GetAcceptedAt() const { return m_acceptedAt; }
97 template<typename AcceptedAtT = Aws::Utils::DateTime>
98 void SetAcceptedAt(AcceptedAtT&& value) { m_acceptedAtHasBeenSet = true; m_acceptedAt = std::forward<AcceptedAtT>(value); }
99 template<typename AcceptedAtT = Aws::Utils::DateTime>
100 GetDataGrantResult& WithAcceptedAt(AcceptedAtT&& value) { SetAcceptedAt(std::forward<AcceptedAtT>(value)); return *this;}
102
104
107 inline const Aws::Utils::DateTime& GetEndsAt() const { return m_endsAt; }
108 template<typename EndsAtT = Aws::Utils::DateTime>
109 void SetEndsAt(EndsAtT&& value) { m_endsAtHasBeenSet = true; m_endsAt = std::forward<EndsAtT>(value); }
110 template<typename EndsAtT = Aws::Utils::DateTime>
111 GetDataGrantResult& WithEndsAt(EndsAtT&& value) { SetEndsAt(std::forward<EndsAtT>(value)); return *this;}
113
115
118 inline GrantDistributionScope GetGrantDistributionScope() const { return m_grantDistributionScope; }
119 inline void SetGrantDistributionScope(GrantDistributionScope value) { m_grantDistributionScopeHasBeenSet = true; m_grantDistributionScope = value; }
122
124
127 inline const Aws::String& GetDataSetId() const { return m_dataSetId; }
128 template<typename DataSetIdT = Aws::String>
129 void SetDataSetId(DataSetIdT&& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = std::forward<DataSetIdT>(value); }
130 template<typename DataSetIdT = Aws::String>
131 GetDataGrantResult& WithDataSetId(DataSetIdT&& value) { SetDataSetId(std::forward<DataSetIdT>(value)); return *this;}
133
135
138 inline const Aws::String& GetSourceDataSetId() const { return m_sourceDataSetId; }
139 template<typename SourceDataSetIdT = Aws::String>
140 void SetSourceDataSetId(SourceDataSetIdT&& value) { m_sourceDataSetIdHasBeenSet = true; m_sourceDataSetId = std::forward<SourceDataSetIdT>(value); }
141 template<typename SourceDataSetIdT = Aws::String>
142 GetDataGrantResult& WithSourceDataSetId(SourceDataSetIdT&& value) { SetSourceDataSetId(std::forward<SourceDataSetIdT>(value)); return *this;}
144
146
149 inline const Aws::String& GetId() const { return m_id; }
150 template<typename IdT = Aws::String>
151 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
152 template<typename IdT = Aws::String>
153 GetDataGrantResult& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
155
157
160 inline const Aws::String& GetArn() const { return m_arn; }
161 template<typename ArnT = Aws::String>
162 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
163 template<typename ArnT = Aws::String>
164 GetDataGrantResult& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
166
168
171 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
172 template<typename CreatedAtT = Aws::Utils::DateTime>
173 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
174 template<typename CreatedAtT = Aws::Utils::DateTime>
175 GetDataGrantResult& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
177
179
182 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
183 template<typename UpdatedAtT = Aws::Utils::DateTime>
184 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
185 template<typename UpdatedAtT = Aws::Utils::DateTime>
186 GetDataGrantResult& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
188
190
193 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
194 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
195 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
196 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
197 GetDataGrantResult& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
198 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
199 GetDataGrantResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
200 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
201 }
203
205
206 inline const Aws::String& GetRequestId() const { return m_requestId; }
207 template<typename RequestIdT = Aws::String>
208 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
209 template<typename RequestIdT = Aws::String>
210 GetDataGrantResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
212 private:
213
214 Aws::String m_name;
215 bool m_nameHasBeenSet = false;
216
217 Aws::String m_senderPrincipal;
218 bool m_senderPrincipalHasBeenSet = false;
219
220 Aws::String m_receiverPrincipal;
221 bool m_receiverPrincipalHasBeenSet = false;
222
223 Aws::String m_description;
224 bool m_descriptionHasBeenSet = false;
225
227 bool m_acceptanceStateHasBeenSet = false;
228
229 Aws::Utils::DateTime m_acceptedAt{};
230 bool m_acceptedAtHasBeenSet = false;
231
232 Aws::Utils::DateTime m_endsAt{};
233 bool m_endsAtHasBeenSet = false;
234
236 bool m_grantDistributionScopeHasBeenSet = false;
237
238 Aws::String m_dataSetId;
239 bool m_dataSetIdHasBeenSet = false;
240
241 Aws::String m_sourceDataSetId;
242 bool m_sourceDataSetIdHasBeenSet = false;
243
244 Aws::String m_id;
245 bool m_idHasBeenSet = false;
246
247 Aws::String m_arn;
248 bool m_arnHasBeenSet = false;
249
250 Aws::Utils::DateTime m_createdAt{};
251 bool m_createdAtHasBeenSet = false;
252
253 Aws::Utils::DateTime m_updatedAt{};
254 bool m_updatedAtHasBeenSet = false;
255
257 bool m_tagsHasBeenSet = false;
258
259 Aws::String m_requestId;
260 bool m_requestIdHasBeenSet = false;
261 };
262
263} // namespace Model
264} // namespace DataExchange
265} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetAcceptanceState(DataGrantAcceptanceState value)
const Aws::Utils::DateTime & GetAcceptedAt() const
void SetReceiverPrincipal(ReceiverPrincipalT &&value)
GetDataGrantResult & WithRequestId(RequestIdT &&value)
GetDataGrantResult & WithEndsAt(EndsAtT &&value)
GetDataGrantResult & WithTags(TagsT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
GetDataGrantResult & WithUpdatedAt(UpdatedAtT &&value)
AWS_DATAEXCHANGE_API GetDataGrantResult()=default
GetDataGrantResult & WithSourceDataSetId(SourceDataSetIdT &&value)
GetDataGrantResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
GetDataGrantResult & WithSenderPrincipal(SenderPrincipalT &&value)
void SetSourceDataSetId(SourceDataSetIdT &&value)
GetDataGrantResult & WithId(IdT &&value)
GetDataGrantResult & WithReceiverPrincipal(ReceiverPrincipalT &&value)
GetDataGrantResult & WithCreatedAt(CreatedAtT &&value)
AWS_DATAEXCHANGE_API GetDataGrantResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GrantDistributionScope GetGrantDistributionScope() const
GetDataGrantResult & WithName(NameT &&value)
GetDataGrantResult & WithAcceptanceState(DataGrantAcceptanceState value)
AWS_DATAEXCHANGE_API GetDataGrantResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::DateTime & GetUpdatedAt() const
GetDataGrantResult & WithDataSetId(DataSetIdT &&value)
DataGrantAcceptanceState GetAcceptanceState() const
GetDataGrantResult & WithDescription(DescriptionT &&value)
void SetSenderPrincipal(SenderPrincipalT &&value)
GetDataGrantResult & WithAcceptedAt(AcceptedAtT &&value)
const Aws::Utils::DateTime & GetEndsAt() const
GetDataGrantResult & WithArn(ArnT &&value)
void SetGrantDistributionScope(GrantDistributionScope value)
GetDataGrantResult & 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