AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StreamDescriptionSummary.h
1
6#pragma once
7#include <aws/kinesis/Kinesis_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/kinesis/model/StreamStatus.h>
10#include <aws/kinesis/model/StreamModeDetails.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/kinesis/model/EncryptionType.h>
14#include <aws/kinesis/model/EnhancedMetrics.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace Kinesis
28{
29namespace Model
30{
31
39 {
40 public:
41 AWS_KINESIS_API StreamDescriptionSummary();
44 AWS_KINESIS_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::String& GetStreamName() const{ return m_streamName; }
52 inline bool StreamNameHasBeenSet() const { return m_streamNameHasBeenSet; }
53 inline void SetStreamName(const Aws::String& value) { m_streamNameHasBeenSet = true; m_streamName = value; }
54 inline void SetStreamName(Aws::String&& value) { m_streamNameHasBeenSet = true; m_streamName = std::move(value); }
55 inline void SetStreamName(const char* value) { m_streamNameHasBeenSet = true; m_streamName.assign(value); }
56 inline StreamDescriptionSummary& WithStreamName(const Aws::String& value) { SetStreamName(value); return *this;}
57 inline StreamDescriptionSummary& WithStreamName(Aws::String&& value) { SetStreamName(std::move(value)); return *this;}
58 inline StreamDescriptionSummary& WithStreamName(const char* value) { SetStreamName(value); return *this;}
60
62
65 inline const Aws::String& GetStreamARN() const{ return m_streamARN; }
66 inline bool StreamARNHasBeenSet() const { return m_streamARNHasBeenSet; }
67 inline void SetStreamARN(const Aws::String& value) { m_streamARNHasBeenSet = true; m_streamARN = value; }
68 inline void SetStreamARN(Aws::String&& value) { m_streamARNHasBeenSet = true; m_streamARN = std::move(value); }
69 inline void SetStreamARN(const char* value) { m_streamARNHasBeenSet = true; m_streamARN.assign(value); }
70 inline StreamDescriptionSummary& WithStreamARN(const Aws::String& value) { SetStreamARN(value); return *this;}
71 inline StreamDescriptionSummary& WithStreamARN(Aws::String&& value) { SetStreamARN(std::move(value)); return *this;}
72 inline StreamDescriptionSummary& WithStreamARN(const char* value) { SetStreamARN(value); return *this;}
74
76
90 inline const StreamStatus& GetStreamStatus() const{ return m_streamStatus; }
91 inline bool StreamStatusHasBeenSet() const { return m_streamStatusHasBeenSet; }
92 inline void SetStreamStatus(const StreamStatus& value) { m_streamStatusHasBeenSet = true; m_streamStatus = value; }
93 inline void SetStreamStatus(StreamStatus&& value) { m_streamStatusHasBeenSet = true; m_streamStatus = std::move(value); }
94 inline StreamDescriptionSummary& WithStreamStatus(const StreamStatus& value) { SetStreamStatus(value); return *this;}
95 inline StreamDescriptionSummary& WithStreamStatus(StreamStatus&& value) { SetStreamStatus(std::move(value)); return *this;}
97
99
105 inline const StreamModeDetails& GetStreamModeDetails() const{ return m_streamModeDetails; }
106 inline bool StreamModeDetailsHasBeenSet() const { return m_streamModeDetailsHasBeenSet; }
107 inline void SetStreamModeDetails(const StreamModeDetails& value) { m_streamModeDetailsHasBeenSet = true; m_streamModeDetails = value; }
108 inline void SetStreamModeDetails(StreamModeDetails&& value) { m_streamModeDetailsHasBeenSet = true; m_streamModeDetails = std::move(value); }
112
114
117 inline int GetRetentionPeriodHours() const{ return m_retentionPeriodHours; }
118 inline bool RetentionPeriodHoursHasBeenSet() const { return m_retentionPeriodHoursHasBeenSet; }
119 inline void SetRetentionPeriodHours(int value) { m_retentionPeriodHoursHasBeenSet = true; m_retentionPeriodHours = value; }
122
124
127 inline const Aws::Utils::DateTime& GetStreamCreationTimestamp() const{ return m_streamCreationTimestamp; }
128 inline bool StreamCreationTimestampHasBeenSet() const { return m_streamCreationTimestampHasBeenSet; }
129 inline void SetStreamCreationTimestamp(const Aws::Utils::DateTime& value) { m_streamCreationTimestampHasBeenSet = true; m_streamCreationTimestamp = value; }
130 inline void SetStreamCreationTimestamp(Aws::Utils::DateTime&& value) { m_streamCreationTimestampHasBeenSet = true; m_streamCreationTimestamp = std::move(value); }
134
136
139 inline const Aws::Vector<EnhancedMetrics>& GetEnhancedMonitoring() const{ return m_enhancedMonitoring; }
140 inline bool EnhancedMonitoringHasBeenSet() const { return m_enhancedMonitoringHasBeenSet; }
141 inline void SetEnhancedMonitoring(const Aws::Vector<EnhancedMetrics>& value) { m_enhancedMonitoringHasBeenSet = true; m_enhancedMonitoring = value; }
142 inline void SetEnhancedMonitoring(Aws::Vector<EnhancedMetrics>&& value) { m_enhancedMonitoringHasBeenSet = true; m_enhancedMonitoring = std::move(value); }
145 inline StreamDescriptionSummary& AddEnhancedMonitoring(const EnhancedMetrics& value) { m_enhancedMonitoringHasBeenSet = true; m_enhancedMonitoring.push_back(value); return *this; }
146 inline StreamDescriptionSummary& AddEnhancedMonitoring(EnhancedMetrics&& value) { m_enhancedMonitoringHasBeenSet = true; m_enhancedMonitoring.push_back(std::move(value)); return *this; }
148
150
154 inline const EncryptionType& GetEncryptionType() const{ return m_encryptionType; }
155 inline bool EncryptionTypeHasBeenSet() const { return m_encryptionTypeHasBeenSet; }
156 inline void SetEncryptionType(const EncryptionType& value) { m_encryptionTypeHasBeenSet = true; m_encryptionType = value; }
157 inline void SetEncryptionType(EncryptionType&& value) { m_encryptionTypeHasBeenSet = true; m_encryptionType = std::move(value); }
159 inline StreamDescriptionSummary& WithEncryptionType(EncryptionType&& value) { SetEncryptionType(std::move(value)); return *this;}
161
163
177 inline const Aws::String& GetKeyId() const{ return m_keyId; }
178 inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
179 inline void SetKeyId(const Aws::String& value) { m_keyIdHasBeenSet = true; m_keyId = value; }
180 inline void SetKeyId(Aws::String&& value) { m_keyIdHasBeenSet = true; m_keyId = std::move(value); }
181 inline void SetKeyId(const char* value) { m_keyIdHasBeenSet = true; m_keyId.assign(value); }
182 inline StreamDescriptionSummary& WithKeyId(const Aws::String& value) { SetKeyId(value); return *this;}
183 inline StreamDescriptionSummary& WithKeyId(Aws::String&& value) { SetKeyId(std::move(value)); return *this;}
184 inline StreamDescriptionSummary& WithKeyId(const char* value) { SetKeyId(value); return *this;}
186
188
191 inline int GetOpenShardCount() const{ return m_openShardCount; }
192 inline bool OpenShardCountHasBeenSet() const { return m_openShardCountHasBeenSet; }
193 inline void SetOpenShardCount(int value) { m_openShardCountHasBeenSet = true; m_openShardCount = value; }
194 inline StreamDescriptionSummary& WithOpenShardCount(int value) { SetOpenShardCount(value); return *this;}
196
198
201 inline int GetConsumerCount() const{ return m_consumerCount; }
202 inline bool ConsumerCountHasBeenSet() const { return m_consumerCountHasBeenSet; }
203 inline void SetConsumerCount(int value) { m_consumerCountHasBeenSet = true; m_consumerCount = value; }
204 inline StreamDescriptionSummary& WithConsumerCount(int value) { SetConsumerCount(value); return *this;}
206 private:
207
208 Aws::String m_streamName;
209 bool m_streamNameHasBeenSet = false;
210
211 Aws::String m_streamARN;
212 bool m_streamARNHasBeenSet = false;
213
214 StreamStatus m_streamStatus;
215 bool m_streamStatusHasBeenSet = false;
216
217 StreamModeDetails m_streamModeDetails;
218 bool m_streamModeDetailsHasBeenSet = false;
219
220 int m_retentionPeriodHours;
221 bool m_retentionPeriodHoursHasBeenSet = false;
222
223 Aws::Utils::DateTime m_streamCreationTimestamp;
224 bool m_streamCreationTimestampHasBeenSet = false;
225
226 Aws::Vector<EnhancedMetrics> m_enhancedMonitoring;
227 bool m_enhancedMonitoringHasBeenSet = false;
228
229 EncryptionType m_encryptionType;
230 bool m_encryptionTypeHasBeenSet = false;
231
232 Aws::String m_keyId;
233 bool m_keyIdHasBeenSet = false;
234
235 int m_openShardCount;
236 bool m_openShardCountHasBeenSet = false;
237
238 int m_consumerCount;
239 bool m_consumerCountHasBeenSet = false;
240 };
241
242} // namespace Model
243} // namespace Kinesis
244} // namespace Aws
StreamDescriptionSummary & WithStreamARN(const Aws::String &value)
StreamDescriptionSummary & WithStreamName(const char *value)
StreamDescriptionSummary & WithStreamName(const Aws::String &value)
const Aws::Vector< EnhancedMetrics > & GetEnhancedMonitoring() const
StreamDescriptionSummary & WithEncryptionType(const EncryptionType &value)
StreamDescriptionSummary & WithEnhancedMonitoring(const Aws::Vector< EnhancedMetrics > &value)
StreamDescriptionSummary & WithStreamCreationTimestamp(Aws::Utils::DateTime &&value)
StreamDescriptionSummary & WithOpenShardCount(int value)
StreamDescriptionSummary & AddEnhancedMonitoring(const EnhancedMetrics &value)
const StreamModeDetails & GetStreamModeDetails() const
StreamDescriptionSummary & WithStreamARN(Aws::String &&value)
StreamDescriptionSummary & WithStreamCreationTimestamp(const Aws::Utils::DateTime &value)
StreamDescriptionSummary & WithKeyId(Aws::String &&value)
StreamDescriptionSummary & WithRetentionPeriodHours(int value)
StreamDescriptionSummary & WithKeyId(const char *value)
void SetStreamCreationTimestamp(Aws::Utils::DateTime &&value)
AWS_KINESIS_API StreamDescriptionSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
StreamDescriptionSummary & WithKeyId(const Aws::String &value)
StreamDescriptionSummary & WithEnhancedMonitoring(Aws::Vector< EnhancedMetrics > &&value)
void SetStreamCreationTimestamp(const Aws::Utils::DateTime &value)
void SetEnhancedMonitoring(Aws::Vector< EnhancedMetrics > &&value)
const Aws::Utils::DateTime & GetStreamCreationTimestamp() const
StreamDescriptionSummary & WithStreamStatus(StreamStatus &&value)
StreamDescriptionSummary & WithStreamName(Aws::String &&value)
StreamDescriptionSummary & WithStreamStatus(const StreamStatus &value)
AWS_KINESIS_API Aws::Utils::Json::JsonValue Jsonize() const
StreamDescriptionSummary & WithEncryptionType(EncryptionType &&value)
StreamDescriptionSummary & AddEnhancedMonitoring(EnhancedMetrics &&value)
StreamDescriptionSummary & WithStreamARN(const char *value)
void SetStreamModeDetails(const StreamModeDetails &value)
StreamDescriptionSummary & WithStreamModeDetails(const StreamModeDetails &value)
AWS_KINESIS_API StreamDescriptionSummary(Aws::Utils::Json::JsonView jsonValue)
void SetEnhancedMonitoring(const Aws::Vector< EnhancedMetrics > &value)
StreamDescriptionSummary & WithStreamModeDetails(StreamModeDetails &&value)
StreamDescriptionSummary & WithConsumerCount(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue