/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace MediaTailor { namespace Model { /** *

A prefetch schedule allows you to tell MediaTailor to fetch and prepare * certain ads before an ad break happens. For more information about ad * prefetching, see Using * ad prefetching in the MediaTailor User Guide.

See * Also:

AWS * API Reference

*/ class PrefetchSchedule { public: AWS_MEDIATAILOR_API PrefetchSchedule(); AWS_MEDIATAILOR_API PrefetchSchedule(Aws::Utils::Json::JsonView jsonValue); AWS_MEDIATAILOR_API PrefetchSchedule& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_MEDIATAILOR_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The Amazon Resource Name (ARN) of the prefetch schedule.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The Amazon Resource Name (ARN) of the prefetch schedule.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the prefetch schedule.

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

The Amazon Resource Name (ARN) of the prefetch schedule.

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the prefetch schedule.

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

The Amazon Resource Name (ARN) of the prefetch schedule.

*/ inline PrefetchSchedule& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the prefetch schedule.

*/ inline PrefetchSchedule& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the prefetch schedule.

*/ inline PrefetchSchedule& WithArn(const char* value) { SetArn(value); return *this;} /** *

Consumption settings determine how, and when, MediaTailor places the * prefetched ads into ad breaks. Ad consumption occurs within a span of time that * you define, called a consumption window. You can designate which ad * breaks that MediaTailor fills with prefetch ads by setting avail matching * criteria.

*/ inline const PrefetchConsumption& GetConsumption() const{ return m_consumption; } /** *

Consumption settings determine how, and when, MediaTailor places the * prefetched ads into ad breaks. Ad consumption occurs within a span of time that * you define, called a consumption window. You can designate which ad * breaks that MediaTailor fills with prefetch ads by setting avail matching * criteria.

*/ inline bool ConsumptionHasBeenSet() const { return m_consumptionHasBeenSet; } /** *

Consumption settings determine how, and when, MediaTailor places the * prefetched ads into ad breaks. Ad consumption occurs within a span of time that * you define, called a consumption window. You can designate which ad * breaks that MediaTailor fills with prefetch ads by setting avail matching * criteria.

*/ inline void SetConsumption(const PrefetchConsumption& value) { m_consumptionHasBeenSet = true; m_consumption = value; } /** *

Consumption settings determine how, and when, MediaTailor places the * prefetched ads into ad breaks. Ad consumption occurs within a span of time that * you define, called a consumption window. You can designate which ad * breaks that MediaTailor fills with prefetch ads by setting avail matching * criteria.

*/ inline void SetConsumption(PrefetchConsumption&& value) { m_consumptionHasBeenSet = true; m_consumption = std::move(value); } /** *

Consumption settings determine how, and when, MediaTailor places the * prefetched ads into ad breaks. Ad consumption occurs within a span of time that * you define, called a consumption window. You can designate which ad * breaks that MediaTailor fills with prefetch ads by setting avail matching * criteria.

*/ inline PrefetchSchedule& WithConsumption(const PrefetchConsumption& value) { SetConsumption(value); return *this;} /** *

Consumption settings determine how, and when, MediaTailor places the * prefetched ads into ad breaks. Ad consumption occurs within a span of time that * you define, called a consumption window. You can designate which ad * breaks that MediaTailor fills with prefetch ads by setting avail matching * criteria.

*/ inline PrefetchSchedule& WithConsumption(PrefetchConsumption&& value) { SetConsumption(std::move(value)); return *this;} /** *

The name of the prefetch schedule. The name must be unique among all prefetch * schedules that are associated with the specified playback configuration.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the prefetch schedule. The name must be unique among all prefetch * schedules that are associated with the specified playback configuration.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the prefetch schedule. The name must be unique among all prefetch * schedules that are associated with the specified playback configuration.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the prefetch schedule. The name must be unique among all prefetch * schedules that are associated with the specified playback configuration.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the prefetch schedule. The name must be unique among all prefetch * schedules that are associated with the specified playback configuration.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the prefetch schedule. The name must be unique among all prefetch * schedules that are associated with the specified playback configuration.

*/ inline PrefetchSchedule& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the prefetch schedule. The name must be unique among all prefetch * schedules that are associated with the specified playback configuration.

*/ inline PrefetchSchedule& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the prefetch schedule. The name must be unique among all prefetch * schedules that are associated with the specified playback configuration.

*/ inline PrefetchSchedule& WithName(const char* value) { SetName(value); return *this;} /** *

The name of the playback configuration to create the prefetch schedule * for.

*/ inline const Aws::String& GetPlaybackConfigurationName() const{ return m_playbackConfigurationName; } /** *

The name of the playback configuration to create the prefetch schedule * for.

*/ inline bool PlaybackConfigurationNameHasBeenSet() const { return m_playbackConfigurationNameHasBeenSet; } /** *

The name of the playback configuration to create the prefetch schedule * for.

*/ inline void SetPlaybackConfigurationName(const Aws::String& value) { m_playbackConfigurationNameHasBeenSet = true; m_playbackConfigurationName = value; } /** *

The name of the playback configuration to create the prefetch schedule * for.

*/ inline void SetPlaybackConfigurationName(Aws::String&& value) { m_playbackConfigurationNameHasBeenSet = true; m_playbackConfigurationName = std::move(value); } /** *

The name of the playback configuration to create the prefetch schedule * for.

*/ inline void SetPlaybackConfigurationName(const char* value) { m_playbackConfigurationNameHasBeenSet = true; m_playbackConfigurationName.assign(value); } /** *

The name of the playback configuration to create the prefetch schedule * for.

*/ inline PrefetchSchedule& WithPlaybackConfigurationName(const Aws::String& value) { SetPlaybackConfigurationName(value); return *this;} /** *

The name of the playback configuration to create the prefetch schedule * for.

*/ inline PrefetchSchedule& WithPlaybackConfigurationName(Aws::String&& value) { SetPlaybackConfigurationName(std::move(value)); return *this;} /** *

The name of the playback configuration to create the prefetch schedule * for.

*/ inline PrefetchSchedule& WithPlaybackConfigurationName(const char* value) { SetPlaybackConfigurationName(value); return *this;} /** *

A complex type that contains settings for prefetch retrieval from the ad * decision server (ADS).

*/ inline const PrefetchRetrieval& GetRetrieval() const{ return m_retrieval; } /** *

A complex type that contains settings for prefetch retrieval from the ad * decision server (ADS).

*/ inline bool RetrievalHasBeenSet() const { return m_retrievalHasBeenSet; } /** *

A complex type that contains settings for prefetch retrieval from the ad * decision server (ADS).

*/ inline void SetRetrieval(const PrefetchRetrieval& value) { m_retrievalHasBeenSet = true; m_retrieval = value; } /** *

A complex type that contains settings for prefetch retrieval from the ad * decision server (ADS).

*/ inline void SetRetrieval(PrefetchRetrieval&& value) { m_retrievalHasBeenSet = true; m_retrieval = std::move(value); } /** *

A complex type that contains settings for prefetch retrieval from the ad * decision server (ADS).

*/ inline PrefetchSchedule& WithRetrieval(const PrefetchRetrieval& value) { SetRetrieval(value); return *this;} /** *

A complex type that contains settings for prefetch retrieval from the ad * decision server (ADS).

*/ inline PrefetchSchedule& WithRetrieval(PrefetchRetrieval&& value) { SetRetrieval(std::move(value)); return *this;} /** *

An optional stream identifier that you can specify in order to prefetch for * multiple streams that use the same playback configuration.

*/ inline const Aws::String& GetStreamId() const{ return m_streamId; } /** *

An optional stream identifier that you can specify in order to prefetch for * multiple streams that use the same playback configuration.

*/ inline bool StreamIdHasBeenSet() const { return m_streamIdHasBeenSet; } /** *

An optional stream identifier that you can specify in order to prefetch for * multiple streams that use the same playback configuration.

*/ inline void SetStreamId(const Aws::String& value) { m_streamIdHasBeenSet = true; m_streamId = value; } /** *

An optional stream identifier that you can specify in order to prefetch for * multiple streams that use the same playback configuration.

*/ inline void SetStreamId(Aws::String&& value) { m_streamIdHasBeenSet = true; m_streamId = std::move(value); } /** *

An optional stream identifier that you can specify in order to prefetch for * multiple streams that use the same playback configuration.

*/ inline void SetStreamId(const char* value) { m_streamIdHasBeenSet = true; m_streamId.assign(value); } /** *

An optional stream identifier that you can specify in order to prefetch for * multiple streams that use the same playback configuration.

*/ inline PrefetchSchedule& WithStreamId(const Aws::String& value) { SetStreamId(value); return *this;} /** *

An optional stream identifier that you can specify in order to prefetch for * multiple streams that use the same playback configuration.

*/ inline PrefetchSchedule& WithStreamId(Aws::String&& value) { SetStreamId(std::move(value)); return *this;} /** *

An optional stream identifier that you can specify in order to prefetch for * multiple streams that use the same playback configuration.

*/ inline PrefetchSchedule& WithStreamId(const char* value) { SetStreamId(value); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet = false; PrefetchConsumption m_consumption; bool m_consumptionHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_playbackConfigurationName; bool m_playbackConfigurationNameHasBeenSet = false; PrefetchRetrieval m_retrieval; bool m_retrievalHasBeenSet = false; Aws::String m_streamId; bool m_streamIdHasBeenSet = false; }; } // namespace Model } // namespace MediaTailor } // namespace Aws