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

The configuration for bumpers. Bumpers are short audio or video clips that * play at the start or before the end of an ad break. To learn more about bumpers, * see Bumpers.

See * Also:

AWS * API Reference

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

The URL for the end bumper asset.

*/ inline const Aws::String& GetEndUrl() const{ return m_endUrl; } /** *

The URL for the end bumper asset.

*/ inline bool EndUrlHasBeenSet() const { return m_endUrlHasBeenSet; } /** *

The URL for the end bumper asset.

*/ inline void SetEndUrl(const Aws::String& value) { m_endUrlHasBeenSet = true; m_endUrl = value; } /** *

The URL for the end bumper asset.

*/ inline void SetEndUrl(Aws::String&& value) { m_endUrlHasBeenSet = true; m_endUrl = std::move(value); } /** *

The URL for the end bumper asset.

*/ inline void SetEndUrl(const char* value) { m_endUrlHasBeenSet = true; m_endUrl.assign(value); } /** *

The URL for the end bumper asset.

*/ inline Bumper& WithEndUrl(const Aws::String& value) { SetEndUrl(value); return *this;} /** *

The URL for the end bumper asset.

*/ inline Bumper& WithEndUrl(Aws::String&& value) { SetEndUrl(std::move(value)); return *this;} /** *

The URL for the end bumper asset.

*/ inline Bumper& WithEndUrl(const char* value) { SetEndUrl(value); return *this;} /** *

The URL for the start bumper asset.

*/ inline const Aws::String& GetStartUrl() const{ return m_startUrl; } /** *

The URL for the start bumper asset.

*/ inline bool StartUrlHasBeenSet() const { return m_startUrlHasBeenSet; } /** *

The URL for the start bumper asset.

*/ inline void SetStartUrl(const Aws::String& value) { m_startUrlHasBeenSet = true; m_startUrl = value; } /** *

The URL for the start bumper asset.

*/ inline void SetStartUrl(Aws::String&& value) { m_startUrlHasBeenSet = true; m_startUrl = std::move(value); } /** *

The URL for the start bumper asset.

*/ inline void SetStartUrl(const char* value) { m_startUrlHasBeenSet = true; m_startUrl.assign(value); } /** *

The URL for the start bumper asset.

*/ inline Bumper& WithStartUrl(const Aws::String& value) { SetStartUrl(value); return *this;} /** *

The URL for the start bumper asset.

*/ inline Bumper& WithStartUrl(Aws::String&& value) { SetStartUrl(std::move(value)); return *this;} /** *

The URL for the start bumper asset.

*/ inline Bumper& WithStartUrl(const char* value) { SetStartUrl(value); return *this;} private: Aws::String m_endUrl; bool m_endUrlHasBeenSet = false; Aws::String m_startUrl; bool m_startUrlHasBeenSet = false; }; } // namespace Model } // namespace MediaTailor } // namespace Aws