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

Earliest and latest time an instance can be restored to:

See * Also:

AWS * API Reference

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

The earliest time you can restore an instance to.

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

The earliest time you can restore an instance to.

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

The earliest time you can restore an instance to.

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

The earliest time you can restore an instance to.

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

The earliest time you can restore an instance to.

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

The earliest time you can restore an instance to.

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

The latest time you can restore an instance to.

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

The latest time you can restore an instance to.

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

The latest time you can restore an instance to.

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

The latest time you can restore an instance to.

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

The latest time you can restore an instance to.

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

The latest time you can restore an instance to.

*/ inline RestoreWindow& 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 RDS } // namespace Aws