/** * 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 RDS { namespace Model { /** */ class SwitchoverBlueGreenDeploymentRequest : public RDSRequest { public: AWS_RDS_API SwitchoverBlueGreenDeploymentRequest(); // 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 "SwitchoverBlueGreenDeployment"; } AWS_RDS_API Aws::String SerializePayload() const override; protected: AWS_RDS_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The unique identifier of the blue/green deployment.

Constraints:

*
  • Must match an existing blue/green deployment identifier.

  • *
*/ inline const Aws::String& GetBlueGreenDeploymentIdentifier() const{ return m_blueGreenDeploymentIdentifier; } /** *

The unique identifier of the blue/green deployment.

Constraints:

*
  • Must match an existing blue/green deployment identifier.

  • *
*/ inline bool BlueGreenDeploymentIdentifierHasBeenSet() const { return m_blueGreenDeploymentIdentifierHasBeenSet; } /** *

The unique identifier of the blue/green deployment.

Constraints:

*
  • Must match an existing blue/green deployment identifier.

  • *
*/ inline void SetBlueGreenDeploymentIdentifier(const Aws::String& value) { m_blueGreenDeploymentIdentifierHasBeenSet = true; m_blueGreenDeploymentIdentifier = value; } /** *

The unique identifier of the blue/green deployment.

Constraints:

*
  • Must match an existing blue/green deployment identifier.

  • *
*/ inline void SetBlueGreenDeploymentIdentifier(Aws::String&& value) { m_blueGreenDeploymentIdentifierHasBeenSet = true; m_blueGreenDeploymentIdentifier = std::move(value); } /** *

The unique identifier of the blue/green deployment.

Constraints:

*
  • Must match an existing blue/green deployment identifier.

  • *
*/ inline void SetBlueGreenDeploymentIdentifier(const char* value) { m_blueGreenDeploymentIdentifierHasBeenSet = true; m_blueGreenDeploymentIdentifier.assign(value); } /** *

The unique identifier of the blue/green deployment.

Constraints:

*
  • Must match an existing blue/green deployment identifier.

  • *
*/ inline SwitchoverBlueGreenDeploymentRequest& WithBlueGreenDeploymentIdentifier(const Aws::String& value) { SetBlueGreenDeploymentIdentifier(value); return *this;} /** *

The unique identifier of the blue/green deployment.

Constraints:

*
  • Must match an existing blue/green deployment identifier.

  • *
*/ inline SwitchoverBlueGreenDeploymentRequest& WithBlueGreenDeploymentIdentifier(Aws::String&& value) { SetBlueGreenDeploymentIdentifier(std::move(value)); return *this;} /** *

The unique identifier of the blue/green deployment.

Constraints:

*
  • Must match an existing blue/green deployment identifier.

  • *
*/ inline SwitchoverBlueGreenDeploymentRequest& WithBlueGreenDeploymentIdentifier(const char* value) { SetBlueGreenDeploymentIdentifier(value); return *this;} /** *

The amount of time, in seconds, for the switchover to complete.

*

Default: 300

If the switchover takes longer than the specified * duration, then any changes are rolled back, and no changes are made to the * environments.

*/ inline int GetSwitchoverTimeout() const{ return m_switchoverTimeout; } /** *

The amount of time, in seconds, for the switchover to complete.

*

Default: 300

If the switchover takes longer than the specified * duration, then any changes are rolled back, and no changes are made to the * environments.

*/ inline bool SwitchoverTimeoutHasBeenSet() const { return m_switchoverTimeoutHasBeenSet; } /** *

The amount of time, in seconds, for the switchover to complete.

*

Default: 300

If the switchover takes longer than the specified * duration, then any changes are rolled back, and no changes are made to the * environments.

*/ inline void SetSwitchoverTimeout(int value) { m_switchoverTimeoutHasBeenSet = true; m_switchoverTimeout = value; } /** *

The amount of time, in seconds, for the switchover to complete.

*

Default: 300

If the switchover takes longer than the specified * duration, then any changes are rolled back, and no changes are made to the * environments.

*/ inline SwitchoverBlueGreenDeploymentRequest& WithSwitchoverTimeout(int value) { SetSwitchoverTimeout(value); return *this;} private: Aws::String m_blueGreenDeploymentIdentifier; bool m_blueGreenDeploymentIdentifierHasBeenSet = false; int m_switchoverTimeout; bool m_switchoverTimeoutHasBeenSet = false; }; } // namespace Model } // namespace RDS } // namespace Aws