/*
* 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
{
///
/// MediaTailor only places (consumes) prefetched ads if the ad break meets the criteria
/// defined by the dynamic variables. This gives you granular control over which ad break
/// to place the prefetched ads into.
///
///
///
/// As an example, let's say that you set DynamicVariable
to scte.event_id
/// and Operator
to EQUALS
, and your playback configuration
/// has an ADS URL of https://my.ads.server.com/path?&podId=[scte.avail_num]&event=[scte.event_id]&duration=[session.avail_duration_secs]
.
/// And the prefetch request to the ADS contains these values https://my.ads.server.com/path?&podId=3&event=my-awesome-event&duration=30
.
/// MediaTailor will only insert the prefetched ads into the ad break if has a SCTE marker
/// with an event id of my-awesome-event
, since it must match the event id
/// that MediaTailor uses to query the ADS.
///
///
///
/// You can specify up to five AvailMatchingCriteria
. If you specify multiple
/// AvailMatchingCriteria
, MediaTailor combines them to match using a logical
/// AND
. You can model logical OR
combinations by creating multiple
/// prefetch schedules.
///
///
public partial class AvailMatchingCriteria
{
private string _dynamicVariable;
private Operator _operator;
///
/// Gets and sets the property DynamicVariable.
///
/// The dynamic variable(s) that MediaTailor should use as avail matching criteria. MediaTailor
/// only places the prefetched ads into the avail if the avail matches the criteria defined
/// by the dynamic variable. For information about dynamic variables, see Using
/// dynamic ad variables in the MediaTailor User Guide.
///
///
///
/// You can include up to 100 dynamic variables.
///
///
[AWSProperty(Required=true)]
public string DynamicVariable
{
get { return this._dynamicVariable; }
set { this._dynamicVariable = value; }
}
// Check to see if DynamicVariable property is set
internal bool IsSetDynamicVariable()
{
return this._dynamicVariable != null;
}
///
/// Gets and sets the property Operator.
///
/// For the DynamicVariable
specified in AvailMatchingCriteria
,
/// the Operator that is used for the comparison.
///
///
[AWSProperty(Required=true)]
public Operator Operator
{
get { return this._operator; }
set { this._operator = value; }
}
// Check to see if Operator property is set
internal bool IsSetOperator()
{
return this._operator != null;
}
}
}