AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
RecorderConfig.h
1
6#pragma once
7#include <aws/kinesisvideo/KinesisVideo_EXPORTS.h>
8#include <aws/kinesisvideo/model/MediaSourceConfig.h>
9#include <aws/kinesisvideo/model/ScheduleConfig.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace KinesisVideo {
21namespace Model {
22
31 public:
32 AWS_KINESISVIDEO_API RecorderConfig() = default;
33 AWS_KINESISVIDEO_API RecorderConfig(Aws::Utils::Json::JsonView jsonValue);
34 AWS_KINESISVIDEO_API RecorderConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_KINESISVIDEO_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
43 inline const MediaSourceConfig& GetMediaSourceConfig() const { return m_mediaSourceConfig; }
44 inline bool MediaSourceConfigHasBeenSet() const { return m_mediaSourceConfigHasBeenSet; }
45 template <typename MediaSourceConfigT = MediaSourceConfig>
46 void SetMediaSourceConfig(MediaSourceConfigT&& value) {
47 m_mediaSourceConfigHasBeenSet = true;
48 m_mediaSourceConfig = std::forward<MediaSourceConfigT>(value);
49 }
50 template <typename MediaSourceConfigT = MediaSourceConfig>
51 RecorderConfig& WithMediaSourceConfig(MediaSourceConfigT&& value) {
52 SetMediaSourceConfig(std::forward<MediaSourceConfigT>(value));
53 return *this;
54 }
56
58
65 inline const ScheduleConfig& GetScheduleConfig() const { return m_scheduleConfig; }
66 inline bool ScheduleConfigHasBeenSet() const { return m_scheduleConfigHasBeenSet; }
67 template <typename ScheduleConfigT = ScheduleConfig>
68 void SetScheduleConfig(ScheduleConfigT&& value) {
69 m_scheduleConfigHasBeenSet = true;
70 m_scheduleConfig = std::forward<ScheduleConfigT>(value);
71 }
72 template <typename ScheduleConfigT = ScheduleConfig>
73 RecorderConfig& WithScheduleConfig(ScheduleConfigT&& value) {
74 SetScheduleConfig(std::forward<ScheduleConfigT>(value));
75 return *this;
76 }
78 private:
79 MediaSourceConfig m_mediaSourceConfig;
80
81 ScheduleConfig m_scheduleConfig;
82 bool m_mediaSourceConfigHasBeenSet = false;
83 bool m_scheduleConfigHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace KinesisVideo
88} // namespace Aws
const MediaSourceConfig & GetMediaSourceConfig() const
RecorderConfig & WithScheduleConfig(ScheduleConfigT &&value)
AWS_KINESISVIDEO_API RecorderConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
const ScheduleConfig & GetScheduleConfig() const
void SetMediaSourceConfig(MediaSourceConfigT &&value)
void SetScheduleConfig(ScheduleConfigT &&value)
AWS_KINESISVIDEO_API Aws::Utils::Json::JsonValue Jsonize() const
RecorderConfig & WithMediaSourceConfig(MediaSourceConfigT &&value)
AWS_KINESISVIDEO_API RecorderConfig()=default
AWS_KINESISVIDEO_API RecorderConfig(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue