/** * 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 ElasticTranscoder { namespace Model { /** *

Settings for one clip in a composition. All jobs in a playlist must have the * same clip settings.

See Also:

AWS * API Reference

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

Settings that determine when a clip begins and how long it lasts.

*/ inline const TimeSpan& GetTimeSpan() const{ return m_timeSpan; } /** *

Settings that determine when a clip begins and how long it lasts.

*/ inline bool TimeSpanHasBeenSet() const { return m_timeSpanHasBeenSet; } /** *

Settings that determine when a clip begins and how long it lasts.

*/ inline void SetTimeSpan(const TimeSpan& value) { m_timeSpanHasBeenSet = true; m_timeSpan = value; } /** *

Settings that determine when a clip begins and how long it lasts.

*/ inline void SetTimeSpan(TimeSpan&& value) { m_timeSpanHasBeenSet = true; m_timeSpan = std::move(value); } /** *

Settings that determine when a clip begins and how long it lasts.

*/ inline Clip& WithTimeSpan(const TimeSpan& value) { SetTimeSpan(value); return *this;} /** *

Settings that determine when a clip begins and how long it lasts.

*/ inline Clip& WithTimeSpan(TimeSpan&& value) { SetTimeSpan(std::move(value)); return *this;} private: TimeSpan m_timeSpan; bool m_timeSpanHasBeenSet = false; }; } // namespace Model } // namespace ElasticTranscoder } // namespace Aws