AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
StreamInfo.h
1
6#pragma once
7#include <aws/kinesisvideo/KinesisVideo_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/kinesisvideo/model/Status.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace KinesisVideo
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_KINESISVIDEO_API StreamInfo() = default;
37 AWS_KINESISVIDEO_API StreamInfo(Aws::Utils::Json::JsonView jsonValue);
38 AWS_KINESISVIDEO_API StreamInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_KINESISVIDEO_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetDeviceName() const { return m_deviceName; }
47 inline bool DeviceNameHasBeenSet() const { return m_deviceNameHasBeenSet; }
48 template<typename DeviceNameT = Aws::String>
49 void SetDeviceName(DeviceNameT&& value) { m_deviceNameHasBeenSet = true; m_deviceName = std::forward<DeviceNameT>(value); }
50 template<typename DeviceNameT = Aws::String>
51 StreamInfo& WithDeviceName(DeviceNameT&& value) { SetDeviceName(std::forward<DeviceNameT>(value)); return *this;}
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) { m_streamNameHasBeenSet = true; m_streamName = std::forward<StreamNameT>(value); }
62 template<typename StreamNameT = Aws::String>
63 StreamInfo& WithStreamName(StreamNameT&& value) { SetStreamName(std::forward<StreamNameT>(value)); return *this;}
65
67
70 inline const Aws::String& GetStreamARN() const { return m_streamARN; }
71 inline bool StreamARNHasBeenSet() const { return m_streamARNHasBeenSet; }
72 template<typename StreamARNT = Aws::String>
73 void SetStreamARN(StreamARNT&& value) { m_streamARNHasBeenSet = true; m_streamARN = std::forward<StreamARNT>(value); }
74 template<typename StreamARNT = Aws::String>
75 StreamInfo& WithStreamARN(StreamARNT&& value) { SetStreamARN(std::forward<StreamARNT>(value)); return *this;}
77
79
82 inline const Aws::String& GetMediaType() const { return m_mediaType; }
83 inline bool MediaTypeHasBeenSet() const { return m_mediaTypeHasBeenSet; }
84 template<typename MediaTypeT = Aws::String>
85 void SetMediaType(MediaTypeT&& value) { m_mediaTypeHasBeenSet = true; m_mediaType = std::forward<MediaTypeT>(value); }
86 template<typename MediaTypeT = Aws::String>
87 StreamInfo& WithMediaType(MediaTypeT&& value) { SetMediaType(std::forward<MediaTypeT>(value)); return *this;}
89
91
95 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
96 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
97 template<typename KmsKeyIdT = Aws::String>
98 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
99 template<typename KmsKeyIdT = Aws::String>
100 StreamInfo& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
102
104
107 inline const Aws::String& GetVersion() const { return m_version; }
108 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
109 template<typename VersionT = Aws::String>
110 void SetVersion(VersionT&& value) { m_versionHasBeenSet = true; m_version = std::forward<VersionT>(value); }
111 template<typename VersionT = Aws::String>
112 StreamInfo& WithVersion(VersionT&& value) { SetVersion(std::forward<VersionT>(value)); return *this;}
114
116
119 inline Status GetStatus() const { return m_status; }
120 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
121 inline void SetStatus(Status value) { m_statusHasBeenSet = true; m_status = value; }
122 inline StreamInfo& WithStatus(Status value) { SetStatus(value); return *this;}
124
126
129 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
130 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
131 template<typename CreationTimeT = Aws::Utils::DateTime>
132 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
133 template<typename CreationTimeT = Aws::Utils::DateTime>
134 StreamInfo& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
136
138
141 inline int GetDataRetentionInHours() const { return m_dataRetentionInHours; }
142 inline bool DataRetentionInHoursHasBeenSet() const { return m_dataRetentionInHoursHasBeenSet; }
143 inline void SetDataRetentionInHours(int value) { m_dataRetentionInHoursHasBeenSet = true; m_dataRetentionInHours = value; }
144 inline StreamInfo& WithDataRetentionInHours(int value) { SetDataRetentionInHours(value); return *this;}
146 private:
147
148 Aws::String m_deviceName;
149 bool m_deviceNameHasBeenSet = false;
150
151 Aws::String m_streamName;
152 bool m_streamNameHasBeenSet = false;
153
154 Aws::String m_streamARN;
155 bool m_streamARNHasBeenSet = false;
156
157 Aws::String m_mediaType;
158 bool m_mediaTypeHasBeenSet = false;
159
160 Aws::String m_kmsKeyId;
161 bool m_kmsKeyIdHasBeenSet = false;
162
163 Aws::String m_version;
164 bool m_versionHasBeenSet = false;
165
166 Status m_status{Status::NOT_SET};
167 bool m_statusHasBeenSet = false;
168
169 Aws::Utils::DateTime m_creationTime{};
170 bool m_creationTimeHasBeenSet = false;
171
172 int m_dataRetentionInHours{0};
173 bool m_dataRetentionInHoursHasBeenSet = false;
174 };
175
176} // namespace Model
177} // namespace KinesisVideo
178} // namespace Aws
void SetCreationTime(CreationTimeT &&value)
Definition StreamInfo.h:132
void SetKmsKeyId(KmsKeyIdT &&value)
Definition StreamInfo.h:98
StreamInfo & WithKmsKeyId(KmsKeyIdT &&value)
Definition StreamInfo.h:100
void SetVersion(VersionT &&value)
Definition StreamInfo.h:110
StreamInfo & WithDataRetentionInHours(int value)
Definition StreamInfo.h:144
void SetMediaType(MediaTypeT &&value)
Definition StreamInfo.h:85
AWS_KINESISVIDEO_API StreamInfo()=default
const Aws::String & GetVersion() const
Definition StreamInfo.h:107
void SetDeviceName(DeviceNameT &&value)
Definition StreamInfo.h:49
const Aws::String & GetKmsKeyId() const
Definition StreamInfo.h:95
StreamInfo & WithDeviceName(DeviceNameT &&value)
Definition StreamInfo.h:51
void SetStreamARN(StreamARNT &&value)
Definition StreamInfo.h:73
const Aws::String & GetMediaType() const
Definition StreamInfo.h:82
StreamInfo & WithVersion(VersionT &&value)
Definition StreamInfo.h:112
void SetStreamName(StreamNameT &&value)
Definition StreamInfo.h:61
StreamInfo & WithStreamARN(StreamARNT &&value)
Definition StreamInfo.h:75
const Aws::String & GetStreamName() const
Definition StreamInfo.h:58
const Aws::String & GetDeviceName() const
Definition StreamInfo.h:46
StreamInfo & WithCreationTime(CreationTimeT &&value)
Definition StreamInfo.h:134
StreamInfo & WithMediaType(MediaTypeT &&value)
Definition StreamInfo.h:87
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:122
const Aws::Utils::DateTime & GetCreationTime() const
Definition StreamInfo.h:129
const Aws::String & GetStreamARN() const
Definition StreamInfo.h:70
AWS_KINESISVIDEO_API StreamInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
StreamInfo & WithStreamName(StreamNameT &&value)
Definition StreamInfo.h:63
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue