/** * 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 DeleteBlueGreenDeploymentRequest : public RDSRequest { public: AWS_RDS_API DeleteBlueGreenDeploymentRequest(); // 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 "DeleteBlueGreenDeployment"; } 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 to delete. This parameter * isn't case-sensitive.

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 to delete. This parameter * isn't case-sensitive.

Constraints:

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

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

The unique identifier of the blue/green deployment to delete. This parameter * isn't case-sensitive.

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 to delete. This parameter * isn't case-sensitive.

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 to delete. This parameter * isn't case-sensitive.

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 to delete. This parameter * isn't case-sensitive.

Constraints:

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

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

The unique identifier of the blue/green deployment to delete. This parameter * isn't case-sensitive.

Constraints:

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

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

The unique identifier of the blue/green deployment to delete. This parameter * isn't case-sensitive.

Constraints:

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

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

Specifies whether to delete the resources in the green environment. You can't * specify this option if the blue/green deployment status * is SWITCHOVER_COMPLETED.

*/ inline bool GetDeleteTarget() const{ return m_deleteTarget; } /** *

Specifies whether to delete the resources in the green environment. You can't * specify this option if the blue/green deployment status * is SWITCHOVER_COMPLETED.

*/ inline bool DeleteTargetHasBeenSet() const { return m_deleteTargetHasBeenSet; } /** *

Specifies whether to delete the resources in the green environment. You can't * specify this option if the blue/green deployment status * is SWITCHOVER_COMPLETED.

*/ inline void SetDeleteTarget(bool value) { m_deleteTargetHasBeenSet = true; m_deleteTarget = value; } /** *

Specifies whether to delete the resources in the green environment. You can't * specify this option if the blue/green deployment status * is SWITCHOVER_COMPLETED.

*/ inline DeleteBlueGreenDeploymentRequest& WithDeleteTarget(bool value) { SetDeleteTarget(value); return *this;} private: Aws::String m_blueGreenDeploymentIdentifier; bool m_blueGreenDeploymentIdentifierHasBeenSet = false; bool m_deleteTarget; bool m_deleteTargetHasBeenSet = false; }; } // namespace Model } // namespace RDS } // namespace Aws