AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateDataGrantResult.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 CreateDataGrantResult();
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 CreateDataGrantResult& WithName(const Aws::String& value) { SetName(value); return *this;}
48 inline CreateDataGrantResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
49 inline CreateDataGrantResult& 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 CreateDataGrantResult& WithSenderPrincipal(const Aws::String& value) { SetSenderPrincipal(value); return *this;}
61 inline CreateDataGrantResult& WithSenderPrincipal(Aws::String&& value) { SetSenderPrincipal(std::move(value)); return *this;}
62 inline CreateDataGrantResult& 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 CreateDataGrantResult& WithReceiverPrincipal(const Aws::String& value) { SetReceiverPrincipal(value); return *this;}
74 inline CreateDataGrantResult& WithReceiverPrincipal(Aws::String&& value) { SetReceiverPrincipal(std::move(value)); return *this;}
75 inline CreateDataGrantResult& 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 CreateDataGrantResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
87 inline CreateDataGrantResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
88 inline CreateDataGrantResult& 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 CreateDataGrantResult& 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 CreateDataGrantResult& WithAcceptedAt(const Aws::Utils::DateTime& value) { SetAcceptedAt(value); return *this;}
110 inline CreateDataGrantResult& 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 CreateDataGrantResult& WithEndsAt(const Aws::Utils::DateTime& value) { SetEndsAt(value); return *this;}
121 inline CreateDataGrantResult& 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 CreateDataGrantResult& WithDataSetId(const Aws::String& value) { SetDataSetId(value); return *this;}
144 inline CreateDataGrantResult& WithDataSetId(Aws::String&& value) { SetDataSetId(std::move(value)); return *this;}
145 inline CreateDataGrantResult& 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 CreateDataGrantResult& WithSourceDataSetId(const Aws::String& value) { SetSourceDataSetId(value); return *this;}
157 inline CreateDataGrantResult& WithSourceDataSetId(Aws::String&& value) { SetSourceDataSetId(std::move(value)); return *this;}
158 inline CreateDataGrantResult& 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 CreateDataGrantResult& WithId(const Aws::String& value) { SetId(value); return *this;}
170 inline CreateDataGrantResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
171 inline CreateDataGrantResult& 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 CreateDataGrantResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
183 inline CreateDataGrantResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
184 inline CreateDataGrantResult& 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 CreateDataGrantResult& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
195 inline CreateDataGrantResult& 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 CreateDataGrantResult& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
206 inline CreateDataGrantResult& 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 CreateDataGrantResult& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
217 inline CreateDataGrantResult& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
218 inline CreateDataGrantResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; }
219 inline CreateDataGrantResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; }
220 inline CreateDataGrantResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
221 inline CreateDataGrantResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; }
222 inline CreateDataGrantResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
223 inline CreateDataGrantResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; }
224 inline CreateDataGrantResult& 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 CreateDataGrantResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
234 inline CreateDataGrantResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
235 inline CreateDataGrantResult& 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
CreateDataGrantResult & WithRequestId(const char *value)
void SetGrantDistributionScope(GrantDistributionScope &&value)
CreateDataGrantResult & WithDataSetId(const Aws::String &value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
CreateDataGrantResult & WithId(const Aws::String &value)
void SetAcceptanceState(const DataGrantAcceptanceState &value)
CreateDataGrantResult & WithUpdatedAt(Aws::Utils::DateTime &&value)
CreateDataGrantResult & WithAcceptedAt(const Aws::Utils::DateTime &value)
CreateDataGrantResult & WithAcceptanceState(DataGrantAcceptanceState &&value)
CreateDataGrantResult & WithArn(Aws::String &&value)
void SetEndsAt(const Aws::Utils::DateTime &value)
CreateDataGrantResult & WithReceiverPrincipal(const Aws::String &value)
CreateDataGrantResult & WithDescription(Aws::String &&value)
CreateDataGrantResult & WithName(const Aws::String &value)
const Aws::Utils::DateTime & GetCreatedAt() const
CreateDataGrantResult & AddTags(Aws::String &&key, Aws::String &&value)
CreateDataGrantResult & WithArn(const Aws::String &value)
CreateDataGrantResult & WithName(const char *value)
CreateDataGrantResult & WithUpdatedAt(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetEndsAt() const
CreateDataGrantResult & WithSourceDataSetId(Aws::String &&value)
const DataGrantAcceptanceState & GetAcceptanceState() const
CreateDataGrantResult & WithReceiverPrincipal(const char *value)
CreateDataGrantResult & AddTags(const char *key, const char *value)
CreateDataGrantResult & WithSourceDataSetId(const char *value)
CreateDataGrantResult & WithSourceDataSetId(const Aws::String &value)
CreateDataGrantResult & AddTags(const Aws::String &key, Aws::String &&value)
CreateDataGrantResult & AddTags(Aws::String &&key, const char *value)
CreateDataGrantResult & WithReceiverPrincipal(Aws::String &&value)
AWS_DATAEXCHANGE_API CreateDataGrantResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateDataGrantResult & WithEndsAt(const Aws::Utils::DateTime &value)
void SetAcceptanceState(DataGrantAcceptanceState &&value)
CreateDataGrantResult & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateDataGrantResult & WithDescription(const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateDataGrantResult & WithSenderPrincipal(const char *value)
void SetUpdatedAt(const Aws::Utils::DateTime &value)
CreateDataGrantResult & WithGrantDistributionScope(const GrantDistributionScope &value)
void SetAcceptedAt(const Aws::Utils::DateTime &value)
CreateDataGrantResult & AddTags(const char *key, Aws::String &&value)
CreateDataGrantResult & WithSenderPrincipal(Aws::String &&value)
CreateDataGrantResult & WithId(Aws::String &&value)
CreateDataGrantResult & WithAcceptanceState(const DataGrantAcceptanceState &value)
CreateDataGrantResult & WithSenderPrincipal(const Aws::String &value)
void SetGrantDistributionScope(const GrantDistributionScope &value)
CreateDataGrantResult & WithArn(const char *value)
CreateDataGrantResult & WithCreatedAt(const Aws::Utils::DateTime &value)
CreateDataGrantResult & WithEndsAt(Aws::Utils::DateTime &&value)
CreateDataGrantResult & WithAcceptedAt(Aws::Utils::DateTime &&value)
CreateDataGrantResult & WithRequestId(Aws::String &&value)
AWS_DATAEXCHANGE_API CreateDataGrantResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateDataGrantResult & AddTags(const Aws::String &key, const Aws::String &value)
CreateDataGrantResult & WithId(const char *value)
CreateDataGrantResult & WithDataSetId(Aws::String &&value)
CreateDataGrantResult & WithRequestId(const Aws::String &value)
CreateDataGrantResult & WithCreatedAt(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetAcceptedAt() const
CreateDataGrantResult & AddTags(Aws::String &&key, const Aws::String &value)
CreateDataGrantResult & WithGrantDistributionScope(GrantDistributionScope &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
const GrantDistributionScope & GetGrantDistributionScope() const
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateDataGrantResult & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateDataGrantResult & WithDataSetId(const char *value)
CreateDataGrantResult & WithDescription(const char *value)
CreateDataGrantResult & WithName(Aws::String &&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