/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace MediaTailor { namespace Model { class GetPrefetchScheduleResult { public: AWS_MEDIATAILOR_API GetPrefetchScheduleResult(); AWS_MEDIATAILOR_API GetPrefetchScheduleResult(const Aws::AmazonWebServiceResult& result); AWS_MEDIATAILOR_API GetPrefetchScheduleResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

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 void SetArn(const Aws::String& value) { m_arn = value; } /** *

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

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

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

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

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

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

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

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

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

*/ inline GetPrefetchScheduleResult& 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 void SetConsumption(const PrefetchConsumption& value) { 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_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 GetPrefetchScheduleResult& 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 GetPrefetchScheduleResult& 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 void SetName(const Aws::String& value) { 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_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_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 GetPrefetchScheduleResult& 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 GetPrefetchScheduleResult& 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 GetPrefetchScheduleResult& 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 void SetPlaybackConfigurationName(const Aws::String& value) { m_playbackConfigurationName = value; } /** *

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

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

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

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

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

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

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

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

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

*/ inline GetPrefetchScheduleResult& 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 void SetRetrieval(const PrefetchRetrieval& value) { m_retrieval = value; } /** *

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

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

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

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

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

*/ inline GetPrefetchScheduleResult& 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 void SetStreamId(const Aws::String& value) { 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_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_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 GetPrefetchScheduleResult& 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 GetPrefetchScheduleResult& 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 GetPrefetchScheduleResult& WithStreamId(const char* value) { SetStreamId(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetPrefetchScheduleResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetPrefetchScheduleResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetPrefetchScheduleResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_arn; PrefetchConsumption m_consumption; Aws::String m_name; Aws::String m_playbackConfigurationName; PrefetchRetrieval m_retrieval; Aws::String m_streamId; Aws::String m_requestId; }; } // namespace Model } // namespace MediaTailor } // namespace Aws