/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { /** *

Describes the time period for a Scheduled Instance to start its first * schedule.

See Also:

AWS * API Reference

*/ class SlotStartTimeRangeRequest { public: AWS_EC2_API SlotStartTimeRangeRequest(); AWS_EC2_API SlotStartTimeRangeRequest(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API SlotStartTimeRangeRequest& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The earliest date and time, in UTC, for the Scheduled Instance to start.

*/ inline const Aws::Utils::DateTime& GetEarliestTime() const{ return m_earliestTime; } /** *

The earliest date and time, in UTC, for the Scheduled Instance to start.

*/ inline bool EarliestTimeHasBeenSet() const { return m_earliestTimeHasBeenSet; } /** *

The earliest date and time, in UTC, for the Scheduled Instance to start.

*/ inline void SetEarliestTime(const Aws::Utils::DateTime& value) { m_earliestTimeHasBeenSet = true; m_earliestTime = value; } /** *

The earliest date and time, in UTC, for the Scheduled Instance to start.

*/ inline void SetEarliestTime(Aws::Utils::DateTime&& value) { m_earliestTimeHasBeenSet = true; m_earliestTime = std::move(value); } /** *

The earliest date and time, in UTC, for the Scheduled Instance to start.

*/ inline SlotStartTimeRangeRequest& WithEarliestTime(const Aws::Utils::DateTime& value) { SetEarliestTime(value); return *this;} /** *

The earliest date and time, in UTC, for the Scheduled Instance to start.

*/ inline SlotStartTimeRangeRequest& WithEarliestTime(Aws::Utils::DateTime&& value) { SetEarliestTime(std::move(value)); return *this;} /** *

The latest date and time, in UTC, for the Scheduled Instance to start.

*/ inline const Aws::Utils::DateTime& GetLatestTime() const{ return m_latestTime; } /** *

The latest date and time, in UTC, for the Scheduled Instance to start.

*/ inline bool LatestTimeHasBeenSet() const { return m_latestTimeHasBeenSet; } /** *

The latest date and time, in UTC, for the Scheduled Instance to start.

*/ inline void SetLatestTime(const Aws::Utils::DateTime& value) { m_latestTimeHasBeenSet = true; m_latestTime = value; } /** *

The latest date and time, in UTC, for the Scheduled Instance to start.

*/ inline void SetLatestTime(Aws::Utils::DateTime&& value) { m_latestTimeHasBeenSet = true; m_latestTime = std::move(value); } /** *

The latest date and time, in UTC, for the Scheduled Instance to start.

*/ inline SlotStartTimeRangeRequest& WithLatestTime(const Aws::Utils::DateTime& value) { SetLatestTime(value); return *this;} /** *

The latest date and time, in UTC, for the Scheduled Instance to start.

*/ inline SlotStartTimeRangeRequest& WithLatestTime(Aws::Utils::DateTime&& value) { SetLatestTime(std::move(value)); return *this;} private: Aws::Utils::DateTime m_earliestTime; bool m_earliestTimeHasBeenSet = false; Aws::Utils::DateTime m_latestTime; bool m_latestTimeHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws