AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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/ChannelLatencyMode.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/ivs/model/TranscodePreset.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/ivs/model/ChannelType.h>
14#include <utility>
15
16namespace Aws
17{
18namespace IVS
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_IVS_API CreateChannelRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateChannel"; }
35
36 AWS_IVS_API Aws::String SerializePayload() const override;
37
38
40
44 inline bool GetAuthorized() const{ return m_authorized; }
45 inline bool AuthorizedHasBeenSet() const { return m_authorizedHasBeenSet; }
46 inline void SetAuthorized(bool value) { m_authorizedHasBeenSet = true; m_authorized = value; }
47 inline CreateChannelRequest& WithAuthorized(bool value) { SetAuthorized(value); return *this;}
49
51
55 inline bool GetInsecureIngest() const{ return m_insecureIngest; }
56 inline bool InsecureIngestHasBeenSet() const { return m_insecureIngestHasBeenSet; }
57 inline void SetInsecureIngest(bool value) { m_insecureIngestHasBeenSet = true; m_insecureIngest = value; }
58 inline CreateChannelRequest& WithInsecureIngest(bool value) { SetInsecureIngest(value); return *this;}
60
62
67 inline const ChannelLatencyMode& GetLatencyMode() const{ return m_latencyMode; }
68 inline bool LatencyModeHasBeenSet() const { return m_latencyModeHasBeenSet; }
69 inline void SetLatencyMode(const ChannelLatencyMode& value) { m_latencyModeHasBeenSet = true; m_latencyMode = value; }
70 inline void SetLatencyMode(ChannelLatencyMode&& value) { m_latencyModeHasBeenSet = true; m_latencyMode = std::move(value); }
71 inline CreateChannelRequest& WithLatencyMode(const ChannelLatencyMode& value) { SetLatencyMode(value); return *this;}
72 inline CreateChannelRequest& WithLatencyMode(ChannelLatencyMode&& value) { SetLatencyMode(std::move(value)); return *this;}
74
76
79 inline const Aws::String& GetName() const{ return m_name; }
80 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
81 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
82 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
83 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
84 inline CreateChannelRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
85 inline CreateChannelRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
86 inline CreateChannelRequest& WithName(const char* value) { SetName(value); return *this;}
88
90
95 inline const Aws::String& GetPlaybackRestrictionPolicyArn() const{ return m_playbackRestrictionPolicyArn; }
96 inline bool PlaybackRestrictionPolicyArnHasBeenSet() const { return m_playbackRestrictionPolicyArnHasBeenSet; }
97 inline void SetPlaybackRestrictionPolicyArn(const Aws::String& value) { m_playbackRestrictionPolicyArnHasBeenSet = true; m_playbackRestrictionPolicyArn = value; }
98 inline void SetPlaybackRestrictionPolicyArn(Aws::String&& value) { m_playbackRestrictionPolicyArnHasBeenSet = true; m_playbackRestrictionPolicyArn = std::move(value); }
99 inline void SetPlaybackRestrictionPolicyArn(const char* value) { m_playbackRestrictionPolicyArnHasBeenSet = true; m_playbackRestrictionPolicyArn.assign(value); }
104
106
114 inline const TranscodePreset& GetPreset() const{ return m_preset; }
115 inline bool PresetHasBeenSet() const { return m_presetHasBeenSet; }
116 inline void SetPreset(const TranscodePreset& value) { m_presetHasBeenSet = true; m_preset = value; }
117 inline void SetPreset(TranscodePreset&& value) { m_presetHasBeenSet = true; m_preset = std::move(value); }
118 inline CreateChannelRequest& WithPreset(const TranscodePreset& value) { SetPreset(value); return *this;}
119 inline CreateChannelRequest& WithPreset(TranscodePreset&& value) { SetPreset(std::move(value)); return *this;}
121
123
127 inline const Aws::String& GetRecordingConfigurationArn() const{ return m_recordingConfigurationArn; }
128 inline bool RecordingConfigurationArnHasBeenSet() const { return m_recordingConfigurationArnHasBeenSet; }
129 inline void SetRecordingConfigurationArn(const Aws::String& value) { m_recordingConfigurationArnHasBeenSet = true; m_recordingConfigurationArn = value; }
130 inline void SetRecordingConfigurationArn(Aws::String&& value) { m_recordingConfigurationArnHasBeenSet = true; m_recordingConfigurationArn = std::move(value); }
131 inline void SetRecordingConfigurationArn(const char* value) { m_recordingConfigurationArnHasBeenSet = true; m_recordingConfigurationArn.assign(value); }
134 inline CreateChannelRequest& WithRecordingConfigurationArn(const char* value) { SetRecordingConfigurationArn(value); return *this;}
136
138
147 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
148 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
149 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
150 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
151 inline CreateChannelRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
152 inline CreateChannelRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
153 inline CreateChannelRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
154 inline CreateChannelRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
155 inline CreateChannelRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
156 inline CreateChannelRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
157 inline CreateChannelRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
158 inline CreateChannelRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
159 inline CreateChannelRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
161
163
170 inline const ChannelType& GetType() const{ return m_type; }
171 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
172 inline void SetType(const ChannelType& value) { m_typeHasBeenSet = true; m_type = value; }
173 inline void SetType(ChannelType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
174 inline CreateChannelRequest& WithType(const ChannelType& value) { SetType(value); return *this;}
175 inline CreateChannelRequest& WithType(ChannelType&& value) { SetType(std::move(value)); return *this;}
177 private:
178
179 bool m_authorized;
180 bool m_authorizedHasBeenSet = false;
181
182 bool m_insecureIngest;
183 bool m_insecureIngestHasBeenSet = false;
184
185 ChannelLatencyMode m_latencyMode;
186 bool m_latencyModeHasBeenSet = false;
187
188 Aws::String m_name;
189 bool m_nameHasBeenSet = false;
190
191 Aws::String m_playbackRestrictionPolicyArn;
192 bool m_playbackRestrictionPolicyArnHasBeenSet = false;
193
194 TranscodePreset m_preset;
195 bool m_presetHasBeenSet = false;
196
197 Aws::String m_recordingConfigurationArn;
198 bool m_recordingConfigurationArnHasBeenSet = false;
199
201 bool m_tagsHasBeenSet = false;
202
203 ChannelType m_type;
204 bool m_typeHasBeenSet = false;
205 };
206
207} // namespace Model
208} // namespace IVS
209} // namespace Aws
CreateChannelRequest & WithPreset(const TranscodePreset &value)
void SetPlaybackRestrictionPolicyArn(Aws::String &&value)
CreateChannelRequest & AddTags(Aws::String &&key, Aws::String &&value)
void SetRecordingConfigurationArn(const Aws::String &value)
void SetRecordingConfigurationArn(Aws::String &&value)
void SetPreset(TranscodePreset &&value)
const ChannelLatencyMode & GetLatencyMode() const
CreateChannelRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetPlaybackRestrictionPolicyArn(const char *value)
CreateChannelRequest & WithType(const ChannelType &value)
CreateChannelRequest & WithPreset(TranscodePreset &&value)
CreateChannelRequest & WithInsecureIngest(bool value)
CreateChannelRequest & WithLatencyMode(const ChannelLatencyMode &value)
CreateChannelRequest & AddTags(const char *key, Aws::String &&value)
CreateChannelRequest & AddTags(Aws::String &&key, const char *value)
CreateChannelRequest & AddTags(const char *key, const char *value)
void SetPreset(const TranscodePreset &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::String & GetRecordingConfigurationArn() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetLatencyMode(const ChannelLatencyMode &value)
CreateChannelRequest & WithRecordingConfigurationArn(const char *value)
void SetLatencyMode(ChannelLatencyMode &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::String & GetPlaybackRestrictionPolicyArn() const
virtual const char * GetServiceRequestName() const override
CreateChannelRequest & AddTags(const Aws::String &key, Aws::String &&value)
void SetType(const ChannelType &value)
CreateChannelRequest & WithRecordingConfigurationArn(Aws::String &&value)
CreateChannelRequest & WithName(Aws::String &&value)
const TranscodePreset & GetPreset() const
void SetName(const Aws::String &value)
CreateChannelRequest & WithRecordingConfigurationArn(const Aws::String &value)
CreateChannelRequest & WithPlaybackRestrictionPolicyArn(Aws::String &&value)
CreateChannelRequest & WithAuthorized(bool value)
void SetPlaybackRestrictionPolicyArn(const Aws::String &value)
CreateChannelRequest & WithType(ChannelType &&value)
AWS_IVS_API Aws::String SerializePayload() const override
CreateChannelRequest & WithLatencyMode(ChannelLatencyMode &&value)
CreateChannelRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateChannelRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateChannelRequest & WithPlaybackRestrictionPolicyArn(const Aws::String &value)
CreateChannelRequest & WithName(const char *value)
CreateChannelRequest & WithName(const Aws::String &value)
CreateChannelRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateChannelRequest & WithPlaybackRestrictionPolicyArn(const char *value)
void SetRecordingConfigurationArn(const char *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