AWS SDK for C++

AWS SDK for C++ Version 1.11.687

Loading...
Searching...
No Matches
CreateSignalingChannelRequest.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/kinesisvideo/KinesisVideoRequest.h>
10#include <aws/kinesisvideo/KinesisVideo_EXPORTS.h>
11#include <aws/kinesisvideo/model/ChannelType.h>
12#include <aws/kinesisvideo/model/SingleMasterConfiguration.h>
13#include <aws/kinesisvideo/model/Tag.h>
14
15#include <utility>
16
17namespace Aws {
18namespace KinesisVideo {
19namespace Model {
20
24 public:
25 AWS_KINESISVIDEO_API CreateSignalingChannelRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateSignalingChannel"; }
32
33 AWS_KINESISVIDEO_API Aws::String SerializePayload() const override;
34
36
40 inline const Aws::String& GetChannelName() const { return m_channelName; }
41 inline bool ChannelNameHasBeenSet() const { return m_channelNameHasBeenSet; }
42 template <typename ChannelNameT = Aws::String>
43 void SetChannelName(ChannelNameT&& value) {
44 m_channelNameHasBeenSet = true;
45 m_channelName = std::forward<ChannelNameT>(value);
46 }
47 template <typename ChannelNameT = Aws::String>
49 SetChannelName(std::forward<ChannelNameT>(value));
50 return *this;
51 }
53
55
59 inline ChannelType GetChannelType() const { return m_channelType; }
60 inline bool ChannelTypeHasBeenSet() const { return m_channelTypeHasBeenSet; }
61 inline void SetChannelType(ChannelType value) {
62 m_channelTypeHasBeenSet = true;
63 m_channelType = value;
64 }
66 SetChannelType(value);
67 return *this;
68 }
70
72
76 inline const SingleMasterConfiguration& GetSingleMasterConfiguration() const { return m_singleMasterConfiguration; }
77 inline bool SingleMasterConfigurationHasBeenSet() const { return m_singleMasterConfigurationHasBeenSet; }
78 template <typename SingleMasterConfigurationT = SingleMasterConfiguration>
79 void SetSingleMasterConfiguration(SingleMasterConfigurationT&& value) {
80 m_singleMasterConfigurationHasBeenSet = true;
81 m_singleMasterConfiguration = std::forward<SingleMasterConfigurationT>(value);
82 }
83 template <typename SingleMasterConfigurationT = SingleMasterConfiguration>
84 CreateSignalingChannelRequest& WithSingleMasterConfiguration(SingleMasterConfigurationT&& value) {
85 SetSingleMasterConfiguration(std::forward<SingleMasterConfigurationT>(value));
86 return *this;
87 }
89
91
95 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
96 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
97 template <typename TagsT = Aws::Vector<Tag>>
98 void SetTags(TagsT&& value) {
99 m_tagsHasBeenSet = true;
100 m_tags = std::forward<TagsT>(value);
101 }
102 template <typename TagsT = Aws::Vector<Tag>>
104 SetTags(std::forward<TagsT>(value));
105 return *this;
106 }
107 template <typename TagsT = Tag>
109 m_tagsHasBeenSet = true;
110 m_tags.emplace_back(std::forward<TagsT>(value));
111 return *this;
112 }
114 private:
115 Aws::String m_channelName;
116 bool m_channelNameHasBeenSet = false;
117
118 ChannelType m_channelType{ChannelType::NOT_SET};
119 bool m_channelTypeHasBeenSet = false;
120
121 SingleMasterConfiguration m_singleMasterConfiguration;
122 bool m_singleMasterConfigurationHasBeenSet = false;
123
124 Aws::Vector<Tag> m_tags;
125 bool m_tagsHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace KinesisVideo
130} // namespace Aws
void SetSingleMasterConfiguration(SingleMasterConfigurationT &&value)
CreateSignalingChannelRequest & WithChannelName(ChannelNameT &&value)
CreateSignalingChannelRequest & WithChannelType(ChannelType value)
AWS_KINESISVIDEO_API CreateSignalingChannelRequest()=default
const SingleMasterConfiguration & GetSingleMasterConfiguration() const
CreateSignalingChannelRequest & WithSingleMasterConfiguration(SingleMasterConfigurationT &&value)
AWS_KINESISVIDEO_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector