AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
StreamInfo.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/Status.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace KinesisVideo {
22namespace Model {
23
30 public:
31 AWS_KINESISVIDEO_API StreamInfo() = default;
32 AWS_KINESISVIDEO_API StreamInfo(Aws::Utils::Json::JsonView jsonValue);
33 AWS_KINESISVIDEO_API StreamInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_KINESISVIDEO_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetDeviceName() const { return m_deviceName; }
41 inline bool DeviceNameHasBeenSet() const { return m_deviceNameHasBeenSet; }
42 template <typename DeviceNameT = Aws::String>
43 void SetDeviceName(DeviceNameT&& value) {
44 m_deviceNameHasBeenSet = true;
45 m_deviceName = std::forward<DeviceNameT>(value);
46 }
47 template <typename DeviceNameT = Aws::String>
48 StreamInfo& WithDeviceName(DeviceNameT&& value) {
49 SetDeviceName(std::forward<DeviceNameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetStreamName() const { return m_streamName; }
59 inline bool StreamNameHasBeenSet() const { return m_streamNameHasBeenSet; }
60 template <typename StreamNameT = Aws::String>
61 void SetStreamName(StreamNameT&& value) {
62 m_streamNameHasBeenSet = true;
63 m_streamName = std::forward<StreamNameT>(value);
64 }
65 template <typename StreamNameT = Aws::String>
66 StreamInfo& WithStreamName(StreamNameT&& value) {
67 SetStreamName(std::forward<StreamNameT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetStreamARN() const { return m_streamARN; }
77 inline bool StreamARNHasBeenSet() const { return m_streamARNHasBeenSet; }
78 template <typename StreamARNT = Aws::String>
79 void SetStreamARN(StreamARNT&& value) {
80 m_streamARNHasBeenSet = true;
81 m_streamARN = std::forward<StreamARNT>(value);
82 }
83 template <typename StreamARNT = Aws::String>
84 StreamInfo& WithStreamARN(StreamARNT&& value) {
85 SetStreamARN(std::forward<StreamARNT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetMediaType() const { return m_mediaType; }
95 inline bool MediaTypeHasBeenSet() const { return m_mediaTypeHasBeenSet; }
96 template <typename MediaTypeT = Aws::String>
97 void SetMediaType(MediaTypeT&& value) {
98 m_mediaTypeHasBeenSet = true;
99 m_mediaType = std::forward<MediaTypeT>(value);
100 }
101 template <typename MediaTypeT = Aws::String>
102 StreamInfo& WithMediaType(MediaTypeT&& value) {
103 SetMediaType(std::forward<MediaTypeT>(value));
104 return *this;
105 }
107
109
113 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
114 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
115 template <typename KmsKeyIdT = Aws::String>
116 void SetKmsKeyId(KmsKeyIdT&& value) {
117 m_kmsKeyIdHasBeenSet = true;
118 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
119 }
120 template <typename KmsKeyIdT = Aws::String>
121 StreamInfo& WithKmsKeyId(KmsKeyIdT&& value) {
122 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::String& GetVersion() const { return m_version; }
132 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
133 template <typename VersionT = Aws::String>
134 void SetVersion(VersionT&& value) {
135 m_versionHasBeenSet = true;
136 m_version = std::forward<VersionT>(value);
137 }
138 template <typename VersionT = Aws::String>
139 StreamInfo& WithVersion(VersionT&& value) {
140 SetVersion(std::forward<VersionT>(value));
141 return *this;
142 }
144
146
149 inline Status GetStatus() const { return m_status; }
150 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
151 inline void SetStatus(Status value) {
152 m_statusHasBeenSet = true;
153 m_status = value;
154 }
155 inline StreamInfo& WithStatus(Status value) {
156 SetStatus(value);
157 return *this;
158 }
160
162
165 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
166 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
167 template <typename CreationTimeT = Aws::Utils::DateTime>
168 void SetCreationTime(CreationTimeT&& value) {
169 m_creationTimeHasBeenSet = true;
170 m_creationTime = std::forward<CreationTimeT>(value);
171 }
172 template <typename CreationTimeT = Aws::Utils::DateTime>
173 StreamInfo& WithCreationTime(CreationTimeT&& value) {
174 SetCreationTime(std::forward<CreationTimeT>(value));
175 return *this;
176 }
178
180
183 inline int GetDataRetentionInHours() const { return m_dataRetentionInHours; }
184 inline bool DataRetentionInHoursHasBeenSet() const { return m_dataRetentionInHoursHasBeenSet; }
185 inline void SetDataRetentionInHours(int value) {
186 m_dataRetentionInHoursHasBeenSet = true;
187 m_dataRetentionInHours = value;
188 }
191 return *this;
192 }
194 private:
195 Aws::String m_deviceName;
196
197 Aws::String m_streamName;
198
199 Aws::String m_streamARN;
200
201 Aws::String m_mediaType;
202
203 Aws::String m_kmsKeyId;
204
205 Aws::String m_version;
206
207 Status m_status{Status::NOT_SET};
208
209 Aws::Utils::DateTime m_creationTime{};
210
211 int m_dataRetentionInHours{0};
212 bool m_deviceNameHasBeenSet = false;
213 bool m_streamNameHasBeenSet = false;
214 bool m_streamARNHasBeenSet = false;
215 bool m_mediaTypeHasBeenSet = false;
216 bool m_kmsKeyIdHasBeenSet = false;
217 bool m_versionHasBeenSet = false;
218 bool m_statusHasBeenSet = false;
219 bool m_creationTimeHasBeenSet = false;
220 bool m_dataRetentionInHoursHasBeenSet = false;
221};
222
223} // namespace Model
224} // namespace KinesisVideo
225} // namespace Aws
void SetCreationTime(CreationTimeT &&value)
Definition StreamInfo.h:168
void SetKmsKeyId(KmsKeyIdT &&value)
Definition StreamInfo.h:116
StreamInfo & WithKmsKeyId(KmsKeyIdT &&value)
Definition StreamInfo.h:121
void SetVersion(VersionT &&value)
Definition StreamInfo.h:134
StreamInfo & WithDataRetentionInHours(int value)
Definition StreamInfo.h:189
void SetMediaType(MediaTypeT &&value)
Definition StreamInfo.h:97
AWS_KINESISVIDEO_API StreamInfo()=default
const Aws::String & GetVersion() const
Definition StreamInfo.h:131
void SetDeviceName(DeviceNameT &&value)
Definition StreamInfo.h:43
const Aws::String & GetKmsKeyId() const
Definition StreamInfo.h:113
StreamInfo & WithDeviceName(DeviceNameT &&value)
Definition StreamInfo.h:48
void SetStreamARN(StreamARNT &&value)
Definition StreamInfo.h:79
const Aws::String & GetMediaType() const
Definition StreamInfo.h:94
StreamInfo & WithVersion(VersionT &&value)
Definition StreamInfo.h:139
void SetStreamName(StreamNameT &&value)
Definition StreamInfo.h:61
StreamInfo & WithStreamARN(StreamARNT &&value)
Definition StreamInfo.h:84
const Aws::String & GetStreamName() const
Definition StreamInfo.h:58
const Aws::String & GetDeviceName() const
Definition StreamInfo.h:40
StreamInfo & WithCreationTime(CreationTimeT &&value)
Definition StreamInfo.h:173
StreamInfo & WithMediaType(MediaTypeT &&value)
Definition StreamInfo.h:102
AWS_KINESISVIDEO_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_KINESISVIDEO_API StreamInfo(Aws::Utils::Json::JsonView jsonValue)
StreamInfo & WithStatus(Status value)
Definition StreamInfo.h:155
const Aws::Utils::DateTime & GetCreationTime() const
Definition StreamInfo.h:165
const Aws::String & GetStreamARN() const
Definition StreamInfo.h:76
AWS_KINESISVIDEO_API StreamInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
StreamInfo & WithStreamName(StreamNameT &&value)
Definition StreamInfo.h:66
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue