/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The configuration for pre-roll ad insertion.See Also:
AWS
* API Reference
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.
*/ inline const Aws::String& GetAdDecisionServerUrl() const{ return m_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.
*/ inline bool AdDecisionServerUrlHasBeenSet() const { return m_adDecisionServerUrlHasBeenSet; } /** *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.
*/ inline void SetAdDecisionServerUrl(const Aws::String& value) { m_adDecisionServerUrlHasBeenSet = true; m_adDecisionServerUrl = value; } /** *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.
*/ inline void SetAdDecisionServerUrl(Aws::String&& value) { m_adDecisionServerUrlHasBeenSet = true; m_adDecisionServerUrl = std::move(value); } /** *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.
*/ inline void SetAdDecisionServerUrl(const char* value) { m_adDecisionServerUrlHasBeenSet = true; m_adDecisionServerUrl.assign(value); } /** *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.
*/ inline LivePreRollConfiguration& WithAdDecisionServerUrl(const Aws::String& value) { SetAdDecisionServerUrl(value); return *this;} /** *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.
*/ inline LivePreRollConfiguration& WithAdDecisionServerUrl(Aws::String&& value) { SetAdDecisionServerUrl(std::move(value)); return *this;} /** *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.
*/ inline LivePreRollConfiguration& WithAdDecisionServerUrl(const char* value) { SetAdDecisionServerUrl(value); return *this;} /** *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.
*/ inline int GetMaxDurationSeconds() const{ return m_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.
*/ inline bool MaxDurationSecondsHasBeenSet() const { return m_maxDurationSecondsHasBeenSet; } /** *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.
*/ inline void SetMaxDurationSeconds(int value) { m_maxDurationSecondsHasBeenSet = true; m_maxDurationSeconds = value; } /** *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.
*/ inline LivePreRollConfiguration& WithMaxDurationSeconds(int value) { SetMaxDurationSeconds(value); return *this;} private: Aws::String m_adDecisionServerUrl; bool m_adDecisionServerUrlHasBeenSet = false; int m_maxDurationSeconds; bool m_maxDurationSecondsHasBeenSet = false; }; } // namespace Model } // namespace MediaTailor } // namespace Aws