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

A time range with a start and end time.

See Also:

AWS * API Reference

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

Time in UTC at which the time range ends.

*/ inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; } /** *

Time in UTC at which the time range ends.

*/ inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; } /** *

Time in UTC at which the time range ends.

*/ inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; } /** *

Time in UTC at which the time range ends.

*/ inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); } /** *

Time in UTC at which the time range ends.

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

Time in UTC at which the time range ends.

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

Time in UTC at which the time range starts.

*/ inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } /** *

Time in UTC at which the time range starts.

*/ inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } /** *

Time in UTC at which the time range starts.

*/ inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; } /** *

Time in UTC at which the time range starts.

*/ inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); } /** *

Time in UTC at which the time range starts.

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

Time in UTC at which the time range starts.

*/ inline TimeRange& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} private: Aws::Utils::DateTime m_endTime; bool m_endTimeHasBeenSet = false; Aws::Utils::DateTime m_startTime; bool m_startTimeHasBeenSet = false; }; } // namespace Model } // namespace GroundStation } // namespace Aws