AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StreamDescription.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/memory/stl/AWSVector.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/kinesis/model/EncryptionType.h>
14#include <aws/kinesis/model/Shard.h>
15#include <aws/kinesis/model/EnhancedMetrics.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace Kinesis
29{
30namespace Model
31{
32
40 {
41 public:
42 AWS_KINESIS_API StreamDescription();
45 AWS_KINESIS_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline const Aws::String& GetStreamName() const{ return m_streamName; }
53 inline bool StreamNameHasBeenSet() const { return m_streamNameHasBeenSet; }
54 inline void SetStreamName(const Aws::String& value) { m_streamNameHasBeenSet = true; m_streamName = value; }
55 inline void SetStreamName(Aws::String&& value) { m_streamNameHasBeenSet = true; m_streamName = std::move(value); }
56 inline void SetStreamName(const char* value) { m_streamNameHasBeenSet = true; m_streamName.assign(value); }
57 inline StreamDescription& WithStreamName(const Aws::String& value) { SetStreamName(value); return *this;}
58 inline StreamDescription& WithStreamName(Aws::String&& value) { SetStreamName(std::move(value)); return *this;}
59 inline StreamDescription& WithStreamName(const char* value) { SetStreamName(value); return *this;}
61
63
66 inline const Aws::String& GetStreamARN() const{ return m_streamARN; }
67 inline bool StreamARNHasBeenSet() const { return m_streamARNHasBeenSet; }
68 inline void SetStreamARN(const Aws::String& value) { m_streamARNHasBeenSet = true; m_streamARN = value; }
69 inline void SetStreamARN(Aws::String&& value) { m_streamARNHasBeenSet = true; m_streamARN = std::move(value); }
70 inline void SetStreamARN(const char* value) { m_streamARNHasBeenSet = true; m_streamARN.assign(value); }
71 inline StreamDescription& WithStreamARN(const Aws::String& value) { SetStreamARN(value); return *this;}
72 inline StreamDescription& WithStreamARN(Aws::String&& value) { SetStreamARN(std::move(value)); return *this;}
73 inline StreamDescription& WithStreamARN(const char* value) { SetStreamARN(value); return *this;}
75
77
91 inline const StreamStatus& GetStreamStatus() const{ return m_streamStatus; }
92 inline bool StreamStatusHasBeenSet() const { return m_streamStatusHasBeenSet; }
93 inline void SetStreamStatus(const StreamStatus& value) { m_streamStatusHasBeenSet = true; m_streamStatus = value; }
94 inline void SetStreamStatus(StreamStatus&& value) { m_streamStatusHasBeenSet = true; m_streamStatus = std::move(value); }
95 inline StreamDescription& WithStreamStatus(const StreamStatus& value) { SetStreamStatus(value); return *this;}
96 inline StreamDescription& WithStreamStatus(StreamStatus&& value) { SetStreamStatus(std::move(value)); return *this;}
98
100
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); }
110 inline StreamDescription& WithStreamModeDetails(StreamModeDetails&& value) { SetStreamModeDetails(std::move(value)); return *this;}
112
114
117 inline const Aws::Vector<Shard>& GetShards() const{ return m_shards; }
118 inline bool ShardsHasBeenSet() const { return m_shardsHasBeenSet; }
119 inline void SetShards(const Aws::Vector<Shard>& value) { m_shardsHasBeenSet = true; m_shards = value; }
120 inline void SetShards(Aws::Vector<Shard>&& value) { m_shardsHasBeenSet = true; m_shards = std::move(value); }
121 inline StreamDescription& WithShards(const Aws::Vector<Shard>& value) { SetShards(value); return *this;}
122 inline StreamDescription& WithShards(Aws::Vector<Shard>&& value) { SetShards(std::move(value)); return *this;}
123 inline StreamDescription& AddShards(const Shard& value) { m_shardsHasBeenSet = true; m_shards.push_back(value); return *this; }
124 inline StreamDescription& AddShards(Shard&& value) { m_shardsHasBeenSet = true; m_shards.push_back(std::move(value)); return *this; }
126
128
132 inline bool GetHasMoreShards() const{ return m_hasMoreShards; }
133 inline bool HasMoreShardsHasBeenSet() const { return m_hasMoreShardsHasBeenSet; }
134 inline void SetHasMoreShards(bool value) { m_hasMoreShardsHasBeenSet = true; m_hasMoreShards = value; }
135 inline StreamDescription& WithHasMoreShards(bool value) { SetHasMoreShards(value); return *this;}
137
139
143 inline int GetRetentionPeriodHours() const{ return m_retentionPeriodHours; }
144 inline bool RetentionPeriodHoursHasBeenSet() const { return m_retentionPeriodHoursHasBeenSet; }
145 inline void SetRetentionPeriodHours(int value) { m_retentionPeriodHoursHasBeenSet = true; m_retentionPeriodHours = value; }
146 inline StreamDescription& WithRetentionPeriodHours(int value) { SetRetentionPeriodHours(value); return *this;}
148
150
153 inline const Aws::Utils::DateTime& GetStreamCreationTimestamp() const{ return m_streamCreationTimestamp; }
154 inline bool StreamCreationTimestampHasBeenSet() const { return m_streamCreationTimestampHasBeenSet; }
155 inline void SetStreamCreationTimestamp(const Aws::Utils::DateTime& value) { m_streamCreationTimestampHasBeenSet = true; m_streamCreationTimestamp = value; }
156 inline void SetStreamCreationTimestamp(Aws::Utils::DateTime&& value) { m_streamCreationTimestampHasBeenSet = true; m_streamCreationTimestamp = std::move(value); }
160
162
165 inline const Aws::Vector<EnhancedMetrics>& GetEnhancedMonitoring() const{ return m_enhancedMonitoring; }
166 inline bool EnhancedMonitoringHasBeenSet() const { return m_enhancedMonitoringHasBeenSet; }
167 inline void SetEnhancedMonitoring(const Aws::Vector<EnhancedMetrics>& value) { m_enhancedMonitoringHasBeenSet = true; m_enhancedMonitoring = value; }
168 inline void SetEnhancedMonitoring(Aws::Vector<EnhancedMetrics>&& value) { m_enhancedMonitoringHasBeenSet = true; m_enhancedMonitoring = std::move(value); }
171 inline StreamDescription& AddEnhancedMonitoring(const EnhancedMetrics& value) { m_enhancedMonitoringHasBeenSet = true; m_enhancedMonitoring.push_back(value); return *this; }
172 inline StreamDescription& AddEnhancedMonitoring(EnhancedMetrics&& value) { m_enhancedMonitoringHasBeenSet = true; m_enhancedMonitoring.push_back(std::move(value)); return *this; }
174
176
183 inline const EncryptionType& GetEncryptionType() const{ return m_encryptionType; }
184 inline bool EncryptionTypeHasBeenSet() const { return m_encryptionTypeHasBeenSet; }
185 inline void SetEncryptionType(const EncryptionType& value) { m_encryptionTypeHasBeenSet = true; m_encryptionType = value; }
186 inline void SetEncryptionType(EncryptionType&& value) { m_encryptionTypeHasBeenSet = true; m_encryptionType = std::move(value); }
187 inline StreamDescription& WithEncryptionType(const EncryptionType& value) { SetEncryptionType(value); return *this;}
188 inline StreamDescription& WithEncryptionType(EncryptionType&& value) { SetEncryptionType(std::move(value)); return *this;}
190
192
206 inline const Aws::String& GetKeyId() const{ return m_keyId; }
207 inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
208 inline void SetKeyId(const Aws::String& value) { m_keyIdHasBeenSet = true; m_keyId = value; }
209 inline void SetKeyId(Aws::String&& value) { m_keyIdHasBeenSet = true; m_keyId = std::move(value); }
210 inline void SetKeyId(const char* value) { m_keyIdHasBeenSet = true; m_keyId.assign(value); }
211 inline StreamDescription& WithKeyId(const Aws::String& value) { SetKeyId(value); return *this;}
212 inline StreamDescription& WithKeyId(Aws::String&& value) { SetKeyId(std::move(value)); return *this;}
213 inline StreamDescription& WithKeyId(const char* value) { SetKeyId(value); return *this;}
215 private:
216
217 Aws::String m_streamName;
218 bool m_streamNameHasBeenSet = false;
219
220 Aws::String m_streamARN;
221 bool m_streamARNHasBeenSet = false;
222
223 StreamStatus m_streamStatus;
224 bool m_streamStatusHasBeenSet = false;
225
226 StreamModeDetails m_streamModeDetails;
227 bool m_streamModeDetailsHasBeenSet = false;
228
229 Aws::Vector<Shard> m_shards;
230 bool m_shardsHasBeenSet = false;
231
232 bool m_hasMoreShards;
233 bool m_hasMoreShardsHasBeenSet = false;
234
235 int m_retentionPeriodHours;
236 bool m_retentionPeriodHoursHasBeenSet = false;
237
238 Aws::Utils::DateTime m_streamCreationTimestamp;
239 bool m_streamCreationTimestampHasBeenSet = false;
240
241 Aws::Vector<EnhancedMetrics> m_enhancedMonitoring;
242 bool m_enhancedMonitoringHasBeenSet = false;
243
244 EncryptionType m_encryptionType;
245 bool m_encryptionTypeHasBeenSet = false;
246
247 Aws::String m_keyId;
248 bool m_keyIdHasBeenSet = false;
249 };
250
251} // namespace Model
252} // namespace Kinesis
253} // namespace Aws
void SetShards(const Aws::Vector< Shard > &value)
StreamDescription & WithEnhancedMonitoring(const Aws::Vector< EnhancedMetrics > &value)
void SetStreamStatus(const StreamStatus &value)
void SetEnhancedMonitoring(Aws::Vector< EnhancedMetrics > &&value)
const Aws::Utils::DateTime & GetStreamCreationTimestamp() const
void SetEncryptionType(const EncryptionType &value)
const Aws::Vector< EnhancedMetrics > & GetEnhancedMonitoring() const
void SetKeyId(const Aws::String &value)
StreamDescription & AddEnhancedMonitoring(const EnhancedMetrics &value)
void SetStreamARN(const Aws::String &value)
const Aws::Vector< Shard > & GetShards() const
void SetShards(Aws::Vector< Shard > &&value)
StreamDescription & WithStreamName(const char *value)
StreamDescription & WithRetentionPeriodHours(int value)
StreamDescription & WithStreamCreationTimestamp(const Aws::Utils::DateTime &value)
const StreamModeDetails & GetStreamModeDetails() const
void SetStreamName(Aws::String &&value)
StreamDescription & WithHasMoreShards(bool value)
StreamDescription & WithStreamARN(Aws::String &&value)
const Aws::String & GetStreamName() const
void SetEncryptionType(EncryptionType &&value)
const EncryptionType & GetEncryptionType() const
const StreamStatus & GetStreamStatus() const
StreamDescription & AddEnhancedMonitoring(EnhancedMetrics &&value)
StreamDescription & WithShards(const Aws::Vector< Shard > &value)
void SetStreamModeDetails(const StreamModeDetails &value)
StreamDescription & AddShards(Shard &&value)
StreamDescription & WithStreamName(const Aws::String &value)
StreamDescription & WithStreamARN(const char *value)
AWS_KINESIS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStreamStatus(StreamStatus &&value)
void SetStreamCreationTimestamp(const Aws::Utils::DateTime &value)
StreamDescription & WithStreamARN(const Aws::String &value)
StreamDescription & WithEncryptionType(const EncryptionType &value)
StreamDescription & WithStreamStatus(const StreamStatus &value)
AWS_KINESIS_API StreamDescription & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStreamName(const Aws::String &value)
StreamDescription & WithStreamStatus(StreamStatus &&value)
StreamDescription & WithStreamModeDetails(const StreamModeDetails &value)
StreamDescription & WithStreamCreationTimestamp(Aws::Utils::DateTime &&value)
StreamDescription & WithEncryptionType(EncryptionType &&value)
AWS_KINESIS_API StreamDescription(Aws::Utils::Json::JsonView jsonValue)
StreamDescription & WithKeyId(Aws::String &&value)
StreamDescription & WithEnhancedMonitoring(Aws::Vector< EnhancedMetrics > &&value)
StreamDescription & WithKeyId(const char *value)
void SetStreamModeDetails(StreamModeDetails &&value)
StreamDescription & WithShards(Aws::Vector< Shard > &&value)
const Aws::String & GetStreamARN() const
StreamDescription & WithStreamName(Aws::String &&value)
void SetEnhancedMonitoring(const Aws::Vector< EnhancedMetrics > &value)
StreamDescription & WithKeyId(const Aws::String &value)
void SetStreamCreationTimestamp(Aws::Utils::DateTime &&value)
StreamDescription & AddShards(const Shard &value)
StreamDescription & WithStreamModeDetails(StreamModeDetails &&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