AWS SDK for C++

AWS SDK for C++ Version 1.11.867

Loading...
Searching...
No Matches
ChannelInfo.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/kafka/Kafka_EXPORTS.h>
10#include <aws/kafka/model/ChannelDestinationType.h>
11#include <aws/kafka/model/ChannelStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Kafka {
23namespace Model {
24
32 public:
33 AWS_KAFKA_API ChannelInfo() = default;
34 AWS_KAFKA_API ChannelInfo(Aws::Utils::Json::JsonView jsonValue);
36 AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
45 inline const Aws::String& GetChannelArn() const { return m_channelArn; }
46 inline bool ChannelArnHasBeenSet() const { return m_channelArnHasBeenSet; }
47 template <typename ChannelArnT = Aws::String>
48 void SetChannelArn(ChannelArnT&& value) {
49 m_channelArnHasBeenSet = true;
50 m_channelArn = std::forward<ChannelArnT>(value);
51 }
52 template <typename ChannelArnT = Aws::String>
53 ChannelInfo& WithChannelArn(ChannelArnT&& value) {
54 SetChannelArn(std::forward<ChannelArnT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetChannelName() const { return m_channelName; }
64 inline bool ChannelNameHasBeenSet() const { return m_channelNameHasBeenSet; }
65 template <typename ChannelNameT = Aws::String>
66 void SetChannelName(ChannelNameT&& value) {
67 m_channelNameHasBeenSet = true;
68 m_channelName = std::forward<ChannelNameT>(value);
69 }
70 template <typename ChannelNameT = Aws::String>
71 ChannelInfo& WithChannelName(ChannelNameT&& value) {
72 SetChannelName(std::forward<ChannelNameT>(value));
73 return *this;
74 }
76
78
81 inline ChannelStatus GetStatus() const { return m_status; }
82 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
83 inline void SetStatus(ChannelStatus value) {
84 m_statusHasBeenSet = true;
85 m_status = value;
86 }
88 SetStatus(value);
89 return *this;
90 }
92
94
99 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
100 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
101 template <typename CreationTimeT = Aws::Utils::DateTime>
102 void SetCreationTime(CreationTimeT&& value) {
103 m_creationTimeHasBeenSet = true;
104 m_creationTime = std::forward<CreationTimeT>(value);
105 }
106 template <typename CreationTimeT = Aws::Utils::DateTime>
107 ChannelInfo& WithCreationTime(CreationTimeT&& value) {
108 SetCreationTime(std::forward<CreationTimeT>(value));
109 return *this;
110 }
112
114
117 inline ChannelDestinationType GetDestinationType() const { return m_destinationType; }
118 inline bool DestinationTypeHasBeenSet() const { return m_destinationTypeHasBeenSet; }
120 m_destinationTypeHasBeenSet = true;
121 m_destinationType = value;
122 }
124 SetDestinationType(value);
125 return *this;
126 }
128
130
134 inline const Aws::String& GetClusterOperationArn() const { return m_clusterOperationArn; }
135 inline bool ClusterOperationArnHasBeenSet() const { return m_clusterOperationArnHasBeenSet; }
136 template <typename ClusterOperationArnT = Aws::String>
137 void SetClusterOperationArn(ClusterOperationArnT&& value) {
138 m_clusterOperationArnHasBeenSet = true;
139 m_clusterOperationArn = std::forward<ClusterOperationArnT>(value);
140 }
141 template <typename ClusterOperationArnT = Aws::String>
142 ChannelInfo& WithClusterOperationArn(ClusterOperationArnT&& value) {
143 SetClusterOperationArn(std::forward<ClusterOperationArnT>(value));
144 return *this;
145 }
147 private:
148 Aws::String m_channelArn;
149
150 Aws::String m_channelName;
151
153
154 Aws::Utils::DateTime m_creationTime{};
155
157
158 Aws::String m_clusterOperationArn;
159 bool m_channelArnHasBeenSet = false;
160 bool m_channelNameHasBeenSet = false;
161 bool m_statusHasBeenSet = false;
162 bool m_creationTimeHasBeenSet = false;
163 bool m_destinationTypeHasBeenSet = false;
164 bool m_clusterOperationArnHasBeenSet = false;
165};
166
167} // namespace Model
168} // namespace Kafka
169} // namespace Aws
const Aws::String & GetClusterOperationArn() const
const Aws::String & GetChannelName() const
Definition ChannelInfo.h:63
bool ClusterOperationArnHasBeenSet() const
AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const
void SetChannelArn(ChannelArnT &&value)
Definition ChannelInfo.h:48
ChannelDestinationType GetDestinationType() const
ChannelInfo & WithStatus(ChannelStatus value)
Definition ChannelInfo.h:87
void SetChannelName(ChannelNameT &&value)
Definition ChannelInfo.h:66
ChannelInfo & WithClusterOperationArn(ClusterOperationArnT &&value)
ChannelStatus GetStatus() const
Definition ChannelInfo.h:81
ChannelInfo & WithCreationTime(CreationTimeT &&value)
void SetClusterOperationArn(ClusterOperationArnT &&value)
AWS_KAFKA_API ChannelInfo()=default
ChannelInfo & WithChannelArn(ChannelArnT &&value)
Definition ChannelInfo.h:53
ChannelInfo & WithDestinationType(ChannelDestinationType value)
void SetCreationTime(CreationTimeT &&value)
const Aws::String & GetChannelArn() const
Definition ChannelInfo.h:45
AWS_KAFKA_API ChannelInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_KAFKA_API ChannelInfo(Aws::Utils::Json::JsonView jsonValue)
void SetStatus(ChannelStatus value)
Definition ChannelInfo.h:83
void SetDestinationType(ChannelDestinationType value)
const Aws::Utils::DateTime & GetCreationTime() const
Definition ChannelInfo.h:99
ChannelInfo & WithChannelName(ChannelNameT &&value)
Definition ChannelInfo.h:71
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue