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

This structure contains the start and end times of a single canary * run.

See Also:

AWS * API Reference

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

The start time of the run.

*/ inline const Aws::Utils::DateTime& GetStarted() const{ return m_started; } /** *

The start time of the run.

*/ inline bool StartedHasBeenSet() const { return m_startedHasBeenSet; } /** *

The start time of the run.

*/ inline void SetStarted(const Aws::Utils::DateTime& value) { m_startedHasBeenSet = true; m_started = value; } /** *

The start time of the run.

*/ inline void SetStarted(Aws::Utils::DateTime&& value) { m_startedHasBeenSet = true; m_started = std::move(value); } /** *

The start time of the run.

*/ inline CanaryRunTimeline& WithStarted(const Aws::Utils::DateTime& value) { SetStarted(value); return *this;} /** *

The start time of the run.

*/ inline CanaryRunTimeline& WithStarted(Aws::Utils::DateTime&& value) { SetStarted(std::move(value)); return *this;} /** *

The end time of the run.

*/ inline const Aws::Utils::DateTime& GetCompleted() const{ return m_completed; } /** *

The end time of the run.

*/ inline bool CompletedHasBeenSet() const { return m_completedHasBeenSet; } /** *

The end time of the run.

*/ inline void SetCompleted(const Aws::Utils::DateTime& value) { m_completedHasBeenSet = true; m_completed = value; } /** *

The end time of the run.

*/ inline void SetCompleted(Aws::Utils::DateTime&& value) { m_completedHasBeenSet = true; m_completed = std::move(value); } /** *

The end time of the run.

*/ inline CanaryRunTimeline& WithCompleted(const Aws::Utils::DateTime& value) { SetCompleted(value); return *this;} /** *

The end time of the run.

*/ inline CanaryRunTimeline& WithCompleted(Aws::Utils::DateTime&& value) { SetCompleted(std::move(value)); return *this;} private: Aws::Utils::DateTime m_started; bool m_startedHasBeenSet = false; Aws::Utils::DateTime m_completed; bool m_completedHasBeenSet = false; }; } // namespace Model } // namespace Synthetics } // namespace Aws