AWS SDK for C++

AWS SDK for C++ Version 1.11.741

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/kinesisvideo/KinesisVideo_EXPORTS.h>
10#include <aws/kinesisvideo/model/ChannelType.h>
11#include <aws/kinesisvideo/model/SingleMasterConfiguration.h>
12#include <aws/kinesisvideo/model/Status.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace KinesisVideo {
24namespace Model {
25
33 public:
34 AWS_KINESISVIDEO_API ChannelInfo() = default;
35 AWS_KINESISVIDEO_API ChannelInfo(Aws::Utils::Json::JsonView jsonValue);
36 AWS_KINESISVIDEO_API ChannelInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_KINESISVIDEO_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetChannelName() const { return m_channelName; }
44 inline bool ChannelNameHasBeenSet() const { return m_channelNameHasBeenSet; }
45 template <typename ChannelNameT = Aws::String>
46 void SetChannelName(ChannelNameT&& value) {
47 m_channelNameHasBeenSet = true;
48 m_channelName = std::forward<ChannelNameT>(value);
49 }
50 template <typename ChannelNameT = Aws::String>
51 ChannelInfo& WithChannelName(ChannelNameT&& value) {
52 SetChannelName(std::forward<ChannelNameT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetChannelARN() const { return m_channelARN; }
62 inline bool ChannelARNHasBeenSet() const { return m_channelARNHasBeenSet; }
63 template <typename ChannelARNT = Aws::String>
64 void SetChannelARN(ChannelARNT&& value) {
65 m_channelARNHasBeenSet = true;
66 m_channelARN = std::forward<ChannelARNT>(value);
67 }
68 template <typename ChannelARNT = Aws::String>
69 ChannelInfo& WithChannelARN(ChannelARNT&& value) {
70 SetChannelARN(std::forward<ChannelARNT>(value));
71 return *this;
72 }
74
76
79 inline ChannelType GetChannelType() const { return m_channelType; }
80 inline bool ChannelTypeHasBeenSet() const { return m_channelTypeHasBeenSet; }
81 inline void SetChannelType(ChannelType value) {
82 m_channelTypeHasBeenSet = true;
83 m_channelType = value;
84 }
86 SetChannelType(value);
87 return *this;
88 }
90
92
95 inline Status GetChannelStatus() const { return m_channelStatus; }
96 inline bool ChannelStatusHasBeenSet() const { return m_channelStatusHasBeenSet; }
97 inline void SetChannelStatus(Status value) {
98 m_channelStatusHasBeenSet = true;
99 m_channelStatus = value;
100 }
102 SetChannelStatus(value);
103 return *this;
104 }
106
108
111 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
112 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
113 template <typename CreationTimeT = Aws::Utils::DateTime>
114 void SetCreationTime(CreationTimeT&& value) {
115 m_creationTimeHasBeenSet = true;
116 m_creationTime = std::forward<CreationTimeT>(value);
117 }
118 template <typename CreationTimeT = Aws::Utils::DateTime>
119 ChannelInfo& WithCreationTime(CreationTimeT&& value) {
120 SetCreationTime(std::forward<CreationTimeT>(value));
121 return *this;
122 }
124
126
130 inline const SingleMasterConfiguration& GetSingleMasterConfiguration() const { return m_singleMasterConfiguration; }
131 inline bool SingleMasterConfigurationHasBeenSet() const { return m_singleMasterConfigurationHasBeenSet; }
132 template <typename SingleMasterConfigurationT = SingleMasterConfiguration>
133 void SetSingleMasterConfiguration(SingleMasterConfigurationT&& value) {
134 m_singleMasterConfigurationHasBeenSet = true;
135 m_singleMasterConfiguration = std::forward<SingleMasterConfigurationT>(value);
136 }
137 template <typename SingleMasterConfigurationT = SingleMasterConfiguration>
138 ChannelInfo& WithSingleMasterConfiguration(SingleMasterConfigurationT&& value) {
139 SetSingleMasterConfiguration(std::forward<SingleMasterConfigurationT>(value));
140 return *this;
141 }
143
145
148 inline const Aws::String& GetVersion() const { return m_version; }
149 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
150 template <typename VersionT = Aws::String>
151 void SetVersion(VersionT&& value) {
152 m_versionHasBeenSet = true;
153 m_version = std::forward<VersionT>(value);
154 }
155 template <typename VersionT = Aws::String>
156 ChannelInfo& WithVersion(VersionT&& value) {
157 SetVersion(std::forward<VersionT>(value));
158 return *this;
159 }
161 private:
162 Aws::String m_channelName;
163
164 Aws::String m_channelARN;
165
166 ChannelType m_channelType{ChannelType::NOT_SET};
167
168 Status m_channelStatus{Status::NOT_SET};
169
170 Aws::Utils::DateTime m_creationTime{};
171
172 SingleMasterConfiguration m_singleMasterConfiguration;
173
174 Aws::String m_version;
175 bool m_channelNameHasBeenSet = false;
176 bool m_channelARNHasBeenSet = false;
177 bool m_channelTypeHasBeenSet = false;
178 bool m_channelStatusHasBeenSet = false;
179 bool m_creationTimeHasBeenSet = false;
180 bool m_singleMasterConfigurationHasBeenSet = false;
181 bool m_versionHasBeenSet = false;
182};
183
184} // namespace Model
185} // namespace KinesisVideo
186} // namespace Aws
ChannelInfo & WithChannelStatus(Status value)
AWS_KINESISVIDEO_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetVersion() const
AWS_KINESISVIDEO_API ChannelInfo()=default
const SingleMasterConfiguration & GetSingleMasterConfiguration() const
const Aws::Utils::DateTime & GetCreationTime() const
AWS_KINESISVIDEO_API ChannelInfo(Aws::Utils::Json::JsonView jsonValue)
void SetCreationTime(CreationTimeT &&value)
ChannelInfo & WithVersion(VersionT &&value)
void SetVersion(VersionT &&value)
AWS_KINESISVIDEO_API ChannelInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetChannelARN() const
Definition ChannelInfo.h:61
ChannelInfo & WithChannelName(ChannelNameT &&value)
Definition ChannelInfo.h:51
void SetSingleMasterConfiguration(SingleMasterConfigurationT &&value)
void SetChannelType(ChannelType value)
Definition ChannelInfo.h:81
ChannelInfo & WithCreationTime(CreationTimeT &&value)
ChannelInfo & WithChannelARN(ChannelARNT &&value)
Definition ChannelInfo.h:69
void SetChannelARN(ChannelARNT &&value)
Definition ChannelInfo.h:64
ChannelInfo & WithChannelType(ChannelType value)
Definition ChannelInfo.h:85
ChannelInfo & WithSingleMasterConfiguration(SingleMasterConfigurationT &&value)
void SetChannelName(ChannelNameT &&value)
Definition ChannelInfo.h:46
const Aws::String & GetChannelName() const
Definition ChannelInfo.h:43
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue