AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
49 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
50 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
51 inline DataGrantSummaryEntry& WithName(const Aws::String& value) { SetName(value); return *this;}
52 inline DataGrantSummaryEntry& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
53 inline DataGrantSummaryEntry& WithName(const char* value) { SetName(value); return *this;}
55
57
60 inline const Aws::String& GetSenderPrincipal() const{ return m_senderPrincipal; }
61 inline bool SenderPrincipalHasBeenSet() const { return m_senderPrincipalHasBeenSet; }
62 inline void SetSenderPrincipal(const Aws::String& value) { m_senderPrincipalHasBeenSet = true; m_senderPrincipal = value; }
63 inline void SetSenderPrincipal(Aws::String&& value) { m_senderPrincipalHasBeenSet = true; m_senderPrincipal = std::move(value); }
64 inline void SetSenderPrincipal(const char* value) { m_senderPrincipalHasBeenSet = true; m_senderPrincipal.assign(value); }
65 inline DataGrantSummaryEntry& WithSenderPrincipal(const Aws::String& value) { SetSenderPrincipal(value); return *this;}
66 inline DataGrantSummaryEntry& WithSenderPrincipal(Aws::String&& value) { SetSenderPrincipal(std::move(value)); return *this;}
67 inline DataGrantSummaryEntry& WithSenderPrincipal(const char* value) { SetSenderPrincipal(value); return *this;}
69
71
74 inline const Aws::String& GetReceiverPrincipal() const{ return m_receiverPrincipal; }
75 inline bool ReceiverPrincipalHasBeenSet() const { return m_receiverPrincipalHasBeenSet; }
76 inline void SetReceiverPrincipal(const Aws::String& value) { m_receiverPrincipalHasBeenSet = true; m_receiverPrincipal = value; }
77 inline void SetReceiverPrincipal(Aws::String&& value) { m_receiverPrincipalHasBeenSet = true; m_receiverPrincipal = std::move(value); }
78 inline void SetReceiverPrincipal(const char* value) { m_receiverPrincipalHasBeenSet = true; m_receiverPrincipal.assign(value); }
79 inline DataGrantSummaryEntry& WithReceiverPrincipal(const Aws::String& value) { SetReceiverPrincipal(value); return *this;}
80 inline DataGrantSummaryEntry& WithReceiverPrincipal(Aws::String&& value) { SetReceiverPrincipal(std::move(value)); return *this;}
81 inline DataGrantSummaryEntry& WithReceiverPrincipal(const char* value) { SetReceiverPrincipal(value); return *this;}
83
85
88 inline const DataGrantAcceptanceState& GetAcceptanceState() const{ return m_acceptanceState; }
89 inline bool AcceptanceStateHasBeenSet() const { return m_acceptanceStateHasBeenSet; }
90 inline void SetAcceptanceState(const DataGrantAcceptanceState& value) { m_acceptanceStateHasBeenSet = true; m_acceptanceState = value; }
91 inline void SetAcceptanceState(DataGrantAcceptanceState&& value) { m_acceptanceStateHasBeenSet = true; m_acceptanceState = std::move(value); }
93 inline DataGrantSummaryEntry& WithAcceptanceState(DataGrantAcceptanceState&& value) { SetAcceptanceState(std::move(value)); return *this;}
95
97
100 inline const Aws::Utils::DateTime& GetAcceptedAt() const{ return m_acceptedAt; }
101 inline bool AcceptedAtHasBeenSet() const { return m_acceptedAtHasBeenSet; }
102 inline void SetAcceptedAt(const Aws::Utils::DateTime& value) { m_acceptedAtHasBeenSet = true; m_acceptedAt = value; }
103 inline void SetAcceptedAt(Aws::Utils::DateTime&& value) { m_acceptedAtHasBeenSet = true; m_acceptedAt = std::move(value); }
104 inline DataGrantSummaryEntry& WithAcceptedAt(const Aws::Utils::DateTime& value) { SetAcceptedAt(value); return *this;}
105 inline DataGrantSummaryEntry& WithAcceptedAt(Aws::Utils::DateTime&& value) { SetAcceptedAt(std::move(value)); return *this;}
107
109
112 inline const Aws::Utils::DateTime& GetEndsAt() const{ return m_endsAt; }
113 inline bool EndsAtHasBeenSet() const { return m_endsAtHasBeenSet; }
114 inline void SetEndsAt(const Aws::Utils::DateTime& value) { m_endsAtHasBeenSet = true; m_endsAt = value; }
115 inline void SetEndsAt(Aws::Utils::DateTime&& value) { m_endsAtHasBeenSet = true; m_endsAt = std::move(value); }
116 inline DataGrantSummaryEntry& WithEndsAt(const Aws::Utils::DateTime& value) { SetEndsAt(value); return *this;}
117 inline DataGrantSummaryEntry& WithEndsAt(Aws::Utils::DateTime&& value) { SetEndsAt(std::move(value)); return *this;}
119
121
124 inline const Aws::String& GetDataSetId() const{ return m_dataSetId; }
125 inline bool DataSetIdHasBeenSet() const { return m_dataSetIdHasBeenSet; }
126 inline void SetDataSetId(const Aws::String& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = value; }
127 inline void SetDataSetId(Aws::String&& value) { m_dataSetIdHasBeenSet = true; m_dataSetId = std::move(value); }
128 inline void SetDataSetId(const char* value) { m_dataSetIdHasBeenSet = true; m_dataSetId.assign(value); }
129 inline DataGrantSummaryEntry& WithDataSetId(const Aws::String& value) { SetDataSetId(value); return *this;}
130 inline DataGrantSummaryEntry& WithDataSetId(Aws::String&& value) { SetDataSetId(std::move(value)); return *this;}
131 inline DataGrantSummaryEntry& WithDataSetId(const char* value) { SetDataSetId(value); return *this;}
133
135
138 inline const Aws::String& GetSourceDataSetId() const{ return m_sourceDataSetId; }
139 inline bool SourceDataSetIdHasBeenSet() const { return m_sourceDataSetIdHasBeenSet; }
140 inline void SetSourceDataSetId(const Aws::String& value) { m_sourceDataSetIdHasBeenSet = true; m_sourceDataSetId = value; }
141 inline void SetSourceDataSetId(Aws::String&& value) { m_sourceDataSetIdHasBeenSet = true; m_sourceDataSetId = std::move(value); }
142 inline void SetSourceDataSetId(const char* value) { m_sourceDataSetIdHasBeenSet = true; m_sourceDataSetId.assign(value); }
143 inline DataGrantSummaryEntry& WithSourceDataSetId(const Aws::String& value) { SetSourceDataSetId(value); return *this;}
144 inline DataGrantSummaryEntry& WithSourceDataSetId(Aws::String&& value) { SetSourceDataSetId(std::move(value)); return *this;}
145 inline DataGrantSummaryEntry& WithSourceDataSetId(const char* value) { SetSourceDataSetId(value); return *this;}
147
149
152 inline const Aws::String& GetId() const{ return m_id; }
153 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
154 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
155 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
156 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
157 inline DataGrantSummaryEntry& WithId(const Aws::String& value) { SetId(value); return *this;}
158 inline DataGrantSummaryEntry& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
159 inline DataGrantSummaryEntry& WithId(const char* value) { SetId(value); return *this;}
161
163
166 inline const Aws::String& GetArn() const{ return m_arn; }
167 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
168 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
169 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
170 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
171 inline DataGrantSummaryEntry& WithArn(const Aws::String& value) { SetArn(value); return *this;}
172 inline DataGrantSummaryEntry& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
173 inline DataGrantSummaryEntry& WithArn(const char* value) { SetArn(value); return *this;}
175
177
180 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
181 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
182 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
183 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
184 inline DataGrantSummaryEntry& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
185 inline DataGrantSummaryEntry& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
187
189
192 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
193 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
194 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; }
195 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); }
196 inline DataGrantSummaryEntry& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
197 inline DataGrantSummaryEntry& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
199 private:
200
201 Aws::String m_name;
202 bool m_nameHasBeenSet = false;
203
204 Aws::String m_senderPrincipal;
205 bool m_senderPrincipalHasBeenSet = false;
206
207 Aws::String m_receiverPrincipal;
208 bool m_receiverPrincipalHasBeenSet = false;
209
210 DataGrantAcceptanceState m_acceptanceState;
211 bool m_acceptanceStateHasBeenSet = false;
212
213 Aws::Utils::DateTime m_acceptedAt;
214 bool m_acceptedAtHasBeenSet = false;
215
216 Aws::Utils::DateTime m_endsAt;
217 bool m_endsAtHasBeenSet = false;
218
219 Aws::String m_dataSetId;
220 bool m_dataSetIdHasBeenSet = false;
221
222 Aws::String m_sourceDataSetId;
223 bool m_sourceDataSetIdHasBeenSet = false;
224
225 Aws::String m_id;
226 bool m_idHasBeenSet = false;
227
228 Aws::String m_arn;
229 bool m_arnHasBeenSet = false;
230
231 Aws::Utils::DateTime m_createdAt;
232 bool m_createdAtHasBeenSet = false;
233
234 Aws::Utils::DateTime m_updatedAt;
235 bool m_updatedAtHasBeenSet = false;
236 };
237
238} // namespace Model
239} // namespace DataExchange
240} // namespace Aws
DataGrantSummaryEntry & WithName(const Aws::String &value)
DataGrantSummaryEntry & WithAcceptanceState(const DataGrantAcceptanceState &value)
const Aws::String & GetReceiverPrincipal() const
DataGrantSummaryEntry & WithReceiverPrincipal(const char *value)
DataGrantSummaryEntry & WithAcceptedAt(Aws::Utils::DateTime &&value)
void SetArn(const Aws::String &value)
bool SourceDataSetIdHasBeenSet() const
void SetName(const Aws::String &value)
DataGrantSummaryEntry & WithSourceDataSetId(Aws::String &&value)
void SetEndsAt(Aws::Utils::DateTime &&value)
DataGrantSummaryEntry & WithName(const char *value)
DataGrantSummaryEntry & WithCreatedAt(Aws::Utils::DateTime &&value)
void SetDataSetId(const Aws::String &value)
DataGrantSummaryEntry & WithCreatedAt(const Aws::Utils::DateTime &value)
const Aws::String & GetName() const
void SetReceiverPrincipal(const char *value)
void SetSourceDataSetId(Aws::String &&value)
void SetUpdatedAt(const Aws::Utils::DateTime &value)
bool EndsAtHasBeenSet() const
AWS_DATAEXCHANGE_API DataGrantSummaryEntry()
DataGrantSummaryEntry & WithDataSetId(const Aws::String &value)
DataGrantSummaryEntry & WithDataSetId(Aws::String &&value)
void SetSourceDataSetId(const Aws::String &value)
DataGrantSummaryEntry & WithSenderPrincipal(Aws::String &&value)
void SetUpdatedAt(Aws::Utils::DateTime &&value)
void SetAcceptanceState(const DataGrantAcceptanceState &value)
void SetReceiverPrincipal(Aws::String &&value)
void SetDataSetId(Aws::String &&value)
DataGrantSummaryEntry & WithSenderPrincipal(const Aws::String &value)
DataGrantSummaryEntry & WithId(Aws::String &&value)
void SetDataSetId(const char *value)
DataGrantSummaryEntry & WithReceiverPrincipal(const Aws::String &value)
void SetAcceptedAt(const Aws::Utils::DateTime &value)
DataGrantSummaryEntry & WithArn(const Aws::String &value)
void SetId(const Aws::String &value)
DataGrantSummaryEntry & WithId(const Aws::String &value)
DataGrantSummaryEntry & WithUpdatedAt(const Aws::Utils::DateTime &value)
AWS_DATAEXCHANGE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetSourceDataSetId() const
DataGrantSummaryEntry & WithId(const char *value)
bool SenderPrincipalHasBeenSet() const
DataGrantSummaryEntry & WithEndsAt(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetEndsAt() const
bool ReceiverPrincipalHasBeenSet() const
bool ArnHasBeenSet() const
void SetReceiverPrincipal(const Aws::String &value)
void SetArn(const char *value)
void SetSenderPrincipal(const Aws::String &value)
AWS_DATAEXCHANGE_API DataGrantSummaryEntry(Aws::Utils::Json::JsonView jsonValue)
void SetEndsAt(const Aws::Utils::DateTime &value)
DataGrantSummaryEntry & WithArn(const char *value)
void SetSenderPrincipal(const char *value)
bool AcceptedAtHasBeenSet() const
bool IdHasBeenSet() const
void SetSenderPrincipal(Aws::String &&value)
void SetName(Aws::String &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
DataGrantSummaryEntry & WithDataSetId(const char *value)
const DataGrantAcceptanceState & GetAcceptanceState() const
DataGrantSummaryEntry & WithSenderPrincipal(const char *value)
const Aws::String & GetSenderPrincipal() const
DataGrantSummaryEntry & WithSourceDataSetId(const Aws::String &value)
bool CreatedAtHasBeenSet() const
const Aws::String & GetDataSetId() const
bool AcceptanceStateHasBeenSet() const
DataGrantSummaryEntry & WithEndsAt(Aws::Utils::DateTime &&value)
DataGrantSummaryEntry & WithUpdatedAt(Aws::Utils::DateTime &&value)
AWS_DATAEXCHANGE_API DataGrantSummaryEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAcceptanceState(DataGrantAcceptanceState &&value)
bool UpdatedAtHasBeenSet() const
DataGrantSummaryEntry & WithSourceDataSetId(const char *value)
const Aws::String & GetArn() const
void SetName(const char *value)
DataGrantSummaryEntry & WithAcceptedAt(const Aws::Utils::DateTime &value)
DataGrantSummaryEntry & WithAcceptanceState(DataGrantAcceptanceState &&value)
bool DataSetIdHasBeenSet() const
DataGrantSummaryEntry & WithReceiverPrincipal(Aws::String &&value)
void SetId(Aws::String &&value)
bool NameHasBeenSet() const
void SetId(const char *value)
void SetAcceptedAt(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
DataGrantSummaryEntry & WithName(Aws::String &&value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
const Aws::String & GetId() const
DataGrantSummaryEntry & WithArn(Aws::String &&value)
void SetArn(Aws::String &&value)
void SetSourceDataSetId(const char *value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetAcceptedAt() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue