/** * 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 ModifyCurrentDBClusterCapacityRequest : public RDSRequest { public: AWS_RDS_API ModifyCurrentDBClusterCapacityRequest(); // 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 "ModifyCurrentDBClusterCapacity"; } 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 for the cluster being modified. This parameter * isn't case-sensitive.

Constraints:

  • Must match the * identifier of an existing DB cluster.

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

The DB cluster identifier for the cluster being modified. This parameter * isn't case-sensitive.

Constraints:

  • Must match the * identifier of an existing DB cluster.

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

The DB cluster identifier for the cluster being modified. This parameter * isn't case-sensitive.

Constraints:

  • Must match the * identifier of an existing DB cluster.

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

The DB cluster identifier for the cluster being modified. This parameter * isn't case-sensitive.

Constraints:

  • Must match the * identifier of an existing DB cluster.

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

The DB cluster identifier for the cluster being modified. This parameter * isn't case-sensitive.

Constraints:

  • Must match the * identifier of an existing DB cluster.

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

The DB cluster identifier for the cluster being modified. This parameter * isn't case-sensitive.

Constraints:

  • Must match the * identifier of an existing DB cluster.

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

The DB cluster identifier for the cluster being modified. This parameter * isn't case-sensitive.

Constraints:

  • Must match the * identifier of an existing DB cluster.

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

The DB cluster identifier for the cluster being modified. This parameter * isn't case-sensitive.

Constraints:

  • Must match the * identifier of an existing DB cluster.

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

The DB cluster capacity.

When you change the capacity of a paused * Aurora Serverless v1 DB cluster, it automatically resumes.

*

Constraints:

  • For Aurora MySQL, valid capacity values are * 1, 2, 4, 8, 16, * 32, 64, 128, and 256.

    *
  • For Aurora PostgreSQL, valid capacity values are 2, * 4, 8, 16, 32, * 64, 192, and 384.

*/ inline int GetCapacity() const{ return m_capacity; } /** *

The DB cluster capacity.

When you change the capacity of a paused * Aurora Serverless v1 DB cluster, it automatically resumes.

*

Constraints:

  • For Aurora MySQL, valid capacity values are * 1, 2, 4, 8, 16, * 32, 64, 128, and 256.

    *
  • For Aurora PostgreSQL, valid capacity values are 2, * 4, 8, 16, 32, * 64, 192, and 384.

*/ inline bool CapacityHasBeenSet() const { return m_capacityHasBeenSet; } /** *

The DB cluster capacity.

When you change the capacity of a paused * Aurora Serverless v1 DB cluster, it automatically resumes.

*

Constraints:

  • For Aurora MySQL, valid capacity values are * 1, 2, 4, 8, 16, * 32, 64, 128, and 256.

    *
  • For Aurora PostgreSQL, valid capacity values are 2, * 4, 8, 16, 32, * 64, 192, and 384.

*/ inline void SetCapacity(int value) { m_capacityHasBeenSet = true; m_capacity = value; } /** *

The DB cluster capacity.

When you change the capacity of a paused * Aurora Serverless v1 DB cluster, it automatically resumes.

*

Constraints:

  • For Aurora MySQL, valid capacity values are * 1, 2, 4, 8, 16, * 32, 64, 128, and 256.

    *
  • For Aurora PostgreSQL, valid capacity values are 2, * 4, 8, 16, 32, * 64, 192, and 384.

*/ inline ModifyCurrentDBClusterCapacityRequest& WithCapacity(int value) { SetCapacity(value); return *this;} /** *

The amount of time, in seconds, that Aurora Serverless v1 tries to find a * scaling point to perform seamless scaling before enforcing the timeout action. * The default is 300.

Specify a value between 10 and 600 seconds.

*/ inline int GetSecondsBeforeTimeout() const{ return m_secondsBeforeTimeout; } /** *

The amount of time, in seconds, that Aurora Serverless v1 tries to find a * scaling point to perform seamless scaling before enforcing the timeout action. * The default is 300.

Specify a value between 10 and 600 seconds.

*/ inline bool SecondsBeforeTimeoutHasBeenSet() const { return m_secondsBeforeTimeoutHasBeenSet; } /** *

The amount of time, in seconds, that Aurora Serverless v1 tries to find a * scaling point to perform seamless scaling before enforcing the timeout action. * The default is 300.

Specify a value between 10 and 600 seconds.

*/ inline void SetSecondsBeforeTimeout(int value) { m_secondsBeforeTimeoutHasBeenSet = true; m_secondsBeforeTimeout = value; } /** *

The amount of time, in seconds, that Aurora Serverless v1 tries to find a * scaling point to perform seamless scaling before enforcing the timeout action. * The default is 300.

Specify a value between 10 and 600 seconds.

*/ inline ModifyCurrentDBClusterCapacityRequest& WithSecondsBeforeTimeout(int value) { SetSecondsBeforeTimeout(value); return *this;} /** *

The action to take when the timeout is reached, either * ForceApplyCapacityChange or * RollbackCapacityChange.

* ForceApplyCapacityChange, the default, sets the capacity to the * specified value as soon as possible.

RollbackCapacityChange * ignores the capacity change if a scaling point isn't found in the timeout * period.

*/ inline const Aws::String& GetTimeoutAction() const{ return m_timeoutAction; } /** *

The action to take when the timeout is reached, either * ForceApplyCapacityChange or * RollbackCapacityChange.

* ForceApplyCapacityChange, the default, sets the capacity to the * specified value as soon as possible.

RollbackCapacityChange * ignores the capacity change if a scaling point isn't found in the timeout * period.

*/ inline bool TimeoutActionHasBeenSet() const { return m_timeoutActionHasBeenSet; } /** *

The action to take when the timeout is reached, either * ForceApplyCapacityChange or * RollbackCapacityChange.

* ForceApplyCapacityChange, the default, sets the capacity to the * specified value as soon as possible.

RollbackCapacityChange * ignores the capacity change if a scaling point isn't found in the timeout * period.

*/ inline void SetTimeoutAction(const Aws::String& value) { m_timeoutActionHasBeenSet = true; m_timeoutAction = value; } /** *

The action to take when the timeout is reached, either * ForceApplyCapacityChange or * RollbackCapacityChange.

* ForceApplyCapacityChange, the default, sets the capacity to the * specified value as soon as possible.

RollbackCapacityChange * ignores the capacity change if a scaling point isn't found in the timeout * period.

*/ inline void SetTimeoutAction(Aws::String&& value) { m_timeoutActionHasBeenSet = true; m_timeoutAction = std::move(value); } /** *

The action to take when the timeout is reached, either * ForceApplyCapacityChange or * RollbackCapacityChange.

* ForceApplyCapacityChange, the default, sets the capacity to the * specified value as soon as possible.

RollbackCapacityChange * ignores the capacity change if a scaling point isn't found in the timeout * period.

*/ inline void SetTimeoutAction(const char* value) { m_timeoutActionHasBeenSet = true; m_timeoutAction.assign(value); } /** *

The action to take when the timeout is reached, either * ForceApplyCapacityChange or * RollbackCapacityChange.

* ForceApplyCapacityChange, the default, sets the capacity to the * specified value as soon as possible.

RollbackCapacityChange * ignores the capacity change if a scaling point isn't found in the timeout * period.

*/ inline ModifyCurrentDBClusterCapacityRequest& WithTimeoutAction(const Aws::String& value) { SetTimeoutAction(value); return *this;} /** *

The action to take when the timeout is reached, either * ForceApplyCapacityChange or * RollbackCapacityChange.

* ForceApplyCapacityChange, the default, sets the capacity to the * specified value as soon as possible.

RollbackCapacityChange * ignores the capacity change if a scaling point isn't found in the timeout * period.

*/ inline ModifyCurrentDBClusterCapacityRequest& WithTimeoutAction(Aws::String&& value) { SetTimeoutAction(std::move(value)); return *this;} /** *

The action to take when the timeout is reached, either * ForceApplyCapacityChange or * RollbackCapacityChange.

* ForceApplyCapacityChange, the default, sets the capacity to the * specified value as soon as possible.

RollbackCapacityChange * ignores the capacity change if a scaling point isn't found in the timeout * period.

*/ inline ModifyCurrentDBClusterCapacityRequest& WithTimeoutAction(const char* value) { SetTimeoutAction(value); return *this;} private: Aws::String m_dBClusterIdentifier; bool m_dBClusterIdentifierHasBeenSet = false; int m_capacity; bool m_capacityHasBeenSet = false; int m_secondsBeforeTimeout; bool m_secondsBeforeTimeoutHasBeenSet = false; Aws::String m_timeoutAction; bool m_timeoutActionHasBeenSet = false; }; } // namespace Model } // namespace RDS } // namespace Aws