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

See Also:

AWS * API Reference

*/ class BacktrackDBClusterRequest : public RDSRequest { public: AWS_RDS_API BacktrackDBClusterRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "BacktrackDBCluster"; } AWS_RDS_API Aws::String SerializePayload() const override; protected: AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The DB cluster identifier of the DB cluster to be backtracked. This parameter * is stored as a lowercase string.

Constraints:

  • Must * contain from 1 to 63 alphanumeric characters or hyphens.

  • First * character must be a letter.

  • Can't end with a hyphen or contain * two consecutive hyphens.

Example: my-cluster1 *

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

The DB cluster identifier of the DB cluster to be backtracked. This parameter * is stored as a lowercase string.

Constraints:

  • Must * contain from 1 to 63 alphanumeric characters or hyphens.

  • First * character must be a letter.

  • Can't end with a hyphen or contain * two consecutive hyphens.

Example: my-cluster1 *

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

The DB cluster identifier of the DB cluster to be backtracked. This parameter * is stored as a lowercase string.

Constraints:

  • Must * contain from 1 to 63 alphanumeric characters or hyphens.

  • First * character must be a letter.

  • Can't end with a hyphen or contain * two consecutive hyphens.

Example: my-cluster1 *

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

The DB cluster identifier of the DB cluster to be backtracked. This parameter * is stored as a lowercase string.

Constraints:

  • Must * contain from 1 to 63 alphanumeric characters or hyphens.

  • First * character must be a letter.

  • Can't end with a hyphen or contain * two consecutive hyphens.

Example: my-cluster1 *

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

The DB cluster identifier of the DB cluster to be backtracked. This parameter * is stored as a lowercase string.

Constraints:

  • Must * contain from 1 to 63 alphanumeric characters or hyphens.

  • First * character must be a letter.

  • Can't end with a hyphen or contain * two consecutive hyphens.

Example: my-cluster1 *

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

The DB cluster identifier of the DB cluster to be backtracked. This parameter * is stored as a lowercase string.

Constraints:

  • Must * contain from 1 to 63 alphanumeric characters or hyphens.

  • First * character must be a letter.

  • Can't end with a hyphen or contain * two consecutive hyphens.

Example: my-cluster1 *

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

The DB cluster identifier of the DB cluster to be backtracked. This parameter * is stored as a lowercase string.

Constraints:

  • Must * contain from 1 to 63 alphanumeric characters or hyphens.

  • First * character must be a letter.

  • Can't end with a hyphen or contain * two consecutive hyphens.

Example: my-cluster1 *

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

The DB cluster identifier of the DB cluster to be backtracked. This parameter * is stored as a lowercase string.

Constraints:

  • Must * contain from 1 to 63 alphanumeric characters or hyphens.

  • First * character must be a letter.

  • Can't end with a hyphen or contain * two consecutive hyphens.

Example: my-cluster1 *

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

The timestamp of the time to backtrack the DB cluster to, specified in ISO * 8601 format. For more information about ISO 8601, see the ISO8601 Wikipedia page.

*

If the specified time isn't a consistent time for the DB cluster, * Aurora automatically chooses the nearest possible consistent time for the DB * cluster.

Constraints:

  • Must contain a valid ISO * 8601 timestamp.

  • Can't contain a timestamp set in the * future.

Example: 2017-07-08T18:00Z

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

The timestamp of the time to backtrack the DB cluster to, specified in ISO * 8601 format. For more information about ISO 8601, see the ISO8601 Wikipedia page.

*

If the specified time isn't a consistent time for the DB cluster, * Aurora automatically chooses the nearest possible consistent time for the DB * cluster.

Constraints:

  • Must contain a valid ISO * 8601 timestamp.

  • Can't contain a timestamp set in the * future.

Example: 2017-07-08T18:00Z

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

The timestamp of the time to backtrack the DB cluster to, specified in ISO * 8601 format. For more information about ISO 8601, see the ISO8601 Wikipedia page.

*

If the specified time isn't a consistent time for the DB cluster, * Aurora automatically chooses the nearest possible consistent time for the DB * cluster.

Constraints:

  • Must contain a valid ISO * 8601 timestamp.

  • Can't contain a timestamp set in the * future.

Example: 2017-07-08T18:00Z

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

The timestamp of the time to backtrack the DB cluster to, specified in ISO * 8601 format. For more information about ISO 8601, see the ISO8601 Wikipedia page.

*

If the specified time isn't a consistent time for the DB cluster, * Aurora automatically chooses the nearest possible consistent time for the DB * cluster.

