AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
NdiConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/mediaconnect/MediaConnect_EXPORTS.h>
10#include <aws/mediaconnect/model/NdiDiscoveryServerConfig.h>
11#include <aws/mediaconnect/model/NdiState.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace MediaConnect {
23namespace Model {
24
31class NdiConfig {
32 public:
33 AWS_MEDIACONNECT_API NdiConfig() = default;
34 AWS_MEDIACONNECT_API NdiConfig(Aws::Utils::Json::JsonView jsonValue);
35 AWS_MEDIACONNECT_API NdiConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
45 inline NdiState GetNdiState() const { return m_ndiState; }
46 inline bool NdiStateHasBeenSet() const { return m_ndiStateHasBeenSet; }
47 inline void SetNdiState(NdiState value) {
48 m_ndiStateHasBeenSet = true;
49 m_ndiState = value;
50 }
52 SetNdiState(value);
53 return *this;
54 }
56
58
63 inline const Aws::String& GetMachineName() const { return m_machineName; }
64 inline bool MachineNameHasBeenSet() const { return m_machineNameHasBeenSet; }
65 template <typename MachineNameT = Aws::String>
66 void SetMachineName(MachineNameT&& value) {
67 m_machineNameHasBeenSet = true;
68 m_machineName = std::forward<MachineNameT>(value);
69 }
70 template <typename MachineNameT = Aws::String>
71 NdiConfig& WithMachineName(MachineNameT&& value) {
72 SetMachineName(std::forward<MachineNameT>(value));
73 return *this;
74 }
76
78
83 inline const Aws::Vector<NdiDiscoveryServerConfig>& GetNdiDiscoveryServers() const { return m_ndiDiscoveryServers; }
84 inline bool NdiDiscoveryServersHasBeenSet() const { return m_ndiDiscoveryServersHasBeenSet; }
85 template <typename NdiDiscoveryServersT = Aws::Vector<NdiDiscoveryServerConfig>>
86 void SetNdiDiscoveryServers(NdiDiscoveryServersT&& value) {
87 m_ndiDiscoveryServersHasBeenSet = true;
88 m_ndiDiscoveryServers = std::forward<NdiDiscoveryServersT>(value);
89 }
90 template <typename NdiDiscoveryServersT = Aws::Vector<NdiDiscoveryServerConfig>>
91 NdiConfig& WithNdiDiscoveryServers(NdiDiscoveryServersT&& value) {
92 SetNdiDiscoveryServers(std::forward<NdiDiscoveryServersT>(value));
93 return *this;
94 }
95 template <typename NdiDiscoveryServersT = NdiDiscoveryServerConfig>
96 NdiConfig& AddNdiDiscoveryServers(NdiDiscoveryServersT&& value) {
97 m_ndiDiscoveryServersHasBeenSet = true;
98 m_ndiDiscoveryServers.emplace_back(std::forward<NdiDiscoveryServersT>(value));
99 return *this;
100 }
102 private:
103 NdiState m_ndiState{NdiState::NOT_SET};
104
105 Aws::String m_machineName;
106
107 Aws::Vector<NdiDiscoveryServerConfig> m_ndiDiscoveryServers;
108 bool m_ndiStateHasBeenSet = false;
109 bool m_machineNameHasBeenSet = false;
110 bool m_ndiDiscoveryServersHasBeenSet = false;
111};
112
113} // namespace Model
114} // namespace MediaConnect
115} // namespace Aws
const Aws::Vector< NdiDiscoveryServerConfig > & GetNdiDiscoveryServers() const
Definition NdiConfig.h:83
AWS_MEDIACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MEDIACONNECT_API NdiConfig()=default
const Aws::String & GetMachineName() const
Definition NdiConfig.h:63
AWS_MEDIACONNECT_API NdiConfig(Aws::Utils::Json::JsonView jsonValue)
NdiConfig & WithNdiState(NdiState value)
Definition NdiConfig.h:51
void SetNdiState(NdiState value)
Definition NdiConfig.h:47
NdiConfig & WithMachineName(MachineNameT &&value)
Definition NdiConfig.h:71
NdiConfig & AddNdiDiscoveryServers(NdiDiscoveryServersT &&value)
Definition NdiConfig.h:96
void SetNdiDiscoveryServers(NdiDiscoveryServersT &&value)
Definition NdiConfig.h:86
NdiConfig & WithNdiDiscoveryServers(NdiDiscoveryServersT &&value)
Definition NdiConfig.h:91
AWS_MEDIACONNECT_API NdiConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetMachineName(MachineNameT &&value)
Definition NdiConfig.h:66
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue