AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateChannelRequest.h
1
6#pragma once
7#include <aws/ivs/IVS_EXPORTS.h>
8#include <aws/ivs/IVSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ivs/model/ChannelLatencyMode.h>
11#include <aws/ivs/model/TranscodePreset.h>
12#include <aws/ivs/model/ChannelType.h>
13#include <utility>
14
15namespace Aws
16{
17namespace IVS
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_IVS_API UpdateChannelRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateChannel"; }
34
35 AWS_IVS_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::String& GetArn() const{ return m_arn; }
43 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
44 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
45 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
46 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
47 inline UpdateChannelRequest& WithArn(const Aws::String& value) { SetArn(value); return *this;}
48 inline UpdateChannelRequest& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
49 inline UpdateChannelRequest& WithArn(const char* value) { SetArn(value); return *this;}
51
53
56 inline bool GetAuthorized() const{ return m_authorized; }
57 inline bool AuthorizedHasBeenSet() const { return m_authorizedHasBeenSet; }
58 inline void SetAuthorized(bool value) { m_authorizedHasBeenSet = true; m_authorized = value; }
59 inline UpdateChannelRequest& WithAuthorized(bool value) { SetAuthorized(value); return *this;}
61
63
67 inline bool GetInsecureIngest() const{ return m_insecureIngest; }
68 inline bool InsecureIngestHasBeenSet() const { return m_insecureIngestHasBeenSet; }
69 inline void SetInsecureIngest(bool value) { m_insecureIngestHasBeenSet = true; m_insecureIngest = value; }
70 inline UpdateChannelRequest& WithInsecureIngest(bool value) { SetInsecureIngest(value); return *this;}
72
74
79 inline const ChannelLatencyMode& GetLatencyMode() const{ return m_latencyMode; }
80 inline bool LatencyModeHasBeenSet() const { return m_latencyModeHasBeenSet; }
81 inline void SetLatencyMode(const ChannelLatencyMode& value) { m_latencyModeHasBeenSet = true; m_latencyMode = value; }
82 inline void SetLatencyMode(ChannelLatencyMode&& value) { m_latencyModeHasBeenSet = true; m_latencyMode = std::move(value); }
83 inline UpdateChannelRequest& WithLatencyMode(const ChannelLatencyMode& value) { SetLatencyMode(value); return *this;}
84 inline UpdateChannelRequest& WithLatencyMode(ChannelLatencyMode&& value) { SetLatencyMode(std::move(value)); return *this;}
86
88
91 inline const Aws::String& GetName() const{ return m_name; }
92 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
93 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
94 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
95 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
96 inline UpdateChannelRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
97 inline UpdateChannelRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
98 inline UpdateChannelRequest& WithName(const char* value) { SetName(value); return *this;}
100
102
107 inline const Aws::String& GetPlaybackRestrictionPolicyArn() const{ return m_playbackRestrictionPolicyArn; }
108 inline bool PlaybackRestrictionPolicyArnHasBeenSet() const { return m_playbackRestrictionPolicyArnHasBeenSet; }
109 inline void SetPlaybackRestrictionPolicyArn(const Aws::String& value) { m_playbackRestrictionPolicyArnHasBeenSet = true; m_playbackRestrictionPolicyArn = value; }
110 inline void SetPlaybackRestrictionPolicyArn(Aws::String&& value) { m_playbackRestrictionPolicyArnHasBeenSet = true; m_playbackRestrictionPolicyArn = std::move(value); }
111 inline void SetPlaybackRestrictionPolicyArn(const char* value) { m_playbackRestrictionPolicyArnHasBeenSet = true; m_playbackRestrictionPolicyArn.assign(value); }
116
118
126 inline const TranscodePreset& GetPreset() const{ return m_preset; }
127 inline bool PresetHasBeenSet() const { return m_presetHasBeenSet; }
128 inline void SetPreset(const TranscodePreset& value) { m_presetHasBeenSet = true; m_preset = value; }
129 inline void SetPreset(TranscodePreset&& value) { m_presetHasBeenSet = true; m_preset = std::move(value); }
130 inline UpdateChannelRequest& WithPreset(const TranscodePreset& value) { SetPreset(value); return *this;}
131 inline UpdateChannelRequest& WithPreset(TranscodePreset&& value) { SetPreset(std::move(value)); return *this;}
133
135
140 inline const Aws::String& GetRecordingConfigurationArn() const{ return m_recordingConfigurationArn; }
141 inline bool RecordingConfigurationArnHasBeenSet() const { return m_recordingConfigurationArnHasBeenSet; }
142 inline void SetRecordingConfigurationArn(const Aws::String& value) { m_recordingConfigurationArnHasBeenSet = true; m_recordingConfigurationArn = value; }
143 inline void SetRecordingConfigurationArn(Aws::String&& value) { m_recordingConfigurationArnHasBeenSet = true; m_recordingConfigurationArn = std::move(value); }
144 inline void SetRecordingConfigurationArn(const char* value) { m_recordingConfigurationArnHasBeenSet = true; m_recordingConfigurationArn.assign(value); }
147 inline UpdateChannelRequest& WithRecordingConfigurationArn(const char* value) { SetRecordingConfigurationArn(value); return *this;}
149
151
158 inline const ChannelType& GetType() const{ return m_type; }
159 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
160 inline void SetType(const ChannelType& value) { m_typeHasBeenSet = true; m_type = value; }
161 inline void SetType(ChannelType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
162 inline UpdateChannelRequest& WithType(const ChannelType& value) { SetType(value); return *this;}
163 inline UpdateChannelRequest& WithType(ChannelType&& value) { SetType(std::move(value)); return *this;}
165 private:
166
167 Aws::String m_arn;
168 bool m_arnHasBeenSet = false;
169
170 bool m_authorized;
171 bool m_authorizedHasBeenSet = false;
172
173 bool m_insecureIngest;
174 bool m_insecureIngestHasBeenSet = false;
175
176 ChannelLatencyMode m_latencyMode;
177 bool m_latencyModeHasBeenSet = false;
178
179 Aws::String m_name;
180 bool m_nameHasBeenSet = false;
181
182 Aws::String m_playbackRestrictionPolicyArn;
183 bool m_playbackRestrictionPolicyArnHasBeenSet = false;
184
185 TranscodePreset m_preset;
186 bool m_presetHasBeenSet = false;
187
188 Aws::String m_recordingConfigurationArn;
189 bool m_recordingConfigurationArnHasBeenSet = false;
190
191 ChannelType m_type;
192 bool m_typeHasBeenSet = false;
193 };
194
195} // namespace Model
196} // namespace IVS
197} // namespace Aws
UpdateChannelRequest & WithPlaybackRestrictionPolicyArn(Aws::String &&value)
UpdateChannelRequest & WithName(const Aws::String &value)
UpdateChannelRequest & WithRecordingConfigurationArn(const char *value)
const TranscodePreset & GetPreset() const
UpdateChannelRequest & WithAuthorized(bool value)
void SetRecordingConfigurationArn(const Aws::String &value)
void SetLatencyMode(ChannelLatencyMode &&value)
UpdateChannelRequest & WithPreset(const TranscodePreset &value)
void SetPreset(const TranscodePreset &value)
void SetPlaybackRestrictionPolicyArn(const char *value)
UpdateChannelRequest & WithArn(const Aws::String &value)
UpdateChannelRequest & WithLatencyMode(const ChannelLatencyMode &value)
UpdateChannelRequest & WithName(const char *value)
UpdateChannelRequest & WithRecordingConfigurationArn(Aws::String &&value)
const Aws::String & GetPlaybackRestrictionPolicyArn() const
virtual const char * GetServiceRequestName() const override
void SetPreset(TranscodePreset &&value)
const ChannelLatencyMode & GetLatencyMode() const
UpdateChannelRequest & WithPreset(TranscodePreset &&value)
void SetRecordingConfigurationArn(const char *value)
UpdateChannelRequest & WithArn(Aws::String &&value)
UpdateChannelRequest & WithType(const ChannelType &value)
UpdateChannelRequest & WithPlaybackRestrictionPolicyArn(const Aws::String &value)
UpdateChannelRequest & WithRecordingConfigurationArn(const Aws::String &value)
UpdateChannelRequest & WithName(Aws::String &&value)
UpdateChannelRequest & WithLatencyMode(ChannelLatencyMode &&value)
UpdateChannelRequest & WithType(ChannelType &&value)
UpdateChannelRequest & WithArn(const char *value)
void SetLatencyMode(const ChannelLatencyMode &value)
void SetPlaybackRestrictionPolicyArn(const Aws::String &value)
AWS_IVS_API Aws::String SerializePayload() const override
UpdateChannelRequest & WithInsecureIngest(bool value)
void SetRecordingConfigurationArn(Aws::String &&value)
void SetPlaybackRestrictionPolicyArn(Aws::String &&value)
void SetArn(const Aws::String &value)
void SetType(const ChannelType &value)
void SetName(const Aws::String &value)
UpdateChannelRequest & WithPlaybackRestrictionPolicyArn(const char *value)
const Aws::String & GetRecordingConfigurationArn() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String