/*
* 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 mediaconvert-2017-08-29.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.MediaConvert.Model
{
///
/// Use Allowed renditions to specify a list of possible resolutions in your ABR stack.
/// * MediaConvert will create an ABR stack exclusively from the list of resolutions that
/// you specify. * Some resolutions in the Allowed renditions list may not be included,
/// however you can force a resolution to be included by setting Required to ENABLED.
/// * You must specify at least one resolution that is greater than or equal to any resolutions
/// that you specify in Min top rendition size or Min bottom rendition size. * If you
/// specify Allowed renditions, you must not specify a separate rule for Force include
/// renditions.
///
public partial class AllowedRenditionSize
{
private int? _height;
private RequiredFlag _required;
private int? _width;
///
/// Gets and sets the property Height. Use Height to define the video resolution height,
/// in pixels, for this rule.
///
[AWSProperty(Min=32, Max=8192)]
public int Height
{
get { return this._height.GetValueOrDefault(); }
set { this._height = value; }
}
// Check to see if Height property is set
internal bool IsSetHeight()
{
return this._height.HasValue;
}
///
/// Gets and sets the property Required. Set to ENABLED to force a rendition to be included.
///
public RequiredFlag Required
{
get { return this._required; }
set { this._required = value; }
}
// Check to see if Required property is set
internal bool IsSetRequired()
{
return this._required != null;
}
///
/// Gets and sets the property Width. Use Width to define the video resolution width,
/// in pixels, for this rule.
///
[AWSProperty(Min=32, Max=8192)]
public int Width
{
get { return this._width.GetValueOrDefault(); }
set { this._width = value; }
}
// Check to see if Width property is set
internal bool IsSetWidth()
{
return this._width.HasValue;
}
}
}