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

The schedule's ad break properties.

See Also:

AWS * API Reference

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

The approximate duration of the ad break, in seconds.

*/ inline long long GetApproximateDurationSeconds() const{ return m_approximateDurationSeconds; } /** *

The approximate duration of the ad break, in seconds.

*/ inline bool ApproximateDurationSecondsHasBeenSet() const { return m_approximateDurationSecondsHasBeenSet; } /** *

The approximate duration of the ad break, in seconds.

*/ inline void SetApproximateDurationSeconds(long long value) { m_approximateDurationSecondsHasBeenSet = true; m_approximateDurationSeconds = value; } /** *

The approximate duration of the ad break, in seconds.

*/ inline ScheduleAdBreak& WithApproximateDurationSeconds(long long value) { SetApproximateDurationSeconds(value); return *this;} /** *

The approximate time that the ad will start playing.

*/ inline const Aws::Utils::DateTime& GetApproximateStartTime() const{ return m_approximateStartTime; } /** *

The approximate time that the ad will start playing.

*/ inline bool ApproximateStartTimeHasBeenSet() const { return m_approximateStartTimeHasBeenSet; } /** *

The approximate time that the ad will start playing.

*/ inline void SetApproximateStartTime(const Aws::Utils::DateTime& value) { m_approximateStartTimeHasBeenSet = true; m_approximateStartTime = value; } /** *

The approximate time that the ad will start playing.

*/ inline void SetApproximateStartTime(Aws::Utils::DateTime&& value) { m_approximateStartTimeHasBeenSet = true; m_approximateStartTime = std::move(value); } /** *

The approximate time that the ad will start playing.

*/ inline ScheduleAdBreak& WithApproximateStartTime(const Aws::Utils::DateTime& value) { SetApproximateStartTime(value); return *this;} /** *

The approximate time that the ad will start playing.

*/ inline ScheduleAdBreak& WithApproximateStartTime(Aws::Utils::DateTime&& value) { SetApproximateStartTime(std::move(value)); return *this;} /** *

The name of the source location containing the VOD source used for the ad * break.

*/ inline const Aws::String& GetSourceLocationName() const{ return m_sourceLocationName; } /** *

The name of the source location containing the VOD source used for the ad * break.

*/ inline bool SourceLocationNameHasBeenSet() const { return m_sourceLocationNameHasBeenSet; } /** *

The name of the source location containing the VOD source used for the ad * break.

*/ inline void SetSourceLocationName(const Aws::String& value) { m_sourceLocationNameHasBeenSet = true; m_sourceLocationName = value; } /** *

The name of the source location containing the VOD source used for the ad * break.

*/ inline void SetSourceLocationName(Aws::String&& value) { m_sourceLocationNameHasBeenSet = true; m_sourceLocationName = std::move(value); } /** *

The name of the source location containing the VOD source used for the ad * break.

*/ inline void SetSourceLocationName(const char* value) { m_sourceLocationNameHasBeenSet = true; m_sourceLocationName.assign(value); } /** *

The name of the source location containing the VOD source used for the ad * break.

*/ inline ScheduleAdBreak& WithSourceLocationName(const Aws::String& value) { SetSourceLocationName(value); return *this;} /** *

The name of the source location containing the VOD source used for the ad * break.

*/ inline ScheduleAdBreak& WithSourceLocationName(Aws::String&& value) { SetSourceLocationName(std::move(value)); return *this;} /** *

The name of the source location containing the VOD source used for the ad * break.

*/ inline ScheduleAdBreak& WithSourceLocationName(const char* value) { SetSourceLocationName(value); return *this;} /** *

The name of the VOD source used for the ad break.

*/ inline const Aws::String& GetVodSourceName() const{ return m_vodSourceName; } /** *

The name of the VOD source used for the ad break.

*/ inline bool VodSourceNameHasBeenSet() const { return m_vodSourceNameHasBeenSet; } /** *

The name of the VOD source used for the ad break.

*/ inline void SetVodSourceName(const Aws::String& value) { m_vodSourceNameHasBeenSet = true; m_vodSourceName = value; } /** *

The name of the VOD source used for the ad break.

*/ inline void SetVodSourceName(Aws::String&& value) { m_vodSourceNameHasBeenSet = true; m_vodSourceName = std::move(value); } /** *

The name of the VOD source used for the ad break.

*/ inline void SetVodSourceName(const char* value) { m_vodSourceNameHasBeenSet = true; m_vodSourceName.assign(value); } /** *

The name of the VOD source used for the ad break.

*/ inline ScheduleAdBreak& WithVodSourceName(const Aws::String& value) { SetVodSourceName(value); return *this;} /** *

The name of the VOD source used for the ad break.

*/ inline ScheduleAdBreak& WithVodSourceName(Aws::String&& value) { SetVodSourceName(std::move(value)); return *this;} /** *

The name of the VOD source used for the ad break.

*/ inline ScheduleAdBreak& WithVodSourceName(const char* value) { SetVodSourceName(value); return *this;} private: long long m_approximateDurationSeconds; bool m_approximateDurationSecondsHasBeenSet = false; Aws::Utils::DateTime m_approximateStartTime; bool m_approximateStartTimeHasBeenSet = false; Aws::String m_sourceLocationName; bool m_sourceLocationNameHasBeenSet = false; Aws::String m_vodSourceName; bool m_vodSourceNameHasBeenSet = false; }; } // namespace Model } // namespace MediaTailor } // namespace Aws