AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
JournalKinesisStreamDescription.h
1
6#pragma once
7#include <aws/qldb/QLDB_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/qldb/model/StreamStatus.h>
11#include <aws/qldb/model/KinesisConfiguration.h>
12#include <aws/qldb/model/ErrorCause.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace QLDB
26{
27namespace Model
28{
29
39 {
40 public:
41 AWS_QLDB_API JournalKinesisStreamDescription() = default;
45
46
48
51 inline const Aws::String& GetLedgerName() const { return m_ledgerName; }
52 inline bool LedgerNameHasBeenSet() const { return m_ledgerNameHasBeenSet; }
53 template<typename LedgerNameT = Aws::String>
54 void SetLedgerName(LedgerNameT&& value) { m_ledgerNameHasBeenSet = true; m_ledgerName = std::forward<LedgerNameT>(value); }
55 template<typename LedgerNameT = Aws::String>
56 JournalKinesisStreamDescription& WithLedgerName(LedgerNameT&& value) { SetLedgerName(std::forward<LedgerNameT>(value)); return *this;}
58
60
65 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
66 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
67 template<typename CreationTimeT = Aws::Utils::DateTime>
68 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
69 template<typename CreationTimeT = Aws::Utils::DateTime>
70 JournalKinesisStreamDescription& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
72
74
78 inline const Aws::Utils::DateTime& GetInclusiveStartTime() const { return m_inclusiveStartTime; }
79 inline bool InclusiveStartTimeHasBeenSet() const { return m_inclusiveStartTimeHasBeenSet; }
80 template<typename InclusiveStartTimeT = Aws::Utils::DateTime>
81 void SetInclusiveStartTime(InclusiveStartTimeT&& value) { m_inclusiveStartTimeHasBeenSet = true; m_inclusiveStartTime = std::forward<InclusiveStartTimeT>(value); }
82 template<typename InclusiveStartTimeT = Aws::Utils::DateTime>
83 JournalKinesisStreamDescription& WithInclusiveStartTime(InclusiveStartTimeT&& value) { SetInclusiveStartTime(std::forward<InclusiveStartTimeT>(value)); return *this;}
85
87
91 inline const Aws::Utils::DateTime& GetExclusiveEndTime() const { return m_exclusiveEndTime; }
92 inline bool ExclusiveEndTimeHasBeenSet() const { return m_exclusiveEndTimeHasBeenSet; }
93 template<typename ExclusiveEndTimeT = Aws::Utils::DateTime>
94 void SetExclusiveEndTime(ExclusiveEndTimeT&& value) { m_exclusiveEndTimeHasBeenSet = true; m_exclusiveEndTime = std::forward<ExclusiveEndTimeT>(value); }
95 template<typename ExclusiveEndTimeT = Aws::Utils::DateTime>
96 JournalKinesisStreamDescription& WithExclusiveEndTime(ExclusiveEndTimeT&& value) { SetExclusiveEndTime(std::forward<ExclusiveEndTimeT>(value)); return *this;}
98
100
105 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
106 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
107 template<typename RoleArnT = Aws::String>
108 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
109 template<typename RoleArnT = Aws::String>
110 JournalKinesisStreamDescription& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
112
114
117 inline const Aws::String& GetStreamId() const { return m_streamId; }
118 inline bool StreamIdHasBeenSet() const { return m_streamIdHasBeenSet; }
119 template<typename StreamIdT = Aws::String>
120 void SetStreamId(StreamIdT&& value) { m_streamIdHasBeenSet = true; m_streamId = std::forward<StreamIdT>(value); }
121 template<typename StreamIdT = Aws::String>
122 JournalKinesisStreamDescription& WithStreamId(StreamIdT&& value) { SetStreamId(std::forward<StreamIdT>(value)); return *this;}
124
126
129 inline const Aws::String& GetArn() const { return m_arn; }
130 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
131 template<typename ArnT = Aws::String>
132 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
133 template<typename ArnT = Aws::String>
134 JournalKinesisStreamDescription& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
136
138
141 inline StreamStatus GetStatus() const { return m_status; }
142 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
143 inline void SetStatus(StreamStatus value) { m_statusHasBeenSet = true; m_status = value; }
144 inline JournalKinesisStreamDescription& WithStatus(StreamStatus value) { SetStatus(value); return *this;}
146
148
152 inline const KinesisConfiguration& GetKinesisConfiguration() const { return m_kinesisConfiguration; }
153 inline bool KinesisConfigurationHasBeenSet() const { return m_kinesisConfigurationHasBeenSet; }
154 template<typename KinesisConfigurationT = KinesisConfiguration>
155 void SetKinesisConfiguration(KinesisConfigurationT&& value) { m_kinesisConfigurationHasBeenSet = true; m_kinesisConfiguration = std::forward<KinesisConfigurationT>(value); }
156 template<typename KinesisConfigurationT = KinesisConfiguration>
157 JournalKinesisStreamDescription& WithKinesisConfiguration(KinesisConfigurationT&& value) { SetKinesisConfiguration(std::forward<KinesisConfigurationT>(value)); return *this;}
159
161
166 inline ErrorCause GetErrorCause() const { return m_errorCause; }
167 inline bool ErrorCauseHasBeenSet() const { return m_errorCauseHasBeenSet; }
168 inline void SetErrorCause(ErrorCause value) { m_errorCauseHasBeenSet = true; m_errorCause = value; }
171
173
176 inline const Aws::String& GetStreamName() const { return m_streamName; }
177 inline bool StreamNameHasBeenSet() const { return m_streamNameHasBeenSet; }
178 template<typename StreamNameT = Aws::String>
179 void SetStreamName(StreamNameT&& value) { m_streamNameHasBeenSet = true; m_streamName = std::forward<StreamNameT>(value); }
180 template<typename StreamNameT = Aws::String>
181 JournalKinesisStreamDescription& WithStreamName(StreamNameT&& value) { SetStreamName(std::forward<StreamNameT>(value)); return *this;}
183 private:
184
185 Aws::String m_ledgerName;
186 bool m_ledgerNameHasBeenSet = false;
187
188 Aws::Utils::DateTime m_creationTime{};
189 bool m_creationTimeHasBeenSet = false;
190
191 Aws::Utils::DateTime m_inclusiveStartTime{};
192 bool m_inclusiveStartTimeHasBeenSet = false;
193
194 Aws::Utils::DateTime m_exclusiveEndTime{};
195 bool m_exclusiveEndTimeHasBeenSet = false;
196
197 Aws::String m_roleArn;
198 bool m_roleArnHasBeenSet = false;
199
200 Aws::String m_streamId;
201 bool m_streamIdHasBeenSet = false;
202
203 Aws::String m_arn;
204 bool m_arnHasBeenSet = false;
205
207 bool m_statusHasBeenSet = false;
208
209 KinesisConfiguration m_kinesisConfiguration;
210 bool m_kinesisConfigurationHasBeenSet = false;
211
212 ErrorCause m_errorCause{ErrorCause::NOT_SET};
213 bool m_errorCauseHasBeenSet = false;
214
215 Aws::String m_streamName;
216 bool m_streamNameHasBeenSet = false;
217 };
218
219} // namespace Model
220} // namespace QLDB
221} // namespace Aws
JournalKinesisStreamDescription & WithStreamName(StreamNameT &&value)
JournalKinesisStreamDescription & WithStreamId(StreamIdT &&value)
JournalKinesisStreamDescription & WithRoleArn(RoleArnT &&value)
AWS_QLDB_API JournalKinesisStreamDescription & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_QLDB_API Aws::Utils::Json::JsonValue Jsonize() const
JournalKinesisStreamDescription & WithErrorCause(ErrorCause value)
JournalKinesisStreamDescription & WithKinesisConfiguration(KinesisConfigurationT &&value)
AWS_QLDB_API JournalKinesisStreamDescription(Aws::Utils::Json::JsonView jsonValue)
JournalKinesisStreamDescription & WithArn(ArnT &&value)
JournalKinesisStreamDescription & WithStatus(StreamStatus value)
JournalKinesisStreamDescription & WithInclusiveStartTime(InclusiveStartTimeT &&value)
JournalKinesisStreamDescription & WithCreationTime(CreationTimeT &&value)
JournalKinesisStreamDescription & WithExclusiveEndTime(ExclusiveEndTimeT &&value)
JournalKinesisStreamDescription & WithLedgerName(LedgerNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue