/*
* 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
{
///
/// The media stream that you want to add to the flow.
///
public partial class AddMediaStreamRequest
{
private MediaStreamAttributesRequest _attributes;
private int? _clockRate;
private string _description;
private int? _mediaStreamId;
private string _mediaStreamName;
private MediaStreamType _mediaStreamType;
private string _videoFormat;
///
/// Gets and sets the property Attributes. The attributes that you want to assign to the
/// new media stream.
///
public MediaStreamAttributesRequest 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 (in Hz) for the stream. If the
/// media stream type is video or ancillary data, set this value to 90000. If the media
/// stream type is audio, set this value to either 48000 or 96000.
///
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 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;
}
}
}