/* * 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 mediaconnect-2018-11-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.MediaConnect.Model { /// /// A single track or stream of media that contains video, audio, or ancillary data. After /// you add a media stream to a flow, you can associate it with sources and outputs on /// that flow, as long as they use the CDI protocol or the ST 2110 JPEG XS protocol. Each /// source or output can consist of one or many media streams. /// public partial class MediaStream { private MediaStreamAttributes _attributes; private int? _clockRate; private string _description; private int? _fmt; private int? _mediaStreamId; private string _mediaStreamName; private MediaStreamType _mediaStreamType; private string _videoFormat; /// /// Gets and sets the property Attributes. Attributes that are related to the media stream. /// public MediaStreamAttributes Attributes { get { return this._attributes; } set { this._attributes = value; } } // Check to see if Attributes property is set internal bool IsSetAttributes() { return this._attributes != null; } /// /// Gets and sets the property ClockRate. The sample rate for the stream. This value is /// measured in Hz. /// public int ClockRate { get { return this._clockRate.GetValueOrDefault(); } set { this._clockRate = value; } } // Check to see if ClockRate property is set internal bool IsSetClockRate() { return this._clockRate.HasValue; } /// /// Gets and sets the property Description. A description that can help you quickly identify /// what your media stream is used for. /// public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// /// Gets and sets the property Fmt. The format type number (sometimes referred to as RTP /// payload type) of the media stream. MediaConnect assigns this value to the media stream. /// For ST 2110 JPEG XS outputs, you need to provide this value to the receiver. /// [AWSProperty(Required=true)] public int Fmt { get { return this._fmt.GetValueOrDefault(); } set { this._fmt = value; } } // Check to see if Fmt property is set internal bool IsSetFmt() { return this._fmt.HasValue; } /// /// Gets and sets the property MediaStreamId. A unique identifier for the media stream. /// [AWSProperty(Required=true)] public int MediaStreamId { get { return this._mediaStreamId.GetValueOrDefault(); } set { this._mediaStreamId = value; } } // Check to see if MediaStreamId property is set internal bool IsSetMediaStreamId() { return this._mediaStreamId.HasValue; } /// /// Gets and sets the property MediaStreamName. A name that helps you distinguish one /// media stream from another. /// [AWSProperty(Required=true)] public string MediaStreamName { get { return this._mediaStreamName; } set { this._mediaStreamName = value; } } // Check to see if MediaStreamName property is set internal bool IsSetMediaStreamName() { return this._mediaStreamName != null; } /// /// Gets and sets the property MediaStreamType. The type of media stream. /// [AWSProperty(Required=true)] public MediaStreamType MediaStreamType { get { return this._mediaStreamType; } set { this._mediaStreamType = value; } } // Check to see if MediaStreamType property is set internal bool IsSetMediaStreamType() { return this._mediaStreamType != null; } /// /// Gets and sets the property VideoFormat. The resolution of the video. /// public string VideoFormat { get { return this._videoFormat; } set { this._videoFormat = value; } } // Check to see if VideoFormat property is set internal bool IsSetVideoFormat() { return this._videoFormat != null; } } }