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

This data type is used as a response element in the * DescribeDBClusterBacktracks action.

See Also:

AWS * API Reference

*/ class DBClusterBacktrack { public: AWS_RDS_API DBClusterBacktrack(); AWS_RDS_API DBClusterBacktrack(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_RDS_API DBClusterBacktrack& 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; /** *

Contains a user-supplied DB cluster identifier. This identifier is the unique * key that identifies a DB cluster.

*/ inline const Aws::String& GetDBClusterIdentifier() const{ return m_dBClusterIdentifier; } /** *

Contains a user-supplied DB cluster identifier. This identifier is the unique * key that identifies a DB cluster.

*/ inline bool DBClusterIdentifierHasBeenSet() const { return m_dBClusterIdentifierHasBeenSet; } /** *

Contains a user-supplied DB cluster identifier. This identifier is the unique * key that identifies a DB cluster.

*/ inline void SetDBClusterIdentifier(const Aws::String& value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier = value; } /** *

Contains a user-supplied DB cluster identifier. This identifier is the unique * key that identifies a DB cluster.

*/ inline void SetDBClusterIdentifier(Aws::String&& value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier = std::move(value); } /** *

Contains a user-supplied DB cluster identifier. This identifier is the unique * key that identifies a DB cluster.

*/ inline void SetDBClusterIdentifier(const char* value) { m_dBClusterIdentifierHasBeenSet = true; m_dBClusterIdentifier.assign(value); } /** *

Contains a user-supplied DB cluster identifier. This identifier is the unique * key that identifies a DB cluster.

*/ inline DBClusterBacktrack& WithDBClusterIdentifier(const Aws::String& value) { SetDBClusterIdentifier(value); return *this;} /** *

Contains a user-supplied DB cluster identifier. This identifier is the unique * key that identifies a DB cluster.

*/ inline DBClusterBacktrack& WithDBClusterIdentifier(Aws::String&& value) { SetDBClusterIdentifier(std::move(value)); return *this;} /** *

Contains a user-supplied DB cluster identifier. This identifier is the unique * key that identifies a DB cluster.

*/ inline DBClusterBacktrack& WithDBClusterIdentifier(const char* value) { SetDBClusterIdentifier(value); return *this;} /** *

Contains the backtrack identifier.

*/ inline const Aws::String& GetBacktrackIdentifier() const{ return m_backtrackIdentifier; } /** *

Contains the backtrack identifier.

*/ inline bool BacktrackIdentifierHasBeenSet() const { return m_backtrackIdentifierHasBeenSet; } /** *

Contains the backtrack identifier.

*/ inline void SetBacktrackIdentifier(const Aws::String& value) { m_backtrackIdentifierHasBeenSet = true; m_backtrackIdentifier = value; } /** *

Contains the backtrack identifier.

*/ inline void SetBacktrackIdentifier(Aws::String&& value) { m_backtrackIdentifierHasBeenSet = true; m_backtrackIdentifier = std::move(value); } /** *

Contains the backtrack identifier.

*/ inline void SetBacktrackIdentifier(const char* value) { m_backtrackIdentifierHasBeenSet = true; m_backtrackIdentifier.assign(value); } /** *

Contains the backtrack identifier.

*/ inline DBClusterBacktrack& WithBacktrackIdentifier(const Aws::String& value) { SetBacktrackIdentifier(value); return *this;} /** *

Contains the backtrack identifier.

*/ inline DBClusterBacktrack& WithBacktrackIdentifier(Aws::String&& value) { SetBacktrackIdentifier(std::move(value)); return *this;} /** *

Contains the backtrack identifier.

*/ inline DBClusterBacktrack& WithBacktrackIdentifier(const char* value) { SetBacktrackIdentifier(value); return *this;} /** *

The timestamp of the time to which the DB cluster was backtracked.

*/ inline const Aws::Utils::DateTime& GetBacktrackTo() const{ return m_backtrackTo; } /** *

The timestamp of the time to which the DB cluster was backtracked.

*/ inline bool BacktrackToHasBeenSet() const { return m_backtrackToHasBeenSet; } /** *

The timestamp of the time to which the DB cluster was backtracked.

*/ inline void SetBacktrackTo(const Aws::Utils::DateTime& value) { m_backtrackToHasBeenSet = true; m_backtrackTo = value; } /** *

The timestamp of the time to which the DB cluster was backtracked.

*/ inline void SetBacktrackTo(Aws::Utils::DateTime&& value) { m_backtrackToHasBeenSet = true; m_backtrackTo = std::move(value); } /** *

The timestamp of the time to which the DB cluster was backtracked.

*/ inline DBClusterBacktrack& WithBacktrackTo(const Aws::Utils::DateTime& value) { SetBacktrackTo(value); return *this;} /** *

The timestamp of the time to which the DB cluster was backtracked.

*/ inline DBClusterBacktrack& WithBacktrackTo(Aws::Utils::DateTime&& value) { SetBacktrackTo(std::move(value)); return *this;} /** *

The timestamp of the time from which the DB cluster was backtracked.

*/ inline const Aws::Utils::DateTime& GetBacktrackedFrom() const{ return m_backtrackedFrom; } /** *

The timestamp of the time from which the DB cluster was backtracked.

*/ inline bool BacktrackedFromHasBeenSet() const { return m_backtrackedFromHasBeenSet; } /** *

The timestamp of the time from which the DB cluster was backtracked.

*/ inline void SetBacktrackedFrom(const Aws::Utils::DateTime& value) { m_backtrackedFromHasBeenSet = true; m_backtrackedFrom = value; } /** *

The timestamp of the time from which the DB cluster was backtracked.

*/ inline void SetBacktrackedFrom(Aws::Utils::DateTime&& value) { m_backtrackedFromHasBeenSet = true; m_backtrackedFrom = std::move(value); } /** *

The timestamp of the time from which the DB cluster was backtracked.

*/ inline DBClusterBacktrack& WithBacktrackedFrom(const Aws::Utils::DateTime& value) { SetBacktrackedFrom(value); return *this;} /** *

The timestamp of the time from which the DB cluster was backtracked.

*/ inline DBClusterBacktrack& WithBacktrackedFrom(Aws::Utils::DateTime&& value) { SetBacktrackedFrom(std::move(value)); return *this;} /** *

The timestamp of the time at which the backtrack was requested.

*/ inline const Aws::Utils::DateTime& GetBacktrackRequestCreationTime() const{ return m_backtrackRequestCreationTime; } /** *

The timestamp of the time at which the backtrack was requested.

*/ inline bool BacktrackRequestCreationTimeHasBeenSet() const { return m_backtrackRequestCreationTimeHasBeenSet; } /** *

The timestamp of the time at which the backtrack was requested.

*/ inline void SetBacktrackRequestCreationTime(const Aws::Utils::DateTime& value) { m_backtrackRequestCreationTimeHasBeenSet = true; m_backtrackRequestCreationTime = value; } /** *

The timestamp of the time at which the backtrack was requested.

*/ inline void SetBacktrackRequestCreationTime(Aws::Utils::DateTime&& value) { m_backtrackRequestCreationTimeHasBeenSet = true; m_backtrackRequestCreationTime = std::move(value); } /** *

The timestamp of the time at which the backtrack was requested.

*/ inline DBClusterBacktrack& WithBacktrackRequestCreationTime(const Aws::Utils::DateTime& value) { SetBacktrackRequestCreationTime(value); return *this;} /** *

The timestamp of the time at which the backtrack was requested.

*/ inline DBClusterBacktrack& WithBacktrackRequestCreationTime(Aws::Utils::DateTime&& value) { SetBacktrackRequestCreationTime(std::move(value)); return *this;} /** *

The status of the backtrack. This property returns one of the following * values:

  • applying - The backtrack is currently * being applied to or rolled back from the DB cluster.

  • * completed - The backtrack has successfully been applied to or * rolled back from the DB cluster.

  • failed - An * error occurred while the backtrack was applied to or rolled back from the DB * cluster.

  • pending - The backtrack is currently * pending application to or rollback from the DB cluster.

*/ inline const Aws::String& GetStatus() const{ return m_status; } /** *

The status of the backtrack. This property returns one of the following * values:

  • applying - The backtrack is currently * being applied to or rolled back from the DB cluster.

  • * completed - The backtrack has successfully been applied to or * rolled back from the DB cluster.

  • failed - An * error occurred while the backtrack was applied to or rolled back from the DB * cluster.

  • pending - The backtrack is currently * pending application to or rollback from the DB cluster.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the backtrack. This property returns one of the following * values:

  • applying - The backtrack is currently * being applied to or rolled back from the DB cluster.

  • * completed - The backtrack has successfully been applied to or * rolled back from the DB cluster.

  • failed - An * error occurred while the backtrack was applied to or rolled back from the DB * cluster.

  • pending - The backtrack is currently * pending application to or rollback from the DB cluster.

*/ inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the backtrack. This property returns one of the following * values:

  • applying - The backtrack is currently * being applied to or rolled back from the DB cluster.

  • * completed - The backtrack has successfully been applied to or * rolled back from the DB cluster.

  • failed - An * error occurred while the backtrack was applied to or rolled back from the DB * cluster.

  • pending - The backtrack is currently * pending application to or rollback from the DB cluster.

*/ inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of the backtrack. This property returns one of the following * values:

  • applying - The backtrack is currently * being applied to or rolled back from the DB cluster.

  • * completed - The backtrack has successfully been applied to or * rolled back from the DB cluster.

  • failed - An * error occurred while the backtrack was applied to or rolled back from the DB * cluster.

  • pending - The backtrack is currently * pending application to or rollback from the DB cluster.

*/ inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); } /** *

The status of the backtrack. This property returns one of the following * values:

  • applying - The backtrack is currently * being applied to or rolled back from the DB cluster.

  • * completed - The backtrack has successfully been applied to or * rolled back from the DB cluster.

  • failed - An * error occurred while the backtrack was applied to or rolled back from the DB * cluster.

  • pending - The backtrack is currently * pending application to or rollback from the DB cluster.

*/ inline DBClusterBacktrack& WithStatus(const Aws::String& value) { SetStatus(value); return *this;} /** *

The status of the backtrack. This property returns one of the following * values:

  • applying - The backtrack is currently * being applied to or rolled back from the DB cluster.

  • * completed - The backtrack has successfully been applied to or * rolled back from the DB cluster.

  • failed - An * error occurred while the backtrack was applied to or rolled back from the DB * cluster.

  • pending - The backtrack is currently * pending application to or rollback from the DB cluster.

*/ inline DBClusterBacktrack& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;} /** *

The status of the backtrack. This property returns one of the following * values:

  • applying - The backtrack is currently * being applied to or rolled back from the DB cluster.

  • * completed - The backtrack has successfully been applied to or * rolled back from the DB cluster.

  • failed - An * error occurred while the backtrack was applied to or rolled back from the DB * cluster.

  • pending - The backtrack is currently * pending application to or rollback from the DB cluster.

*/ inline DBClusterBacktrack& WithStatus(const char* value) { SetStatus(value); return *this;} inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; } inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; } inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); } inline DBClusterBacktrack& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} inline DBClusterBacktrack& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} private: Aws::String m_dBClusterIdentifier; bool m_dBClusterIdentifierHasBeenSet = false; Aws::String m_backtrackIdentifier; bool m_backtrackIdentifierHasBeenSet = false; Aws::Utils::DateTime m_backtrackTo; bool m_backtrackToHasBeenSet = false; Aws::Utils::DateTime m_backtrackedFrom; bool m_backtrackedFromHasBeenSet = false; Aws::Utils::DateTime m_backtrackRequestCreationTime; bool m_backtrackRequestCreationTimeHasBeenSet = false; Aws::String m_status; bool m_statusHasBeenSet = false; ResponseMetadata m_responseMetadata; }; } // namespace Model } // namespace RDS } // namespace Aws