AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
SingleMasterChannelEndpointConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/kinesisvideo/KinesisVideo_EXPORTS.h>
9#include <aws/kinesisvideo/model/ChannelProtocol.h>
10#include <aws/kinesisvideo/model/ChannelRole.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
31 public:
32 AWS_KINESISVIDEO_API SingleMasterChannelEndpointConfiguration() = default;
35 AWS_KINESISVIDEO_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
44 inline const Aws::Vector<ChannelProtocol>& GetProtocols() const { return m_protocols; }
45 inline bool ProtocolsHasBeenSet() const { return m_protocolsHasBeenSet; }
46 template <typename ProtocolsT = Aws::Vector<ChannelProtocol>>
47 void SetProtocols(ProtocolsT&& value) {
48 m_protocolsHasBeenSet = true;
49 m_protocols = std::forward<ProtocolsT>(value);
50 }
51 template <typename ProtocolsT = Aws::Vector<ChannelProtocol>>
53 SetProtocols(std::forward<ProtocolsT>(value));
54 return *this;
55 }
57 m_protocolsHasBeenSet = true;
58 m_protocols.push_back(value);
59 return *this;
60 }
62
64
73 inline ChannelRole GetRole() const { return m_role; }
74 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
75 inline void SetRole(ChannelRole value) {
76 m_roleHasBeenSet = true;
77 m_role = value;
78 }
80 SetRole(value);
81 return *this;
82 }
84 private:
86
88 bool m_protocolsHasBeenSet = false;
89 bool m_roleHasBeenSet = false;
90};
91
92} // namespace Model
93} // namespace KinesisVideo
94} // namespace Aws
SingleMasterChannelEndpointConfiguration & AddProtocols(ChannelProtocol value)
AWS_KINESISVIDEO_API SingleMasterChannelEndpointConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_KINESISVIDEO_API SingleMasterChannelEndpointConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_KINESISVIDEO_API Aws::Utils::Json::JsonValue Jsonize() const
SingleMasterChannelEndpointConfiguration & WithRole(ChannelRole value)
SingleMasterChannelEndpointConfiguration & WithProtocols(ProtocolsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue