AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
37
38
40
43 inline const Aws::String& GetName() const{ return m_name; }
44 inline void SetName(const Aws::String& value) { m_name = value; }
45 inline void SetName(Aws::String&& value) { m_name = std::move(value); }
46 inline void SetName(const char* value) { m_name.assign(value); }
47 inline GetDataGrantResult& WithName(const Aws::String& value) { SetName(value); return *this;}
48 inline GetDataGrantResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
49 inline GetDataGrantResult& WithName(const char* value) { SetName(value); return *this;}
51
53
56 inline const Aws::String& GetSenderPrincipal() const{ return m_senderPrincipal; }
57 inline void SetSenderPrincipal(const Aws::String& value) { m_senderPrincipal = value; }
58 inline void SetSenderPrincipal(Aws::String&& value) { m_senderPrincipal = std::move(value); }
59 inline void SetSenderPrincipal(const char* value) { m_senderPrincipal.assign(value); }
60 inline GetDataGrantResult& WithSenderPrincipal(const Aws::String& value) { SetSenderPrincipal(value); return *this;}
61 inline GetDataGrantResult& WithSenderPrincipal(Aws::String&& value) { SetSenderPrincipal(std::move(value)); return *this;}
62 inline GetDataGrantResult& WithSenderPrincipal(const char* value) { SetSenderPrincipal(value); return *this;}
64
66
69 inline const Aws::String& GetReceiverPrincipal() const{ return m_receiverPrincipal; }
70 inline void SetReceiverPrincipal(const Aws::String& value) { m_receiverPrincipal = value; }
71 inline void SetReceiverPrincipal(Aws::String&& value) { m_receiverPrincipal = std::move(value); }
72 inline void SetReceiverPrincipal(const char* value) { m_receiverPrincipal.assign(value); }
73 inline GetDataGrantResult& WithReceiverPrincipal(const Aws::String& value) { SetReceiverPrincipal(value); return *this;}
74 inline GetDataGrantResult& WithReceiverPrincipal(Aws::String&& value) { SetReceiverPrincipal(std::move(value)); return *this;}
75 inline GetDataGrantResult& WithReceiverPrincipal(const char* value) { SetReceiverPrincipal(value); return *this;}
77
79
82 inline const Aws::String& GetDescription() const{ return m_description; }
83 inline void SetDescription(const Aws::String& value) { m_description = value; }
84 inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
85 inline void SetDescription(const char* value) { m_description.assign(value); }
86 inline GetDataGrantResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
87 inline GetDataGrantResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
88 inline GetDataGrantResult& WithDescription(const char* value) { SetDescription(value); return *this;}
90
92
95 inline const DataGrantAcceptanceState& GetAcceptanceState() const{ return m_acceptanceState; }
96 inline void SetAcceptanceState(const DataGrantAcceptanceState& value) { m_acceptanceState = value; }
97 inline void SetAcceptanceState(DataGrantAcceptanceState&& value) { m_acceptanceState = std::move(value); }
99 inline GetDataGrantResult& WithAcceptanceState(DataGrantAcceptanceState&& value) { SetAcceptanceState(std::move(value)); return *this;}
101
103
106 inline const Aws::Utils::DateTime& GetAcceptedAt() const{ return m_acceptedAt; }
107 inline void SetAcceptedAt(const Aws::Utils::DateTime& value) { m_acceptedAt = value; }
108 inline void SetAcceptedAt(Aws::Utils::DateTime&& value) { m_acceptedAt = std::move(value); }
109 inline GetDataGrantResult& WithAcceptedAt(const Aws::Utils::DateTime& value) { SetAcceptedAt(value); return *this;}
110 inline GetDataGrantResult& WithAcceptedAt(Aws::Utils::DateTime&& value) { SetAcceptedAt(std::move(value)); return *this;}
112
114
117 inline const Aws::Utils::DateTime& GetEndsAt() const{ return m_endsAt; }
118 inline void SetEndsAt(const Aws::Utils::DateTime& value) { m_endsAt = value; }
119 inline void SetEndsAt(Aws::Utils::DateTime&& value) { m_endsAt = std::move(value); }
120 inline GetDataGrantResult& WithEndsAt(const Aws::Utils::DateTime& value) { SetEndsAt(value); return *this;}
121 inline GetDataGrantResult& WithEndsAt(Aws::Utils::DateTime&& value) { SetEndsAt(std::move(value)); return *this;}
123
125
128 inline const GrantDistributionScope& GetGrantDistributionScope() const{ return m_grantDistributionScope; }
129 inline void SetGrantDistributionScope(const GrantDistributionScope& value) { m_grantDistributionScope = value; }
130 inline void SetGrantDistributionScope(GrantDistributionScope&& value) { m_grantDistributionScope = std::move(value); }
134
136
139 inline const Aws::String& GetDataSetId() const{ return m_dataSetId; }
140 inline void SetDataSetId(const Aws::String& value) { m_dataSetId = value; }
141 inline void SetDataSetId(Aws::String&& value) { m_dataSetId = std::move(value); }
142 inline void SetDataSetId(const char* value) { m_dataSetId.assign(value); }
143 inline GetDataGrantResult& WithDataSetId(const Aws::String& value) { SetDataSetId(value); return *this;}
144 inline GetDataGrantResult& WithDataSetId(Aws::String&& value) { SetDataSetId(std::move(value)); return *this;}
145 inline GetDataGrantResult& WithDataSetId(const char* value) { SetDataSetId(value); return *this;}
147
149
152 inline const Aws::String& GetSourceDataSetId() const{ return m_sourceDataSetId; }
153 inline void SetSourceDataSetId(const Aws::String& value) { m_sourceDataSetId = value; }
154 inline void SetSourceDataSetId(Aws::String&& value) { m_sourceDataSetId = std::move(value); }
155 inline void SetSourceDataSetId(const char* value) { m_sourceDataSetId.assign(value); }
156 inline GetDataGrantResult& WithSourceDataSetId(const Aws::String& value) { SetSourceDataSetId(value); return *this;}
157 inline GetDataGrantResult& WithSourceDataSetId(Aws::String&& value) { SetSourceDataSetId(std::move(value)); return *this;}
158 inline GetDataGrantResult& WithSourceDataSetId(const char* value) { SetSourceDataSetId(value); return *this;}
160
162
165 inline const Aws::String& GetId() const{ return m_id; }
166 inline void SetId(const Aws::String& value) { m_id = value; }
167 inline void SetId(Aws::String&& value) { m_id = std::move(value); }
168 inline void SetId(const char* value) { m_id.assign(value); }
169 inline GetDataGrantResult& WithId(const Aws::String& value) { SetId(value); return *this;}
170 inline GetDataGrantResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
171 inline GetDataGrantResult& WithId(const char* value) { SetId(value); return *this;}
173
175
178 inline const Aws::String& GetArn() const{ return m_arn; }
179 inline void SetArn(const Aws::String& value) { m_arn = value; }
180 inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
181 inline void SetArn(const char* value) { m_arn.assign(value); }
182 inline GetDataGrantResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
183 inline GetDataGrantResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
184 inline GetDataGrantResult& WithArn(const char* value) { SetArn(value); return *this;}
186
188
191 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
192 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAt = value; }
193 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAt = std::move(value); }
194 inline GetDataGrantResult& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
195 inline GetDataGrantResult& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
197
199
202 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
203 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAt = value; }
204 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAt = std::move(value); }
205 inline GetDataGrantResult& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
206 inline GetDataGrantResult& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
208
210
213 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
214 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tags = value; }
215 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tags = std::move(value); }
216 inline GetDataGrantResult& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
217 inline GetDataGrantResult& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
218 inline GetDataGrantResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; }
219 inline GetDataGrantResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; }
220 inline GetDataGrantResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
221 inline GetDataGrantResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; }
222 inline GetDataGrantResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
223 inline GetDataGrantResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; }
224 inline GetDataGrantResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; }
226
228
229 inline const Aws::String& GetRequestId() const{ return m_requestId; }
230 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
231 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
232 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
233 inline GetDataGrantResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
234 inline GetDataGrantResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
235 inline GetDataGrantResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
237 private:
238
239 Aws::String m_name;
240
241 Aws::String m_senderPrincipal;
242
243 Aws::String m_receiverPrincipal;
244
245 Aws::String m_description;
246
247 DataGrantAcceptanceState m_acceptanceState;
248
249 Aws::Utils::DateTime m_acceptedAt;
250
251 Aws::Utils::DateTime m_endsAt;
252
253 GrantDistributionScope m_grantDistributionScope;
254
255 Aws::String m_dataSetId;
256
257 Aws::String m_sourceDataSetId;
258
259 Aws::String m_id;
260
261 Aws::String m_arn;
262
263 Aws::Utils::DateTime m_createdAt;
264
265 Aws::Utils::DateTime m_updatedAt;
266
268
269 Aws::String m_requestId;
270 };
271
272} // namespace Model
273} // namespace DataExchange
274} // namespace Aws
GetDataGrantResult & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetGrantDistributionScope(const GrantDistributionScope &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const GrantDistributionScope & GetGrantDistributionScope() const
void SetAcceptanceState(DataGrantAcceptanceState &&value)
GetDataGrantResult & WithDataSetId(const char *value)
GetDataGrantResult & WithGrantDistributionScope(const GrantDistributionScope &value)
const Aws::Utils::DateTime & GetAcceptedAt() const
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
GetDataGrantResult & WithDescription(Aws::String &&value)
GetDataGrantResult & WithEndsAt(const Aws::Utils::DateTime &value)
GetDataGrantResult & WithRequestId(Aws::String &&value)
void SetUpdatedAt(Aws::Utils::DateTime &&value)
GetDataGrantResult & WithDataSetId(Aws::String &&value)
GetDataGrantResult & AddTags(Aws::String &&key, const Aws::String &value)
const Aws::Utils::DateTime & GetCreatedAt() const
const DataGrantAcceptanceState & GetAcceptanceState() const
GetDataGrantResult & AddTags(const char *key, const char *value)
GetDataGrantResult & WithSenderPrincipal(Aws::String &&value)
GetDataGrantResult & WithSenderPrincipal(const Aws::String &value)
GetDataGrantResult & WithCreatedAt(Aws::Utils::DateTime &&value)
void SetSenderPrincipal(const Aws::String &value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
GetDataGrantResult & WithArn(Aws::String &&value)
GetDataGrantResult & AddTags(Aws::String &&key, const char *value)
GetDataGrantResult & WithArn(const Aws::String &value)
GetDataGrantResult & WithAcceptedAt(const Aws::Utils::DateTime &value)
void SetAcceptanceState(const DataGrantAcceptanceState &value)
GetDataGrantResult & WithAcceptanceState(const DataGrantAcceptanceState &value)
GetDataGrantResult & AddTags(const Aws::String &key, Aws::String &&value)
GetDataGrantResult & AddTags(const char *key, Aws::String &&value)
void SetEndsAt(const Aws::Utils::DateTime &value)
GetDataGrantResult & WithDataSetId(const Aws::String &value)
GetDataGrantResult & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
AWS_DATAEXCHANGE_API GetDataGrantResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetAcceptedAt(Aws::Utils::DateTime &&value)
void SetReceiverPrincipal(const Aws::String &value)
GetDataGrantResult & WithReceiverPrincipal(const Aws::String &value)
void SetSourceDataSetId(const Aws::String &value)
void SetDescription(const Aws::String &value)
AWS_DATAEXCHANGE_API GetDataGrantResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetDataGrantResult & WithUpdatedAt(Aws::Utils::DateTime &&value)
GetDataGrantResult & WithId(const Aws::String &value)
GetDataGrantResult & AddTags(Aws::String &&key, Aws::String &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
GetDataGrantResult & AddTags(const Aws::String &key, const Aws::String &value)
GetDataGrantResult & WithName(Aws::String &&value)
GetDataGrantResult & WithName(const char *value)
void SetEndsAt(Aws::Utils::DateTime &&value)
GetDataGrantResult & WithDescription(const Aws::String &value)
GetDataGrantResult & WithUpdatedAt(const Aws::Utils::DateTime &value)
GetDataGrantResult & WithArn(const char *value)
GetDataGrantResult & WithEndsAt(Aws::Utils::DateTime &&value)
GetDataGrantResult & WithReceiverPrincipal(Aws::String &&value)
GetDataGrantResult & WithId(const char *value)
const Aws::Utils::DateTime & GetEndsAt() const
GetDataGrantResult & WithSourceDataSetId(Aws::String &&value)
GetDataGrantResult & WithReceiverPrincipal(const char *value)
GetDataGrantResult & WithRequestId(const Aws::String &value)
void SetUpdatedAt(const Aws::Utils::DateTime &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetAcceptedAt(const Aws::Utils::DateTime &value)
GetDataGrantResult & WithAcceptedAt(Aws::Utils::DateTime &&value)
GetDataGrantResult & WithGrantDistributionScope(GrantDistributionScope &&value)
GetDataGrantResult & WithDescription(const char *value)
GetDataGrantResult & WithSenderPrincipal(const char *value)
GetDataGrantResult & WithSourceDataSetId(const char *value)
GetDataGrantResult & WithId(Aws::String &&value)
GetDataGrantResult & WithCreatedAt(const Aws::Utils::DateTime &value)
void SetGrantDistributionScope(GrantDistributionScope &&value)
GetDataGrantResult & WithName(const Aws::String &value)
GetDataGrantResult & WithAcceptanceState(DataGrantAcceptanceState &&value)
GetDataGrantResult & WithSourceDataSetId(const Aws::String &value)
GetDataGrantResult & WithRequestId(const char *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