AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
RtmpPushSourceSettings.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/mediaconnect/MediaConnect_EXPORTS.h>
9#include <aws/mediaconnect/model/RtmpPushNamingType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace MediaConnect {
21namespace Model {
22
30 public:
31 AWS_MEDIACONNECT_API RtmpPushSourceSettings() = default;
32 AWS_MEDIACONNECT_API RtmpPushSourceSettings(Aws::Utils::Json::JsonView jsonValue);
34 AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
42 inline const Aws::String& GetApplicationName() const { return m_applicationName; }
43 inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; }
44 template <typename ApplicationNameT = Aws::String>
45 void SetApplicationName(ApplicationNameT&& value) {
46 m_applicationNameHasBeenSet = true;
47 m_applicationName = std::forward<ApplicationNameT>(value);
48 }
49 template <typename ApplicationNameT = Aws::String>
50 RtmpPushSourceSettings& WithApplicationName(ApplicationNameT&& value) {
51 SetApplicationName(std::forward<ApplicationNameT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetStreamName() const { return m_streamName; }
62 inline bool StreamNameHasBeenSet() const { return m_streamNameHasBeenSet; }
63 template <typename StreamNameT = Aws::String>
64 void SetStreamName(StreamNameT&& value) {
65 m_streamNameHasBeenSet = true;
66 m_streamName = std::forward<StreamNameT>(value);
67 }
68 template <typename StreamNameT = Aws::String>
69 RtmpPushSourceSettings& WithStreamName(StreamNameT&& value) {
70 SetStreamName(std::forward<StreamNameT>(value));
71 return *this;
72 }
74
76
80 inline RtmpPushNamingType GetNamingType() const { return m_namingType; }
81 inline bool NamingTypeHasBeenSet() const { return m_namingTypeHasBeenSet; }
82 inline void SetNamingType(RtmpPushNamingType value) {
83 m_namingTypeHasBeenSet = true;
84 m_namingType = value;
85 }
87 SetNamingType(value);
88 return *this;
89 }
91 private:
92 Aws::String m_applicationName;
93
94 Aws::String m_streamName;
95
97 bool m_applicationNameHasBeenSet = false;
98 bool m_streamNameHasBeenSet = false;
99 bool m_namingTypeHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace MediaConnect
104} // namespace Aws
AWS_MEDIACONNECT_API RtmpPushSourceSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
RtmpPushSourceSettings & WithApplicationName(ApplicationNameT &&value)
AWS_MEDIACONNECT_API RtmpPushSourceSettings(Aws::Utils::Json::JsonView jsonValue)
RtmpPushSourceSettings & WithStreamName(StreamNameT &&value)
AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MEDIACONNECT_API RtmpPushSourceSettings()=default
RtmpPushSourceSettings & WithNamingType(RtmpPushNamingType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue