/*
* 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 mediatailor-2018-04-23.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.MediaTailor.Model
{
///
/// The configuration for pre-roll ad insertion.
///
public partial class LivePreRollConfiguration
{
private string _adDecisionServerUrl;
private int? _maxDurationSeconds;
///
/// Gets and sets the property AdDecisionServerUrl.
///
/// The URL for the ad decision server (ADS) for pre-roll ads. This includes the specification
/// of static parameters and placeholders for dynamic parameters. AWS Elemental MediaTailor
/// substitutes player-specific and session-specific parameters as needed when calling
/// the ADS. Alternately, for testing, you can provide a static VAST URL. The maximum
/// length is 25,000 characters.
///
///
public string AdDecisionServerUrl
{
get { return this._adDecisionServerUrl; }
set { this._adDecisionServerUrl = value; }
}
// Check to see if AdDecisionServerUrl property is set
internal bool IsSetAdDecisionServerUrl()
{
return this._adDecisionServerUrl != null;
}
///
/// Gets and sets the property MaxDurationSeconds.
///
/// The maximum allowed duration for the pre-roll ad avail. AWS Elemental MediaTailor
/// won't play pre-roll ads to exceed this duration, regardless of the total duration
/// of ads that the ADS returns.
///
///
public int MaxDurationSeconds
{
get { return this._maxDurationSeconds.GetValueOrDefault(); }
set { this._maxDurationSeconds = value; }
}
// Check to see if MaxDurationSeconds property is set
internal bool IsSetMaxDurationSeconds()
{
return this._maxDurationSeconds.HasValue;
}
}
}