/* * 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 { /// /// Object specifying a stream’s audio configuration, as set up by the broadcaster (usually /// in an encoder). This is part of the IngestConfiguration object and used for /// monitoring stream health. /// public partial class AudioConfiguration { private long? _channels; private string _codec; private long? _sampleRate; private long? _targetBitrate; /// /// Gets and sets the property Channels. /// /// Number of audio channels. /// /// public long Channels { get { return this._channels.GetValueOrDefault(); } set { this._channels = value; } } // Check to see if Channels property is set internal bool IsSetChannels() { return this._channels.HasValue; } /// /// Gets and sets the property Codec. /// /// Codec used for the audio encoding. /// /// public string Codec { get { return this._codec; } set { this._codec = value; } } // Check to see if Codec property is set internal bool IsSetCodec() { return this._codec != null; } /// /// Gets and sets the property SampleRate. /// /// Number of audio samples recorded per second. /// /// public long SampleRate { get { return this._sampleRate.GetValueOrDefault(); } set { this._sampleRate = value; } } // Check to see if SampleRate property is set internal bool IsSetSampleRate() { return this._sampleRate.HasValue; } /// /// Gets and sets the property TargetBitrate. /// /// The expected ingest bitrate (bits per second). This is configured in the encoder. /// /// public long TargetBitrate { get { return this._targetBitrate.GetValueOrDefault(); } set { this._targetBitrate = value; } } // Check to see if TargetBitrate property is set internal bool IsSetTargetBitrate() { return this._targetBitrate.HasValue; } } }