AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
DataGrantSummaryEntry.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 <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace DataExchange
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_DATAEXCHANGE_API DataGrantSummaryEntry() = default;
37 AWS_DATAEXCHANGE_API DataGrantSummaryEntry(Aws::Utils::Json::JsonView jsonValue);
39 AWS_DATAEXCHANGE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetName() const { return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 template<typename NameT = Aws::String>
49 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
50 template<typename NameT = Aws::String>
51 DataGrantSummaryEntry& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_senderPrincipalHasBeenSet = true; m_senderPrincipal = std::forward<SenderPrincipalT>(value); }
62 template<typename SenderPrincipalT = Aws::String>
63 DataGrantSummaryEntry& WithSenderPrincipal(SenderPrincipalT&& value) { SetSenderPrincipal(std::forward<SenderPrincipalT>(value)); return *this;}
65
67
70 inline const Aws::String& GetReceiverPrincipal() const { return m_receiverPrincipal; }
71 inline bool ReceiverPrincipalHasBeenSet() const { return m_receiverPrincipalHasBeenSet; }
72 template<typename ReceiverPrincipalT = Aws::String>
73 void SetReceiverPrincipal(ReceiverPrincipalT&& value) { m_receiverPrincipalHasBeenSet = true; m_receiverPrincipal = std::forward<ReceiverPrincipalT>(value); }
74 template<typename ReceiverPrincipalT = Aws::String>
75 DataGrantSummaryEntry& WithReceiverPrincipal(ReceiverPrincipalT&& value) { SetReceiverPrincipal(std::forward<ReceiverPrincipalT>(value)); return *this;}
77
79
82 inline DataGrantAcceptanceState GetAcceptanceState() const { return m_acceptanceState; }
83 inline bool AcceptanceStateHasBeenSet() const { return m_acceptanceStateHasBeenSet; }
84 inline void SetAcceptanceState(DataGrantAcceptanceState value) { m_acceptanceStateHasBeenSet = true; m_acceptanceState = value; }
87
89
92 inline const Aws::Utils::DateTime& GetAcceptedAt() const { return m_acceptedAt; }
93 inline bool AcceptedAtHasBeenSet() const { return m_acceptedAtHasBeenSet; }
94 template<typename AcceptedAtT = Aws::Utils::DateTime>
95 void SetAcceptedAt(AcceptedAtT&& value) { m_acceptedAtHasBeenSet = true; m_acceptedAt = std::forward<AcceptedAtT>(value); }
96 template<typename AcceptedAtT = Aws::Utils::DateTime>
97 DataGrantSummaryEntry& WithAcceptedAt(AcceptedAtT&& value) { SetAcceptedAt(std::forward<AcceptedAtT>(value)); return *this;}
99
101
104 inline const Aws::Utils::DateTime& GetEndsAt() const { return m_endsAt; }
105 inline bool EndsAtHasBeenSet() const { return m_endsAtHasBeenSet; }
106 template<typename EndsAtT = Aws::Utils::DateTime>
107 void SetEndsAt(EndsAtT&& value) { m_endsAtHasBeenSet = true; m_endsAt = std::forward<EndsAtT>(value); }
108 template<typename EndsAtT = Aws::Utils::DateTime>
109 DataGrantSummaryEntry& WithEndsAt(EndsAtT&& value) { SetEndsAt(std::forward<EndsAtT>(value)); return *this;}
111
113
116 inline const Aws::String& GetDataSetId() const { return m_dataSetId; }
117 inline bool DataSetIdHasBeenSet() const { return m_dataSetIdHasBeenSet; }
118 template<typename DataSetIdT = Aws::String>
119 void SetDataSetId(DataSetIdT&& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = std::forward<DataSetIdT>(value); }
120 template<typename DataSetIdT = Aws::String>
121 DataGrantSummaryEntry& WithDataSetId(DataSetIdT&& value) { SetDataSetId(std::forward<DataSetIdT>(value)); return *this;}
123
125
128 inline const Aws::String& GetSourceDataSetId() const { return m_sourceDataSetId; }
129 inline bool SourceDataSetIdHasBeenSet() const { return m_sourceDataSetIdHasBeenSet; }
130 template<typename SourceDataSetIdT = Aws::String>
131 void SetSourceDataSetId(SourceDataSetIdT&& value) { m_sourceDataSetIdHasBeenSet = true; m_sourceDataSetId = std::forward<SourceDataSetIdT>(value); }
132 template<typename SourceDataSetIdT = Aws::String>
133 DataGrantSummaryEntry& WithSourceDataSetId(SourceDataSetIdT&& value) { SetSourceDataSetId(std::forward<SourceDataSetIdT>(value)); return *this;}
135
137
140 inline const Aws::String& GetId() const { return m_id; }
141 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
142 template<typename IdT = Aws::String>
143 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
144 template<typename IdT = Aws::String>
145 DataGrantSummaryEntry& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
147
149
152 inline const Aws::String& GetArn() const { return m_arn; }
153 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
154 template<typename ArnT = Aws::String>
155 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
156 template<typename ArnT = Aws::String>
157 DataGrantSummaryEntry& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
159
161
164 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
165 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
166 template<typename CreatedAtT = Aws::Utils::DateTime>
167 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
168 template<typename CreatedAtT = Aws::Utils::DateTime>
169 DataGrantSummaryEntry& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
171
173
176 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
177 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
178 template<typename UpdatedAtT = Aws::Utils::DateTime>
179 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
180 template<typename UpdatedAtT = Aws::Utils::DateTime>
181 DataGrantSummaryEntry& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
183 private:
184
185 Aws::String m_name;
186 bool m_nameHasBeenSet = false;
187
188 Aws::String m_senderPrincipal;
189 bool m_senderPrincipalHasBeenSet = false;
190
191 Aws::String m_receiverPrincipal;
192 bool m_receiverPrincipalHasBeenSet = false;
193
195 bool m_acceptanceStateHasBeenSet = false;
196
197 Aws::Utils::DateTime m_acceptedAt{};
198 bool m_acceptedAtHasBeenSet = false;
199
200 Aws::Utils::DateTime m_endsAt{};
201 bool m_endsAtHasBeenSet = false;
202
203 Aws::String m_dataSetId;
204 bool m_dataSetIdHasBeenSet = false;
205
206 Aws::String m_sourceDataSetId;
207 bool m_sourceDataSetIdHasBeenSet = false;
208
209 Aws::String m_id;
210 bool m_idHasBeenSet = false;
211
212 Aws::String m_arn;
213 bool m_arnHasBeenSet = false;
214
215 Aws::Utils::DateTime m_createdAt{};
216 bool m_createdAtHasBeenSet = false;
217
218 Aws::Utils::DateTime m_updatedAt{};
219 bool m_updatedAtHasBeenSet = false;
220 };
221
222} // namespace Model
223} // namespace DataExchange
224} // namespace Aws
DataGrantSummaryEntry & WithUpdatedAt(UpdatedAtT &&value)
const Aws::String & GetReceiverPrincipal() const
bool SourceDataSetIdHasBeenSet() const
AWS_DATAEXCHANGE_API DataGrantSummaryEntry()=default
void SetName(NameT &&value)
DataGrantSummaryEntry & WithAcceptedAt(AcceptedAtT &&value)
DataGrantSummaryEntry & WithDataSetId(DataSetIdT &&value)
const Aws::String & GetName() const
bool EndsAtHasBeenSet() const
DataGrantSummaryEntry & WithEndsAt(EndsAtT &&value)
void SetReceiverPrincipal(ReceiverPrincipalT &&value)
void SetSenderPrincipal(SenderPrincipalT &&value)
DataGrantSummaryEntry & WithCreatedAt(CreatedAtT &&value)
void SetSourceDataSetId(SourceDataSetIdT &&value)
AWS_DATAEXCHANGE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetSourceDataSetId() const
void SetUpdatedAt(UpdatedAtT &&value)
bool SenderPrincipalHasBeenSet() const
const Aws::Utils::DateTime & GetEndsAt() const
bool ReceiverPrincipalHasBeenSet() const
bool ArnHasBeenSet() const
DataGrantSummaryEntry & WithSourceDataSetId(SourceDataSetIdT &&value)
void SetDataSetId(DataSetIdT &&value)
DataGrantSummaryEntry & WithReceiverPrincipal(ReceiverPrincipalT &&value)
void SetCreatedAt(CreatedAtT &&value)
DataGrantSummaryEntry & WithSenderPrincipal(SenderPrincipalT &&value)
void SetEndsAt(EndsAtT &&value)
AWS_DATAEXCHANGE_API DataGrantSummaryEntry(Aws::Utils::Json::JsonView jsonValue)
bool AcceptedAtHasBeenSet() const
bool IdHasBeenSet() const
const Aws::Utils::DateTime & GetUpdatedAt() const
DataGrantSummaryEntry & WithArn(ArnT &&value)
const Aws::String & GetSenderPrincipal() const
bool CreatedAtHasBeenSet() const
DataGrantSummaryEntry & WithName(NameT &&value)
const Aws::String & GetDataSetId() const
bool AcceptanceStateHasBeenSet() const
DataGrantAcceptanceState GetAcceptanceState() const
AWS_DATAEXCHANGE_API DataGrantSummaryEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
bool UpdatedAtHasBeenSet() const
const Aws::String & GetArn() const
void SetAcceptedAt(AcceptedAtT &&value)
bool DataSetIdHasBeenSet() const
bool NameHasBeenSet() const
const Aws::Utils::DateTime & GetCreatedAt() const
void SetArn(ArnT &&value)
DataGrantSummaryEntry & WithId(IdT &&value)
DataGrantSummaryEntry & WithAcceptanceState(DataGrantAcceptanceState value)
const Aws::String & GetId() const
void SetAcceptanceState(DataGrantAcceptanceState value)
void SetId(IdT &&value)
const Aws::Utils::DateTime & GetAcceptedAt() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue