/** * 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 information about when the canary was created and * modified.

See Also:

AWS * API Reference

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

The date and time the canary was created.

*/ inline const Aws::Utils::DateTime& GetCreated() const{ return m_created; } /** *

The date and time the canary was created.

*/ inline bool CreatedHasBeenSet() const { return m_createdHasBeenSet; } /** *

The date and time the canary was created.

*/ inline void SetCreated(const Aws::Utils::DateTime& value) { m_createdHasBeenSet = true; m_created = value; } /** *

The date and time the canary was created.

*/ inline void SetCreated(Aws::Utils::DateTime&& value) { m_createdHasBeenSet = true; m_created = std::move(value); } /** *

The date and time the canary was created.

*/ inline CanaryTimeline& WithCreated(const Aws::Utils::DateTime& value) { SetCreated(value); return *this;} /** *

The date and time the canary was created.

*/ inline CanaryTimeline& WithCreated(Aws::Utils::DateTime&& value) { SetCreated(std::move(value)); return *this;} /** *

The date and time the canary was most recently modified.

*/ inline const Aws::Utils::DateTime& GetLastModified() const{ return m_lastModified; } /** *

The date and time the canary was most recently modified.

*/ inline bool LastModifiedHasBeenSet() const { return m_lastModifiedHasBeenSet; } /** *

The date and time the canary was most recently modified.

*/ inline void SetLastModified(const Aws::Utils::DateTime& value) { m_lastModifiedHasBeenSet = true; m_lastModified = value; } /** *

The date and time the canary was most recently modified.

*/ inline void SetLastModified(Aws::Utils::DateTime&& value) { m_lastModifiedHasBeenSet = true; m_lastModified = std::move(value); } /** *

The date and time the canary was most recently modified.

*/ inline CanaryTimeline& WithLastModified(const Aws::Utils::DateTime& value) { SetLastModified(value); return *this;} /** *

The date and time the canary was most recently modified.

*/ inline CanaryTimeline& WithLastModified(Aws::Utils::DateTime&& value) { SetLastModified(std::move(value)); return *this;} /** *

The date and time that the canary's most recent run started.

*/ inline const Aws::Utils::DateTime& GetLastStarted() const{ return m_lastStarted; } /** *

The date and time that the canary's most recent run started.

*/ inline bool LastStartedHasBeenSet() const { return m_lastStartedHasBeenSet; } /** *

The date and time that the canary's most recent run started.

*/ inline void SetLastStarted(const Aws::Utils::DateTime& value) { m_lastStartedHasBeenSet = true; m_lastStarted = value; } /** *

The date and time that the canary's most recent run started.

*/ inline void SetLastStarted(Aws::Utils::DateTime&& value) { m_lastStartedHasBeenSet = true; m_lastStarted = std::move(value); } /** *

The date and time that the canary's most recent run started.

*/ inline CanaryTimeline& WithLastStarted(const Aws::Utils::DateTime& value) { SetLastStarted(value); return *this;} /** *

The date and time that the canary's most recent run started.

*/ inline CanaryTimeline& WithLastStarted(Aws::Utils::DateTime&& value) { SetLastStarted(std::move(value)); return *this;} /** *

The date and time that the canary's most recent run ended.

*/ inline const Aws::Utils::DateTime& GetLastStopped() const{ return m_lastStopped; } /** *

The date and time that the canary's most recent run ended.

*/ inline bool LastStoppedHasBeenSet() const { return m_lastStoppedHasBeenSet; } /** *

The date and time that the canary's most recent run ended.

*/ inline void SetLastStopped(const Aws::Utils::DateTime& value) { m_lastStoppedHasBeenSet = true; m_lastStopped = value; } /** *

The date and time that the canary's most recent run ended.

*/ inline void SetLastStopped(Aws::Utils::DateTime&& value) { m_lastStoppedHasBeenSet = true; m_lastStopped = std::move(value); } /** *

The date and time that the canary's most recent run ended.

*/ inline CanaryTimeline& WithLastStopped(const Aws::Utils::DateTime& value) { SetLastStopped(value); return *this;} /** *

The date and time that the canary's most recent run ended.

*/ inline CanaryTimeline& WithLastStopped(Aws::Utils::DateTime&& value) { SetLastStopped(std::move(value)); return *this;} private: Aws::Utils::DateTime m_created; bool m_createdHasBeenSet = false; Aws::Utils::DateTime m_lastModified; bool m_lastModifiedHasBeenSet = false; Aws::Utils::DateTime m_lastStarted; bool m_lastStartedHasBeenSet = false; Aws::Utils::DateTime m_lastStopped; bool m_lastStoppedHasBeenSet = false; }; } // namespace Model } // namespace Synthetics } // namespace Aws