AWS SDK for C++

AWS SDK for C++ Version 1.11.740

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
77 inline const SingleMasterConfiguration& GetSingleMasterConfiguration() const { return m_singleMasterConfiguration; }
78 inline bool SingleMasterConfigurationHasBeenSet() const { return m_singleMasterConfigurationHasBeenSet; }
79 template <typename SingleMasterConfigurationT = SingleMasterConfiguration>
80 void SetSingleMasterConfiguration(SingleMasterConfigurationT&& value) {
81 m_singleMasterConfigurationHasBeenSet = true;
82 m_singleMasterConfiguration = std::forward<SingleMasterConfigurationT>(value);
83 }
84 template <typename SingleMasterConfigurationT = SingleMasterConfiguration>
85 CreateSignalingChannelRequest& WithSingleMasterConfiguration(SingleMasterConfigurationT&& value) {
86 SetSingleMasterConfiguration(std::forward<SingleMasterConfigurationT>(value));
87 return *this;
88 }
90
92
96 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
97 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
98 template <typename TagsT = Aws::Vector<Tag>>
99 void SetTags(TagsT&& value) {
100 m_tagsHasBeenSet = true;
101 m_tags = std::forward<TagsT>(value);
102 }
103 template <typename TagsT = Aws::Vector<Tag>>
105 SetTags(std::forward<TagsT>(value));
106 return *this;
107 }
108 template <typename TagsT = Tag>
110 m_tagsHasBeenSet = true;
111 m_tags.emplace_back(std::forward<TagsT>(value));
112 return *this;
113 }
115 private:
116 Aws::String m_channelName;
117
118 ChannelType m_channelType{ChannelType::NOT_SET};
119
120 SingleMasterConfiguration m_singleMasterConfiguration;
121
122 Aws::Vector<Tag> m_tags;
123 bool m_channelNameHasBeenSet = false;
124 bool m_channelTypeHasBeenSet = false;
125 bool m_singleMasterConfigurationHasBeenSet = false;
126 bool m_tagsHasBeenSet = false;
127};
128
129} // namespace Model
130} // namespace KinesisVideo
131} // 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