AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateChannelRequest.h
1
6#pragma once
7#include <aws/ivs/IVS_EXPORTS.h>
8#include <aws/ivs/IVSRequest.h>
9#include <aws/ivs/model/ContainerFormat.h>
10#include <aws/ivs/model/ChannelLatencyMode.h>
11#include <aws/ivs/model/MultitrackInputConfiguration.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/ivs/model/TranscodePreset.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <aws/ivs/model/ChannelType.h>
16#include <utility>
17
18namespace Aws
19{
20namespace IVS
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_IVS_API CreateChannelRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateChannel"; }
37
38 AWS_IVS_API Aws::String SerializePayload() const override;
39
40
42
46 inline bool GetAuthorized() const { return m_authorized; }
47 inline bool AuthorizedHasBeenSet() const { return m_authorizedHasBeenSet; }
48 inline void SetAuthorized(bool value) { m_authorizedHasBeenSet = true; m_authorized = value; }
49 inline CreateChannelRequest& WithAuthorized(bool value) { SetAuthorized(value); return *this;}
51
53
61 inline ContainerFormat GetContainerFormat() const { return m_containerFormat; }
62 inline bool ContainerFormatHasBeenSet() const { return m_containerFormatHasBeenSet; }
63 inline void SetContainerFormat(ContainerFormat value) { m_containerFormatHasBeenSet = true; m_containerFormat = value; }
66
68
72 inline bool GetInsecureIngest() const { return m_insecureIngest; }
73 inline bool InsecureIngestHasBeenSet() const { return m_insecureIngestHasBeenSet; }
74 inline void SetInsecureIngest(bool value) { m_insecureIngestHasBeenSet = true; m_insecureIngest = value; }
75 inline CreateChannelRequest& WithInsecureIngest(bool value) { SetInsecureIngest(value); return *this;}
77
79
84 inline ChannelLatencyMode GetLatencyMode() const { return m_latencyMode; }
85 inline bool LatencyModeHasBeenSet() const { return m_latencyModeHasBeenSet; }
86 inline void SetLatencyMode(ChannelLatencyMode value) { m_latencyModeHasBeenSet = true; m_latencyMode = value; }
89
91
95 inline const MultitrackInputConfiguration& GetMultitrackInputConfiguration() const { return m_multitrackInputConfiguration; }
96 inline bool MultitrackInputConfigurationHasBeenSet() const { return m_multitrackInputConfigurationHasBeenSet; }
97 template<typename MultitrackInputConfigurationT = MultitrackInputConfiguration>
98 void SetMultitrackInputConfiguration(MultitrackInputConfigurationT&& value) { m_multitrackInputConfigurationHasBeenSet = true; m_multitrackInputConfiguration = std::forward<MultitrackInputConfigurationT>(value); }
99 template<typename MultitrackInputConfigurationT = MultitrackInputConfiguration>
100 CreateChannelRequest& WithMultitrackInputConfiguration(MultitrackInputConfigurationT&& value) { SetMultitrackInputConfiguration(std::forward<MultitrackInputConfigurationT>(value)); return *this;}
102
104
107 inline const Aws::String& GetName() const { return m_name; }
108 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
109 template<typename NameT = Aws::String>
110 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
111 template<typename NameT = Aws::String>
112 CreateChannelRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
114
116
121 inline const Aws::String& GetPlaybackRestrictionPolicyArn() const { return m_playbackRestrictionPolicyArn; }
122 inline bool PlaybackRestrictionPolicyArnHasBeenSet() const { return m_playbackRestrictionPolicyArnHasBeenSet; }
123 template<typename PlaybackRestrictionPolicyArnT = Aws::String>
124 void SetPlaybackRestrictionPolicyArn(PlaybackRestrictionPolicyArnT&& value) { m_playbackRestrictionPolicyArnHasBeenSet = true; m_playbackRestrictionPolicyArn = std::forward<PlaybackRestrictionPolicyArnT>(value); }
125 template<typename PlaybackRestrictionPolicyArnT = Aws::String>
126 CreateChannelRequest& WithPlaybackRestrictionPolicyArn(PlaybackRestrictionPolicyArnT&& value) { SetPlaybackRestrictionPolicyArn(std::forward<PlaybackRestrictionPolicyArnT>(value)); return *this;}
128
130
138 inline TranscodePreset GetPreset() const { return m_preset; }
139 inline bool PresetHasBeenSet() const { return m_presetHasBeenSet; }
140 inline void SetPreset(TranscodePreset value) { m_presetHasBeenSet = true; m_preset = value; }
141 inline CreateChannelRequest& WithPreset(TranscodePreset value) { SetPreset(value); return *this;}
143
145
149 inline const Aws::String& GetRecordingConfigurationArn() const { return m_recordingConfigurationArn; }
150 inline bool RecordingConfigurationArnHasBeenSet() const { return m_recordingConfigurationArnHasBeenSet; }
151 template<typename RecordingConfigurationArnT = Aws::String>
152 void SetRecordingConfigurationArn(RecordingConfigurationArnT&& value) { m_recordingConfigurationArnHasBeenSet = true; m_recordingConfigurationArn = std::forward<RecordingConfigurationArnT>(value); }
153 template<typename RecordingConfigurationArnT = Aws::String>
154 CreateChannelRequest& WithRecordingConfigurationArn(RecordingConfigurationArnT&& value) { SetRecordingConfigurationArn(std::forward<RecordingConfigurationArnT>(value)); return *this;}
156
158
167 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
168 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
169 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
170 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
171 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
172 CreateChannelRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
173 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
174 CreateChannelRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
175 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
176 }
178
180
187 inline ChannelType GetType() const { return m_type; }
188 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
189 inline void SetType(ChannelType value) { m_typeHasBeenSet = true; m_type = value; }
190 inline CreateChannelRequest& WithType(ChannelType value) { SetType(value); return *this;}
192 private:
193
194 bool m_authorized{false};
195 bool m_authorizedHasBeenSet = false;
196
197 ContainerFormat m_containerFormat{ContainerFormat::NOT_SET};
198 bool m_containerFormatHasBeenSet = false;
199
200 bool m_insecureIngest{false};
201 bool m_insecureIngestHasBeenSet = false;
202
204 bool m_latencyModeHasBeenSet = false;
205
206 MultitrackInputConfiguration m_multitrackInputConfiguration;
207 bool m_multitrackInputConfigurationHasBeenSet = false;
208
209 Aws::String m_name;
210 bool m_nameHasBeenSet = false;
211
212 Aws::String m_playbackRestrictionPolicyArn;
213 bool m_playbackRestrictionPolicyArnHasBeenSet = false;
214
216 bool m_presetHasBeenSet = false;
217
218 Aws::String m_recordingConfigurationArn;
219 bool m_recordingConfigurationArnHasBeenSet = false;
220
222 bool m_tagsHasBeenSet = false;
223
225 bool m_typeHasBeenSet = false;
226 };
227
228} // namespace Model
229} // namespace IVS
230} // namespace Aws
void SetContainerFormat(ContainerFormat value)
void SetPlaybackRestrictionPolicyArn(PlaybackRestrictionPolicyArnT &&value)
CreateChannelRequest & WithRecordingConfigurationArn(RecordingConfigurationArnT &&value)
CreateChannelRequest & WithInsecureIngest(bool value)
void SetMultitrackInputConfiguration(MultitrackInputConfigurationT &&value)
CreateChannelRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateChannelRequest & WithLatencyMode(ChannelLatencyMode value)
const Aws::String & GetRecordingConfigurationArn() const
AWS_IVS_API CreateChannelRequest()=default
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateChannelRequest & WithType(ChannelType value)
CreateChannelRequest & WithPreset(TranscodePreset value)
CreateChannelRequest & WithName(NameT &&value)
const Aws::String & GetPlaybackRestrictionPolicyArn() const
virtual const char * GetServiceRequestName() const override
CreateChannelRequest & WithContainerFormat(ContainerFormat value)
void SetRecordingConfigurationArn(RecordingConfigurationArnT &&value)
ChannelLatencyMode GetLatencyMode() const
void SetLatencyMode(ChannelLatencyMode value)
CreateChannelRequest & WithAuthorized(bool value)
AWS_IVS_API Aws::String SerializePayload() const override
CreateChannelRequest & WithMultitrackInputConfiguration(MultitrackInputConfigurationT &&value)
CreateChannelRequest & WithTags(TagsT &&value)
const MultitrackInputConfiguration & GetMultitrackInputConfiguration() const
CreateChannelRequest & WithPlaybackRestrictionPolicyArn(PlaybackRestrictionPolicyArnT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String