/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace DocDBElastic { namespace Model { /** */ class UpdateClusterRequest : public DocDBElasticRequest { public: AWS_DOCDBELASTIC_API UpdateClusterRequest(); // 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 "UpdateCluster"; } AWS_DOCDBELASTIC_API Aws::String SerializePayload() const override; /** *

The password for the Elastic DocumentDB cluster administrator. This password * can contain any printable ASCII character except forward slash (/), double quote * ("), or the "at" symbol (@).

Constraints: Must contain from 8 to * 100 characters.

*/ inline const Aws::String& GetAdminUserPassword() const{ return m_adminUserPassword; } /** *

The password for the Elastic DocumentDB cluster administrator. This password * can contain any printable ASCII character except forward slash (/), double quote * ("), or the "at" symbol (@).

Constraints: Must contain from 8 to * 100 characters.

*/ inline bool AdminUserPasswordHasBeenSet() const { return m_adminUserPasswordHasBeenSet; } /** *

The password for the Elastic DocumentDB cluster administrator. This password * can contain any printable ASCII character except forward slash (/), double quote * ("), or the "at" symbol (@).

Constraints: Must contain from 8 to * 100 characters.

*/ inline void SetAdminUserPassword(const Aws::String& value) { m_adminUserPasswordHasBeenSet = true; m_adminUserPassword = value; } /** *

The password for the Elastic DocumentDB cluster administrator. This password * can contain any printable ASCII character except forward slash (/), double quote * ("), or the "at" symbol (@).

Constraints: Must contain from 8 to * 100 characters.

*/ inline void SetAdminUserPassword(Aws::String&& value) { m_adminUserPasswordHasBeenSet = true; m_adminUserPassword = std::move(value); } /** *

The password for the Elastic DocumentDB cluster administrator. This password * can contain any printable ASCII character except forward slash (/), double quote * ("), or the "at" symbol (@).

Constraints: Must contain from 8 to * 100 characters.

*/ inline void SetAdminUserPassword(const char* value) { m_adminUserPasswordHasBeenSet = true; m_adminUserPassword.assign(value); } /** *

The password for the Elastic DocumentDB cluster administrator. This password * can contain any printable ASCII character except forward slash (/), double quote * ("), or the "at" symbol (@).

Constraints: Must contain from 8 to * 100 characters.

*/ inline UpdateClusterRequest& WithAdminUserPassword(const Aws::String& value) { SetAdminUserPassword(value); return *this;} /** *

The password for the Elastic DocumentDB cluster administrator. This password * can contain any printable ASCII character except forward slash (/), double quote * ("), or the "at" symbol (@).

Constraints: Must contain from 8 to * 100 characters.

*/ inline UpdateClusterRequest& WithAdminUserPassword(Aws::String&& value) { SetAdminUserPassword(std::move(value)); return *this;} /** *

The password for the Elastic DocumentDB cluster administrator. This password * can contain any printable ASCII character except forward slash (/), double quote * ("), or the "at" symbol (@).

Constraints: Must contain from 8 to * 100 characters.

*/ inline UpdateClusterRequest& WithAdminUserPassword(const char* value) { SetAdminUserPassword(value); return *this;} /** *

The authentication type for the Elastic DocumentDB cluster.

*/ inline const Auth& GetAuthType() const{ return m_authType; } /** *

The authentication type for the Elastic DocumentDB cluster.

*/ inline bool AuthTypeHasBeenSet() const { return m_authTypeHasBeenSet; } /** *

The authentication type for the Elastic DocumentDB cluster.

*/ inline void SetAuthType(const Auth& value) { m_authTypeHasBeenSet = true; m_authType = value; } /** *

The authentication type for the Elastic DocumentDB cluster.

*/ inline void SetAuthType(Auth&& value) { m_authTypeHasBeenSet = true; m_authType = std::move(value); } /** *

The authentication type for the Elastic DocumentDB cluster.

*/ inline UpdateClusterRequest& WithAuthType(const Auth& value) { SetAuthType(value); return *this;} /** *

The authentication type for the Elastic DocumentDB cluster.

*/ inline UpdateClusterRequest& WithAuthType(Auth&& value) { SetAuthType(std::move(value)); return *this;} /** *

The client token for the Elastic DocumentDB cluster.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

The client token for the Elastic DocumentDB cluster.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

The client token for the Elastic DocumentDB cluster.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

The client token for the Elastic DocumentDB cluster.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

The client token for the Elastic DocumentDB cluster.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

The client token for the Elastic DocumentDB cluster.

*/ inline UpdateClusterRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

The client token for the Elastic DocumentDB cluster.

*/ inline UpdateClusterRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

The client token for the Elastic DocumentDB cluster.

*/ inline UpdateClusterRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

The arn of the Elastic DocumentDB cluster.

*/ inline const Aws::String& GetClusterArn() const{ return m_clusterArn; } /** *

The arn of the Elastic DocumentDB cluster.

*/ inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; } /** *

The arn of the Elastic DocumentDB cluster.

*/ inline void SetClusterArn(const Aws::String& value) { m_clusterArnHasBeenSet = true; m_clusterArn = value; } /** *

The arn of the Elastic DocumentDB cluster.

*/ inline void SetClusterArn(Aws::String&& value) { m_clusterArnHasBeenSet = true; m_clusterArn = std::move(value); } /** *

The arn of the Elastic DocumentDB cluster.

*/ inline void SetClusterArn(const char* value) { m_clusterArnHasBeenSet = true; m_clusterArn.assign(value); } /** *

The arn of the Elastic DocumentDB cluster.

*/ inline UpdateClusterRequest& WithClusterArn(const Aws::String& value) { SetClusterArn(value); return *this;} /** *

The arn of the Elastic DocumentDB cluster.

*/ inline UpdateClusterRequest& WithClusterArn(Aws::String&& value) { SetClusterArn(std::move(value)); return *this;} /** *

The arn of the Elastic DocumentDB cluster.

*/ inline UpdateClusterRequest& WithClusterArn(const char* value) { SetClusterArn(value); return *this;} /** *

The weekly time range during which system maintenance can occur, in Universal * Coordinated Time (UTC).

Format: * ddd:hh24:mi-ddd:hh24:mi

Default: a 30-minute window * selected at random from an 8-hour block of time for each Amazon Web Services * Region, occurring on a random day of the week.

Valid days: Mon, * Tue, Wed, Thu, Fri, Sat, Sun

Constraints: Minimum 30-minute * window.

*/ inline const Aws::String& GetPreferredMaintenanceWindow() const{ return m_preferredMaintenanceWindow; } /** *

The weekly time range during which system maintenance can occur, in Universal * Coordinated Time (UTC).

Format: * ddd:hh24:mi-ddd:hh24:mi

Default: a 30-minute window * selected at random from an 8-hour block of time for each Amazon Web Services * Region, occurring on a random day of the week.

Valid days: Mon, * Tue, Wed, Thu, Fri, Sat, Sun

Constraints: Minimum 30-minute * window.

*/ inline bool PreferredMaintenanceWindowHasBeenSet() const { return m_preferredMaintenanceWindowHasBeenSet; } /** *

The weekly time range during which system maintenance can occur, in Universal * Coordinated Time (UTC).

Format: * ddd:hh24:mi-ddd:hh24:mi

Default: a 30-minute window * selected at random from an 8-hour block of time for each Amazon Web Services * Region, occurring on a random day of the week.

Valid days: Mon, * Tue, Wed, Thu, Fri, Sat, Sun

Constraints: Minimum 30-minute * window.

*/ inline void SetPreferredMaintenanceWindow(const Aws::String& value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow = value; } /** *

The weekly time range during which system maintenance can occur, in Universal * Coordinated Time (UTC).

Format: * ddd:hh24:mi-ddd:hh24:mi

Default: a 30-minute window * selected at random from an 8-hour block of time for each Amazon Web Services * Region, occurring on a random day of the week.

Valid days: Mon, * Tue, Wed, Thu, Fri, Sat, Sun

Constraints: Minimum 30-minute * window.

*/ inline void SetPreferredMaintenanceWindow(Aws::String&& value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow = std::move(value); } /** *

The weekly time range during which system maintenance can occur, in Universal * Coordinated Time (UTC).

Format: * ddd:hh24:mi-ddd:hh24:mi

Default: a 30-minute window * selected at random from an 8-hour block of time for each Amazon Web Services * Region, occurring on a random day of the week.

Valid days: Mon, * Tue, Wed, Thu, Fri, Sat, Sun

Constraints: Minimum 30-minute * window.

*/ inline void SetPreferredMaintenanceWindow(const char* value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow.assign(value); } /** *

The weekly time range during which system maintenance can occur, in Universal * Coordinated Time (UTC).

Format: * ddd:hh24:mi-ddd:hh24:mi

Default: a 30-minute window * selected at random from an 8-hour block of time for each Amazon Web Services * Region, occurring on a random day of the week.

Valid days: Mon, * Tue, Wed, Thu, Fri, Sat, Sun

Constraints: Minimum 30-minute * window.

*/ inline UpdateClusterRequest& WithPreferredMaintenanceWindow(const Aws::String& value) { SetPreferredMaintenanceWindow(value); return *this;} /** *

The weekly time range during which system maintenance can occur, in Universal * Coordinated Time (UTC).

Format: * ddd:hh24:mi-ddd:hh24:mi

Default: a 30-minute window * selected at random from an 8-hour block of time for each Amazon Web Services * Region, occurring on a random day of the week.

Valid days: Mon, * Tue, Wed, Thu, Fri, Sat, Sun

Constraints: Minimum 30-minute * window.

*/ inline UpdateClusterRequest& WithPreferredMaintenanceWindow(Aws::String&& value) { SetPreferredMaintenanceWindow(std::move(value)); return *this;} /** *

The weekly time range during which system maintenance can occur, in Universal * Coordinated Time (UTC).

Format: * ddd:hh24:mi-ddd:hh24:mi

Default: a 30-minute window * selected at random from an 8-hour block of time for each Amazon Web Services * Region, occurring on a random day of the week.

Valid days: Mon, * Tue, Wed, Thu, Fri, Sat, Sun

Constraints: Minimum 30-minute * window.

*/ inline UpdateClusterRequest& WithPreferredMaintenanceWindow(const char* value) { SetPreferredMaintenanceWindow(value); return *this;} /** *

The capacity of each shard in the Elastic DocumentDB cluster.

*/ inline int GetShardCapacity() const{ return m_shardCapacity; } /** *

The capacity of each shard in the Elastic DocumentDB cluster.

*/ inline bool ShardCapacityHasBeenSet() const { return m_shardCapacityHasBeenSet; } /** *

The capacity of each shard in the Elastic DocumentDB cluster.

*/ inline void SetShardCapacity(int value) { m_shardCapacityHasBeenSet = true; m_shardCapacity = value; } /** *

The capacity of each shard in the Elastic DocumentDB cluster.

*/ inline UpdateClusterRequest& WithShardCapacity(int value) { SetShardCapacity(value); return *this;} /** *

The number of shards to create in the Elastic DocumentDB cluster.

*/ inline int GetShardCount() const{ return m_shardCount; } /** *

The number of shards to create in the Elastic DocumentDB cluster.

*/ inline bool ShardCountHasBeenSet() const { return m_shardCountHasBeenSet; } /** *

The number of shards to create in the Elastic DocumentDB cluster.

*/ inline void SetShardCount(int value) { m_shardCountHasBeenSet = true; m_shardCount = value; } /** *

The number of shards to create in the Elastic DocumentDB cluster.

*/ inline UpdateClusterRequest& WithShardCount(int value) { SetShardCount(value); return *this;} /** *

The number of shards to create in the Elastic DocumentDB cluster.

*/ inline const Aws::Vector& GetSubnetIds() const{ return m_subnetIds; } /** *

The number of shards to create in the Elastic DocumentDB cluster.

*/ inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; } /** *

The number of shards to create in the Elastic DocumentDB cluster.

*/ inline void SetSubnetIds(const Aws::Vector& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; } /** *

The number of shards to create in the Elastic DocumentDB cluster.

*/ inline void SetSubnetIds(Aws::Vector&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); } /** *

The number of shards to create in the Elastic DocumentDB cluster.

*/ inline UpdateClusterRequest& WithSubnetIds(const Aws::Vector& value) { SetSubnetIds(value); return *this;} /** *

The number of shards to create in the Elastic DocumentDB cluster.

*/ inline UpdateClusterRequest& WithSubnetIds(Aws::Vector&& value) { SetSubnetIds(std::move(value)); return *this;} /** *

The number of shards to create in the Elastic DocumentDB cluster.

*/ inline UpdateClusterRequest& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; } /** *

The number of shards to create in the Elastic DocumentDB cluster.

*/ inline UpdateClusterRequest& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; } /** *

The number of shards to create in the Elastic DocumentDB cluster.

*/ inline UpdateClusterRequest& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; } /** *

A list of EC2 VPC security groups to associate with the new Elastic * DocumentDB cluster.

*/ inline const Aws::Vector& GetVpcSecurityGroupIds() const{ return m_vpcSecurityGroupIds; } /** *

A list of EC2 VPC security groups to associate with the new Elastic * DocumentDB cluster.

*/ inline bool VpcSecurityGroupIdsHasBeenSet() const { return m_vpcSecurityGroupIdsHasBeenSet; } /** *

A list of EC2 VPC security groups to associate with the new Elastic * DocumentDB cluster.

*/ inline void SetVpcSecurityGroupIds(const Aws::Vector& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds = value; } /** *

A list of EC2 VPC security groups to associate with the new Elastic * DocumentDB cluster.

*/ inline void SetVpcSecurityGroupIds(Aws::Vector&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds = std::move(value); } /** *

A list of EC2 VPC security groups to associate with the new Elastic * DocumentDB cluster.

*/ inline UpdateClusterRequest& WithVpcSecurityGroupIds(const Aws::Vector& value) { SetVpcSecurityGroupIds(value); return *this;} /** *

A list of EC2 VPC security groups to associate with the new Elastic * DocumentDB cluster.

*/ inline UpdateClusterRequest& WithVpcSecurityGroupIds(Aws::Vector&& value) { SetVpcSecurityGroupIds(std::move(value)); return *this;} /** *

A list of EC2 VPC security groups to associate with the new Elastic * DocumentDB cluster.

*/ inline UpdateClusterRequest& AddVpcSecurityGroupIds(const Aws::String& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(value); return *this; } /** *

A list of EC2 VPC security groups to associate with the new Elastic * DocumentDB cluster.

*/ inline UpdateClusterRequest& AddVpcSecurityGroupIds(Aws::String&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(std::move(value)); return *this; } /** *

A list of EC2 VPC security groups to associate with the new Elastic * DocumentDB cluster.

*/ inline UpdateClusterRequest& AddVpcSecurityGroupIds(const char* value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(value); return *this; } private: Aws::String m_adminUserPassword; bool m_adminUserPasswordHasBeenSet = false; Auth m_authType; bool m_authTypeHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; Aws::String m_clusterArn; bool m_clusterArnHasBeenSet = false; Aws::String m_preferredMaintenanceWindow; bool m_preferredMaintenanceWindowHasBeenSet = false; int m_shardCapacity; bool m_shardCapacityHasBeenSet = false; int m_shardCount; bool m_shardCountHasBeenSet = false; Aws::Vector m_subnetIds; bool m_subnetIdsHasBeenSet = false; Aws::Vector m_vpcSecurityGroupIds; bool m_vpcSecurityGroupIdsHasBeenSet = false; }; } // namespace Model } // namespace DocDBElastic } // namespace Aws