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

Information about a time range.

See Also:

AWS * API Reference

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

The start time of the time range.

Specify null to leave the * start time open-ended.

*/ inline const Aws::Utils::DateTime& GetStart() const{ return m_start; } /** *

The start time of the time range.

Specify null to leave the * start time open-ended.

*/ inline bool StartHasBeenSet() const { return m_startHasBeenSet; } /** *

The start time of the time range.

Specify null to leave the * start time open-ended.

*/ inline void SetStart(const Aws::Utils::DateTime& value) { m_startHasBeenSet = true; m_start = value; } /** *

The start time of the time range.

Specify null to leave the * start time open-ended.

*/ inline void SetStart(Aws::Utils::DateTime&& value) { m_startHasBeenSet = true; m_start = std::move(value); } /** *

The start time of the time range.

Specify null to leave the * start time open-ended.

*/ inline TimeRange& WithStart(const Aws::Utils::DateTime& value) { SetStart(value); return *this;} /** *

The start time of the time range.

Specify null to leave the * start time open-ended.

*/ inline TimeRange& WithStart(Aws::Utils::DateTime&& value) { SetStart(std::move(value)); return *this;} /** *

The end time of the time range.

Specify null to leave the end * time open-ended.

*/ inline const Aws::Utils::DateTime& GetEnd() const{ return m_end; } /** *

The end time of the time range.

Specify null to leave the end * time open-ended.

*/ inline bool EndHasBeenSet() const { return m_endHasBeenSet; } /** *

The end time of the time range.

Specify null to leave the end * time open-ended.

*/ inline void SetEnd(const Aws::Utils::DateTime& value) { m_endHasBeenSet = true; m_end = value; } /** *

The end time of the time range.

Specify null to leave the end * time open-ended.

*/ inline void SetEnd(Aws::Utils::DateTime&& value) { m_endHasBeenSet = true; m_end = std::move(value); } /** *

The end time of the time range.

Specify null to leave the end * time open-ended.

*/ inline TimeRange& WithEnd(const Aws::Utils::DateTime& value) { SetEnd(value); return *this;} /** *

The end time of the time range.

Specify null to leave the end * time open-ended.

*/ inline TimeRange& WithEnd(Aws::Utils::DateTime&& value) { SetEnd(std::move(value)); return *this;} private: Aws::Utils::DateTime m_start; bool m_startHasBeenSet = false; Aws::Utils::DateTime m_end; bool m_endHasBeenSet = false; }; } // namespace Model } // namespace CodeDeploy } // namespace Aws