AWS SDK for C++

AWS SDK for C++ Version 1.11.891

Loading...
Searching...
No Matches
ChannelSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/kinesis/Kinesis_EXPORTS.h>
11#include <aws/kinesis/model/ChannelDestinationType.h>
12#include <aws/kinesis/model/ChannelStatus.h>
13#include <aws/kinesis/model/ChannelStreamIdentifier.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Kinesis {
25namespace Model {
26
34 public:
35 AWS_KINESIS_API ChannelSummary() = default;
36 AWS_KINESIS_API ChannelSummary(Aws::Utils::Json::JsonView jsonValue);
38 AWS_KINESIS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetChannelName() const { return m_channelName; }
45 inline bool ChannelNameHasBeenSet() const { return m_channelNameHasBeenSet; }
46 template <typename ChannelNameT = Aws::String>
47 void SetChannelName(ChannelNameT&& value) {
48 m_channelNameHasBeenSet = true;
49 m_channelName = std::forward<ChannelNameT>(value);
50 }
51 template <typename ChannelNameT = Aws::String>
52 ChannelSummary& WithChannelName(ChannelNameT&& value) {
53 SetChannelName(std::forward<ChannelNameT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetChannelARN() const { return m_channelARN; }
63 inline bool ChannelARNHasBeenSet() const { return m_channelARNHasBeenSet; }
64 template <typename ChannelARNT = Aws::String>
65 void SetChannelARN(ChannelARNT&& value) {
66 m_channelARNHasBeenSet = true;
67 m_channelARN = std::forward<ChannelARNT>(value);
68 }
69 template <typename ChannelARNT = Aws::String>
70 ChannelSummary& WithChannelARN(ChannelARNT&& value) {
71 SetChannelARN(std::forward<ChannelARNT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetChannelId() const { return m_channelId; }
81 inline bool ChannelIdHasBeenSet() const { return m_channelIdHasBeenSet; }
82 template <typename ChannelIdT = Aws::String>
83 void SetChannelId(ChannelIdT&& value) {
84 m_channelIdHasBeenSet = true;
85 m_channelId = std::forward<ChannelIdT>(value);
86 }
87 template <typename ChannelIdT = Aws::String>
88 ChannelSummary& WithChannelId(ChannelIdT&& value) {
89 SetChannelId(std::forward<ChannelIdT>(value));
90 return *this;
91 }
93
95
104 inline ChannelStatus GetChannelStatus() const { return m_channelStatus; }
105 inline bool ChannelStatusHasBeenSet() const { return m_channelStatusHasBeenSet; }
106 inline void SetChannelStatus(ChannelStatus value) {
107 m_channelStatusHasBeenSet = true;
108 m_channelStatus = value;
109 }
111 SetChannelStatus(value);
112 return *this;
113 }
115
117
120 inline const Aws::String& GetChannelStatusReason() const { return m_channelStatusReason; }
121 inline bool ChannelStatusReasonHasBeenSet() const { return m_channelStatusReasonHasBeenSet; }
122 template <typename ChannelStatusReasonT = Aws::String>
123 void SetChannelStatusReason(ChannelStatusReasonT&& value) {
124 m_channelStatusReasonHasBeenSet = true;
125 m_channelStatusReason = std::forward<ChannelStatusReasonT>(value);
126 }
127 template <typename ChannelStatusReasonT = Aws::String>
128 ChannelSummary& WithChannelStatusReason(ChannelStatusReasonT&& value) {
129 SetChannelStatusReason(std::forward<ChannelStatusReasonT>(value));
130 return *this;
131 }
133
135
138 inline const Aws::Utils::DateTime& GetChannelCreationTimestamp() const { return m_channelCreationTimestamp; }
139 inline bool ChannelCreationTimestampHasBeenSet() const { return m_channelCreationTimestampHasBeenSet; }
140 template <typename ChannelCreationTimestampT = Aws::Utils::DateTime>
141 void SetChannelCreationTimestamp(ChannelCreationTimestampT&& value) {
142 m_channelCreationTimestampHasBeenSet = true;
143 m_channelCreationTimestamp = std::forward<ChannelCreationTimestampT>(value);
144 }
145 template <typename ChannelCreationTimestampT = Aws::Utils::DateTime>
146 ChannelSummary& WithChannelCreationTimestamp(ChannelCreationTimestampT&& value) {
147 SetChannelCreationTimestamp(std::forward<ChannelCreationTimestampT>(value));
148 return *this;
149 }
151
153
159 inline ChannelDestinationType GetChannelDestinationType() const { return m_channelDestinationType; }
160 inline bool ChannelDestinationTypeHasBeenSet() const { return m_channelDestinationTypeHasBeenSet; }
162 m_channelDestinationTypeHasBeenSet = true;
163 m_channelDestinationType = value;
164 }
167 return *this;
168 }
170
172
175 inline const Aws::Vector<ChannelStreamIdentifier>& GetStreams() const { return m_streams; }
176 inline bool StreamsHasBeenSet() const { return m_streamsHasBeenSet; }
177 template <typename StreamsT = Aws::Vector<ChannelStreamIdentifier>>
178 void SetStreams(StreamsT&& value) {
179 m_streamsHasBeenSet = true;
180 m_streams = std::forward<StreamsT>(value);
181 }
182 template <typename StreamsT = Aws::Vector<ChannelStreamIdentifier>>
183 ChannelSummary& WithStreams(StreamsT&& value) {
184 SetStreams(std::forward<StreamsT>(value));
185 return *this;
186 }
187 template <typename StreamsT = ChannelStreamIdentifier>
188 ChannelSummary& AddStreams(StreamsT&& value) {
189 m_streamsHasBeenSet = true;
190 m_streams.emplace_back(std::forward<StreamsT>(value));
191 return *this;
192 }
194 private:
195 Aws::String m_channelName;
196
197 Aws::String m_channelARN;
198
199 Aws::String m_channelId;
200
201 ChannelStatus m_channelStatus{ChannelStatus::NOT_SET};
202
203 Aws::String m_channelStatusReason;
204
205 Aws::Utils::DateTime m_channelCreationTimestamp{};
206
208
210 bool m_channelNameHasBeenSet = false;
211 bool m_channelARNHasBeenSet = false;
212 bool m_channelIdHasBeenSet = false;
213 bool m_channelStatusHasBeenSet = false;
214 bool m_channelStatusReasonHasBeenSet = false;
215 bool m_channelCreationTimestampHasBeenSet = false;
216 bool m_channelDestinationTypeHasBeenSet = false;
217 bool m_streamsHasBeenSet = false;
218};
219
220} // namespace Model
221} // namespace Kinesis
222} // namespace Aws
ChannelSummary & WithChannelCreationTimestamp(ChannelCreationTimestampT &&value)
AWS_KINESIS_API ChannelSummary()=default
void SetChannelCreationTimestamp(ChannelCreationTimestampT &&value)
ChannelSummary & WithStreams(StreamsT &&value)
AWS_KINESIS_API ChannelSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_KINESIS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetChannelDestinationType(ChannelDestinationType value)
const Aws::String & GetChannelId() const
ChannelDestinationType GetChannelDestinationType() const
AWS_KINESIS_API ChannelSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetChannelCreationTimestamp() const
ChannelSummary & WithChannelDestinationType(ChannelDestinationType value)
ChannelSummary & WithChannelName(ChannelNameT &&value)
ChannelSummary & WithChannelId(ChannelIdT &&value)
ChannelSummary & AddStreams(StreamsT &&value)
ChannelSummary & WithChannelStatusReason(ChannelStatusReasonT &&value)
const Aws::String & GetChannelStatusReason() const
void SetChannelStatus(ChannelStatus value)
void SetChannelId(ChannelIdT &&value)
const Aws::Vector< ChannelStreamIdentifier > & GetStreams() const
const Aws::String & GetChannelARN() const
ChannelStatus GetChannelStatus() const
const Aws::String & GetChannelName() const
ChannelSummary & WithChannelARN(ChannelARNT &&value)
void SetChannelARN(ChannelARNT &&value)
ChannelSummary & WithChannelStatus(ChannelStatus value)
void SetChannelStatusReason(ChannelStatusReasonT &&value)
void SetChannelName(ChannelNameT &&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