Constraints:

  • Must contain a valid ISO * 8601 timestamp.

  • Can't contain a timestamp set in the * future.

Example: 2017-07-08T18:00Z

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

The timestamp of the time to backtrack the DB cluster to, specified in ISO * 8601 format. For more information about ISO 8601, see the ISO8601 Wikipedia page.

*

If the specified time isn't a consistent time for the DB cluster, * Aurora automatically chooses the nearest possible consistent time for the DB * cluster.

Constraints:

  • Must contain a valid ISO * 8601 timestamp.

  • Can't contain a timestamp set in the * future.

Example: 2017-07-08T18:00Z

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

The timestamp of the time to backtrack the DB cluster to, specified in ISO * 8601 format. For more information about ISO 8601, see the ISO8601 Wikipedia page.

*

If the specified time isn't a consistent time for the DB cluster, * Aurora automatically chooses the nearest possible consistent time for the DB * cluster.

Constraints:

  • Must contain a valid ISO * 8601 timestamp.

  • Can't contain a timestamp set in the * future.

Example: 2017-07-08T18:00Z

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

A value that indicates whether to force the DB cluster to backtrack when * binary logging is enabled. Otherwise, an error occurs when binary logging is * enabled.

*/ inline bool GetForce() const{ return m_force; } /** *

A value that indicates whether to force the DB cluster to backtrack when * binary logging is enabled. Otherwise, an error occurs when binary logging is * enabled.

*/ inline bool ForceHasBeenSet() const { return m_forceHasBeenSet; } /** *

A value that indicates whether to force the DB cluster to backtrack when * binary logging is enabled. Otherwise, an error occurs when binary logging is * enabled.

*/ inline void SetForce(bool value) { m_forceHasBeenSet = true; m_force = value; } /** *

A value that indicates whether to force the DB cluster to backtrack when * binary logging is enabled. Otherwise, an error occurs when binary logging is * enabled.

*/ inline BacktrackDBClusterRequest& WithForce(bool value) { SetForce(value); return *this;} /** *

A value that indicates whether to backtrack the DB cluster to the earliest * possible backtrack time when BacktrackTo is set to a timestamp earlier * than the earliest backtrack time. When this parameter is disabled and * BacktrackTo is set to a timestamp earlier than the earliest backtrack * time, an error occurs.

*/ inline bool GetUseEarliestTimeOnPointInTimeUnavailable() const{ return m_useEarliestTimeOnPointInTimeUnavailable; } /** *

A value that indicates whether to backtrack the DB cluster to the earliest * possible backtrack time when BacktrackTo is set to a timestamp earlier * than the earliest backtrack time. When this parameter is disabled and * BacktrackTo is set to a timestamp earlier than the earliest backtrack * time, an error occurs.

*/ inline bool UseEarliestTimeOnPointInTimeUnavailableHasBeenSet() const { return m_useEarliestTimeOnPointInTimeUnavailableHasBeenSet; } /** *

A value that indicates whether to backtrack the DB cluster to the earliest * possible backtrack time when BacktrackTo is set to a timestamp earlier * than the earliest backtrack time. When this parameter is disabled and * BacktrackTo is set to a timestamp earlier than the earliest backtrack * time, an error occurs.

*/ inline void SetUseEarliestTimeOnPointInTimeUnavailable(bool value) { m_useEarliestTimeOnPointInTimeUnavailableHasBeenSet = true; m_useEarliestTimeOnPointInTimeUnavailable = value; } /** *

A value that indicates whether to backtrack the DB cluster to the earliest * possible backtrack time when BacktrackTo is set to a timestamp earlier * than the earliest backtrack time. When this parameter is disabled and * BacktrackTo is set to a timestamp earlier than the earliest backtrack * time, an error occurs.

*/ inline BacktrackDBClusterRequest& WithUseEarliestTimeOnPointInTimeUnavailable(bool value) { SetUseEarliestTimeOnPointInTimeUnavailable(value); return *this;} private: Aws::String m_dBClusterIdentifier; bool m_dBClusterIdentifierHasBeenSet = false; Aws::Utils::DateTime m_backtrackTo; bool m_backtrackToHasBeenSet = false; bool m_force; bool m_forceHasBeenSet = false; bool m_useEarliestTimeOnPointInTimeUnavailable; bool m_useEarliestTimeOnPointInTimeUnavailableHasBeenSet = false; }; } // namespace Model } // namespace RDS } // namespace Aws