/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the ivs-2020-07-14.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.IVS.Model { /// /// Container for the parameters to the UpdateChannel operation. /// Updates a channel's configuration. Live channels cannot be updated. You must stop /// the ongoing stream, update the channel, and restart the stream for the changes to /// take effect. /// public partial class UpdateChannelRequest : AmazonIVSRequest { private string _arn; private bool? _authorized; private bool? _insecureIngest; private ChannelLatencyMode _latencyMode; private string _name; private TranscodePreset _preset; private string _recordingConfigurationArn; private ChannelType _type; /// /// Gets and sets the property Arn. /// /// ARN of the channel to be updated. /// /// [AWSProperty(Required=true, Min=1, Max=128)] public string Arn { get { return this._arn; } set { this._arn = value; } } // Check to see if Arn property is set internal bool IsSetArn() { return this._arn != null; } /// /// Gets and sets the property Authorized. /// /// Whether the channel is private (enabled for playback authorization). /// /// public bool Authorized { get { return this._authorized.GetValueOrDefault(); } set { this._authorized = value; } } // Check to see if Authorized property is set internal bool IsSetAuthorized() { return this._authorized.HasValue; } /// /// Gets and sets the property InsecureIngest. /// /// Whether the channel allows insecure RTMP ingest. Default: false. /// /// public bool InsecureIngest { get { return this._insecureIngest.GetValueOrDefault(); } set { this._insecureIngest = value; } } // Check to see if InsecureIngest property is set internal bool IsSetInsecureIngest() { return this._insecureIngest.HasValue; } /// /// Gets and sets the property LatencyMode. /// /// Channel latency mode. Use NORMAL to broadcast and deliver live video /// up to Full HD. Use LOW for near-real-time interaction with viewers. (Note: /// In the Amazon IVS console, LOW and NORMAL correspond to /// Ultra-low and Standard, respectively.) /// /// public ChannelLatencyMode LatencyMode { get { return this._latencyMode; } set { this._latencyMode = value; } } // Check to see if LatencyMode property is set internal bool IsSetLatencyMode() { return this._latencyMode != null; } /// /// Gets and sets the property Name. /// /// Channel name. /// /// [AWSProperty(Min=0, Max=128)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// /// Gets and sets the property Preset. /// /// Optional transcode preset for the channel. This is selectable only for ADVANCED_HD /// and ADVANCED_SD channel types. For those channel types, the default preset /// is HIGHER_BANDWIDTH_DELIVERY. For other channel types (BASIC /// and STANDARD), preset is the empty string (""). /// /// public TranscodePreset Preset { get { return this._preset; } set { this._preset = value; } } // Check to see if Preset property is set internal bool IsSetPreset() { return this._preset != null; } /// /// Gets and sets the property RecordingConfigurationArn. /// /// Recording-configuration ARN. If this is set to an empty string, recording is disabled. /// A value other than an empty string indicates that recording is enabled /// /// [AWSProperty(Min=0, Max=128)] public string RecordingConfigurationArn { get { return this._recordingConfigurationArn; } set { this._recordingConfigurationArn = value; } } // Check to see if RecordingConfigurationArn property is set internal bool IsSetRecordingConfigurationArn() { return this._recordingConfigurationArn != null; } /// /// Gets and sets the property Type. /// /// Channel type, which determines the allowable resolution and bitrate. If you exceed /// the allowable input resolution or bitrate, the stream probably will disconnect immediately. /// Some types generate multiple qualities (renditions) from the original input; this /// automatically gives viewers the best experience for their devices and network conditions. /// Some types provide transcoded video; transcoding allows higher playback quality across /// a range of download speeds. Default: STANDARD. Valid values: /// /// /// /// Optional transcode presets (available for the ADVANCED types) /// allow you to trade off available download bandwidth and video quality, to optimize /// the viewing experience. There are two presets: /// /// /// public ChannelType Type { get { return this._type; } set { this._type = value; } } // Check to see if Type property is set internal bool IsSetType() { return this._type != null; } } }