AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
ReceivedDataGrantSummariesEntry.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 ReceivedDataGrantSummariesEntry() = default;
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 ReceivedDataGrantSummariesEntry& 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 ReceivedDataGrantSummariesEntry& 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 ReceivedDataGrantSummariesEntry& 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 ReceivedDataGrantSummariesEntry& 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 ReceivedDataGrantSummariesEntry& 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 ReceivedDataGrantSummariesEntry& WithDataSetId(DataSetIdT&& value) { SetDataSetId(std::forward<DataSetIdT>(value)); return *this;}
123
125
128 inline const Aws::String& GetId() const { return m_id; }
129 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
130 template<typename IdT = Aws::String>
131 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
132 template<typename IdT = Aws::String>
133 ReceivedDataGrantSummariesEntry& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
135
137
140 inline const Aws::String& GetArn() const { return m_arn; }
141 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
142 template<typename ArnT = Aws::String>
143 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
144 template<typename ArnT = Aws::String>
145 ReceivedDataGrantSummariesEntry& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
147
149
152 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
153 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
154 template<typename CreatedAtT = Aws::Utils::DateTime>
155 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
156 template<typename CreatedAtT = Aws::Utils::DateTime>
157 ReceivedDataGrantSummariesEntry& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
159
161
164 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
165 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
166 template<typename UpdatedAtT = Aws::Utils::DateTime>
167 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
168 template<typename UpdatedAtT = Aws::Utils::DateTime>
169 ReceivedDataGrantSummariesEntry& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
171 private:
172
173 Aws::String m_name;
174 bool m_nameHasBeenSet = false;
175
176 Aws::String m_senderPrincipal;
177 bool m_senderPrincipalHasBeenSet = false;
178
179 Aws::String m_receiverPrincipal;
180 bool m_receiverPrincipalHasBeenSet = false;
181
183 bool m_acceptanceStateHasBeenSet = false;
184
185 Aws::Utils::DateTime m_acceptedAt{};
186 bool m_acceptedAtHasBeenSet = false;
187
188 Aws::Utils::DateTime m_endsAt{};
189 bool m_endsAtHasBeenSet = false;
190
191 Aws::String m_dataSetId;
192 bool m_dataSetIdHasBeenSet = false;
193
194 Aws::String m_id;
195 bool m_idHasBeenSet = false;
196
197 Aws::String m_arn;
198 bool m_arnHasBeenSet = false;
199
200 Aws::Utils::DateTime m_createdAt{};
201 bool m_createdAtHasBeenSet = false;
202
203 Aws::Utils::DateTime m_updatedAt{};
204 bool m_updatedAtHasBeenSet = false;
205 };
206
207} // namespace Model
208} // namespace DataExchange
209} // 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