AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
SingleMasterChannelEndpointConfiguration.h
1
6#pragma once
7#include <aws/kinesisvideo/KinesisVideo_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/kinesisvideo/model/ChannelRole.h>
10#include <aws/kinesisvideo/model/ChannelProtocol.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
35 {
36 public:
37 AWS_KINESISVIDEO_API SingleMasterChannelEndpointConfiguration() = default;
40 AWS_KINESISVIDEO_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
50 inline const Aws::Vector<ChannelProtocol>& GetProtocols() const { return m_protocols; }
51 inline bool ProtocolsHasBeenSet() const { return m_protocolsHasBeenSet; }
52 template<typename ProtocolsT = Aws::Vector<ChannelProtocol>>
53 void SetProtocols(ProtocolsT&& value) { m_protocolsHasBeenSet = true; m_protocols = std::forward<ProtocolsT>(value); }
54 template<typename ProtocolsT = Aws::Vector<ChannelProtocol>>
55 SingleMasterChannelEndpointConfiguration& WithProtocols(ProtocolsT&& value) { SetProtocols(std::forward<ProtocolsT>(value)); return *this;}
56 inline SingleMasterChannelEndpointConfiguration& AddProtocols(ChannelProtocol value) { m_protocolsHasBeenSet = true; m_protocols.push_back(value); return *this; }
58
60
69 inline ChannelRole GetRole() const { return m_role; }
70 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
71 inline void SetRole(ChannelRole value) { m_roleHasBeenSet = true; m_role = value; }
74 private:
75
77 bool m_protocolsHasBeenSet = false;
78
80 bool m_roleHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace KinesisVideo
85} // 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