AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ReceivedDataGrantSummariesEntry.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/dataexchange/DataExchange_EXPORTS.h>
10#include <aws/dataexchange/model/DataGrantAcceptanceState.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace DataExchange {
22namespace Model {
23
30 public:
31 AWS_DATAEXCHANGE_API ReceivedDataGrantSummariesEntry() = default;
34 AWS_DATAEXCHANGE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetSenderPrincipal() const { return m_senderPrincipal; }
59 inline bool SenderPrincipalHasBeenSet() const { return m_senderPrincipalHasBeenSet; }
60 template <typename SenderPrincipalT = Aws::String>
61 void SetSenderPrincipal(SenderPrincipalT&& value) {
62 m_senderPrincipalHasBeenSet = true;
63 m_senderPrincipal = std::forward<SenderPrincipalT>(value);
64 }
65 template <typename SenderPrincipalT = Aws::String>
67 SetSenderPrincipal(std::forward<SenderPrincipalT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetReceiverPrincipal() const { return m_receiverPrincipal; }
77 inline bool ReceiverPrincipalHasBeenSet() const { return m_receiverPrincipalHasBeenSet; }
78 template <typename ReceiverPrincipalT = Aws::String>
79 void SetReceiverPrincipal(ReceiverPrincipalT&& value) {
80 m_receiverPrincipalHasBeenSet = true;
81 m_receiverPrincipal = std::forward<ReceiverPrincipalT>(value);
82 }
83 template <typename ReceiverPrincipalT = Aws::String>
85 SetReceiverPrincipal(std::forward<ReceiverPrincipalT>(value));
86 return *this;
87 }
89
91
94 inline DataGrantAcceptanceState GetAcceptanceState() const { return m_acceptanceState; }
95 inline bool AcceptanceStateHasBeenSet() const { return m_acceptanceStateHasBeenSet; }
97 m_acceptanceStateHasBeenSet = true;
98 m_acceptanceState = value;
99 }
101 SetAcceptanceState(value);
102 return *this;
103 }
105
107
110 inline const Aws::Utils::DateTime& GetAcceptedAt() const { return m_acceptedAt; }
111 inline bool AcceptedAtHasBeenSet() const { return m_acceptedAtHasBeenSet; }
112 template <typename AcceptedAtT = Aws::Utils::DateTime>
113 void SetAcceptedAt(AcceptedAtT&& value) {
114 m_acceptedAtHasBeenSet = true;
115 m_acceptedAt = std::forward<AcceptedAtT>(value);
116 }
117 template <typename AcceptedAtT = Aws::Utils::DateTime>
119 SetAcceptedAt(std::forward<AcceptedAtT>(value));
120 return *this;
121 }
123
125
128 inline const Aws::Utils::DateTime& GetEndsAt() const { return m_endsAt; }
129 inline bool EndsAtHasBeenSet() const { return m_endsAtHasBeenSet; }
130 template <typename EndsAtT = Aws::Utils::DateTime>
131 void SetEndsAt(EndsAtT&& value) {
132 m_endsAtHasBeenSet = true;
133 m_endsAt = std::forward<EndsAtT>(value);
134 }
135 template <typename EndsAtT = Aws::Utils::DateTime>
137 SetEndsAt(std::forward<EndsAtT>(value));
138 return *this;
139 }
141
143
146 inline const Aws::String& GetDataSetId() const { return m_dataSetId; }
147 inline bool DataSetIdHasBeenSet() const { return m_dataSetIdHasBeenSet; }
148 template <typename DataSetIdT = Aws::String>
149 void SetDataSetId(DataSetIdT&& value) {
150 m_dataSetIdHasBeenSet = true;
151 m_dataSetId = std::forward<DataSetIdT>(value);
152 }
153 template <typename DataSetIdT = Aws::String>
155 SetDataSetId(std::forward<DataSetIdT>(value));
156 return *this;
157 }
159
161
164 inline const Aws::String& GetId() const { return m_id; }
165 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
166 template <typename IdT = Aws::String>
167 void SetId(IdT&& value) {
168 m_idHasBeenSet = true;
169 m_id = std::forward<IdT>(value);
170 }
171 template <typename IdT = Aws::String>
173 SetId(std::forward<IdT>(value));
174 return *this;
175 }
177
179
182 inline const Aws::String& GetArn() const { return m_arn; }
183 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
184 template <typename ArnT = Aws::String>
185 void SetArn(ArnT&& value) {
186 m_arnHasBeenSet = true;
187 m_arn = std::forward<ArnT>(value);
188 }
189 template <typename ArnT = Aws::String>
191 SetArn(std::forward<ArnT>(value));
192 return *this;
193 }
195
197
200 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
201 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
202 template <typename CreatedAtT = Aws::Utils::DateTime>
203 void SetCreatedAt(CreatedAtT&& value) {
204 m_createdAtHasBeenSet = true;
205 m_createdAt = std::forward<CreatedAtT>(value);
206 }
207 template <typename CreatedAtT = Aws::Utils::DateTime>
209 SetCreatedAt(std::forward<CreatedAtT>(value));
210 return *this;
211 }
213
215
218 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
219 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
220 template <typename UpdatedAtT = Aws::Utils::DateTime>
221 void SetUpdatedAt(UpdatedAtT&& value) {
222 m_updatedAtHasBeenSet = true;
223 m_updatedAt = std::forward<UpdatedAtT>(value);
224 }
225 template <typename UpdatedAtT = Aws::Utils::DateTime>
227 SetUpdatedAt(std::forward<UpdatedAtT>(value));
228 return *this;
229 }
231 private:
232 Aws::String m_name;
233
234 Aws::String m_senderPrincipal;
235
236 Aws::String m_receiverPrincipal;
237
239
240 Aws::Utils::DateTime m_acceptedAt{};
241
242 Aws::Utils::DateTime m_endsAt{};
243
244 Aws::String m_dataSetId;
245
246 Aws::String m_id;
247
248 Aws::String m_arn;
249
250 Aws::Utils::DateTime m_createdAt{};
251
252 Aws::Utils::DateTime m_updatedAt{};
253 bool m_nameHasBeenSet = false;
254 bool m_senderPrincipalHasBeenSet = false;
255 bool m_receiverPrincipalHasBeenSet = false;
256 bool m_acceptanceStateHasBeenSet = false;
257 bool m_acceptedAtHasBeenSet = false;
258 bool m_endsAtHasBeenSet = false;
259 bool m_dataSetIdHasBeenSet = false;
260 bool m_idHasBeenSet = false;
261 bool m_arnHasBeenSet = false;
262 bool m_createdAtHasBeenSet = false;
263 bool m_updatedAtHasBeenSet = false;
264};
265
266} // namespace Model
267} // namespace DataExchange
268} // namespace Aws
void SetArn(ArnT &&value)
ReceivedDataGrantSummariesEntry & WithName(NameT &&value)
const Aws::String & GetReceiverPrincipal() const
AWS_DATAEXCHANGE_API ReceivedDataGrantSummariesEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
ReceivedDataGrantSummariesEntry & WithAcceptanceState(DataGrantAcceptanceState value)
ReceivedDataGrantSummariesEntry & WithUpdatedAt(UpdatedAtT &&value)
void SetSenderPrincipal(SenderPrincipalT &&value)
bool SenderPrincipalHasBeenSet() const
void SetId(IdT &&value)
bool ArnHasBeenSet() const
void SetAcceptedAt(AcceptedAtT &&value)
void SetReceiverPrincipal(ReceiverPrincipalT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
bool CreatedAtHasBeenSet() const
const Aws::String & GetSenderPrincipal() const
bool AcceptanceStateHasBeenSet() const
bool AcceptedAtHasBeenSet() const
void SetDataSetId(DataSetIdT &&value)
AWS_DATAEXCHANGE_API ReceivedDataGrantSummariesEntry()=default
const Aws::String & GetArn() const
void SetUpdatedAt(UpdatedAtT &&value)
ReceivedDataGrantSummariesEntry & WithCreatedAt(CreatedAtT &&value)
ReceivedDataGrantSummariesEntry & WithId(IdT &&value)
void SetAcceptanceState(DataGrantAcceptanceState value)
AWS_DATAEXCHANGE_API Aws::Utils::Json::JsonValue Jsonize() const
bool ReceiverPrincipalHasBeenSet() const
ReceivedDataGrantSummariesEntry & WithArn(ArnT &&value)
void SetEndsAt(EndsAtT &&value)
void SetCreatedAt(CreatedAtT &&value)
bool NameHasBeenSet() const
const Aws::String & GetDataSetId() const
void SetName(NameT &&value)
AWS_DATAEXCHANGE_API ReceivedDataGrantSummariesEntry(Aws::Utils::Json::JsonView jsonValue)
ReceivedDataGrantSummariesEntry & WithReceiverPrincipal(ReceiverPrincipalT &&value)
ReceivedDataGrantSummariesEntry & WithSenderPrincipal(SenderPrincipalT &&value)
const Aws::Utils::DateTime & GetEndsAt() const
const Aws::Utils::DateTime & GetCreatedAt() const
ReceivedDataGrantSummariesEntry & WithDataSetId(DataSetIdT &&value)
const Aws::Utils::DateTime & GetAcceptedAt() const
bool DataSetIdHasBeenSet() const
const Aws::String & GetId() const
DataGrantAcceptanceState GetAcceptanceState() const
bool IdHasBeenSet() const
bool EndsAtHasBeenSet() const
bool UpdatedAtHasBeenSet() const
ReceivedDataGrantSummariesEntry & WithEndsAt(EndsAtT &&value)
ReceivedDataGrantSummariesEntry & WithAcceptedAt(AcceptedAtT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue