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

The unique identifier of a kdb environment.

*/ inline const Aws::String& GetEnvironmentId() const{ return m_environmentId; } /** *

The unique identifier of a kdb environment.

*/ inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; } /** *

The unique identifier of a kdb environment.

*/ inline void SetEnvironmentId(const Aws::String& value) { m_environmentIdHasBeenSet = true; m_environmentId = value; } /** *

The unique identifier of a kdb environment.

*/ inline void SetEnvironmentId(Aws::String&& value) { m_environmentIdHasBeenSet = true; m_environmentId = std::move(value); } /** *

The unique identifier of a kdb environment.

*/ inline void SetEnvironmentId(const char* value) { m_environmentIdHasBeenSet = true; m_environmentId.assign(value); } /** *

The unique identifier of a kdb environment.

*/ inline UpdateKxClusterDatabasesRequest& WithEnvironmentId(const Aws::String& value) { SetEnvironmentId(value); return *this;} /** *

The unique identifier of a kdb environment.

*/ inline UpdateKxClusterDatabasesRequest& WithEnvironmentId(Aws::String&& value) { SetEnvironmentId(std::move(value)); return *this;} /** *

The unique identifier of a kdb environment.

*/ inline UpdateKxClusterDatabasesRequest& WithEnvironmentId(const char* value) { SetEnvironmentId(value); return *this;} /** *

A unique name for the cluster that you want to modify.

*/ inline const Aws::String& GetClusterName() const{ return m_clusterName; } /** *

A unique name for the cluster that you want to modify.

*/ inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; } /** *

A unique name for the cluster that you want to modify.

*/ inline void SetClusterName(const Aws::String& value) { m_clusterNameHasBeenSet = true; m_clusterName = value; } /** *

A unique name for the cluster that you want to modify.

*/ inline void SetClusterName(Aws::String&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::move(value); } /** *

A unique name for the cluster that you want to modify.

*/ inline void SetClusterName(const char* value) { m_clusterNameHasBeenSet = true; m_clusterName.assign(value); } /** *

A unique name for the cluster that you want to modify.

*/ inline UpdateKxClusterDatabasesRequest& WithClusterName(const Aws::String& value) { SetClusterName(value); return *this;} /** *

A unique name for the cluster that you want to modify.

*/ inline UpdateKxClusterDatabasesRequest& WithClusterName(Aws::String&& value) { SetClusterName(std::move(value)); return *this;} /** *

A unique name for the cluster that you want to modify.

*/ inline UpdateKxClusterDatabasesRequest& WithClusterName(const char* value) { SetClusterName(value); return *this;} /** *

A token that ensures idempotency. This token expires in 10 minutes.

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

A token that ensures idempotency. This token expires in 10 minutes.

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

A token that ensures idempotency. This token expires in 10 minutes.

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

A token that ensures idempotency. This token expires in 10 minutes.

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

A token that ensures idempotency. This token expires in 10 minutes.

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

A token that ensures idempotency. This token expires in 10 minutes.

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

A token that ensures idempotency. This token expires in 10 minutes.

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

A token that ensures idempotency. This token expires in 10 minutes.

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

The structure of databases mounted on the cluster.

*/ inline const Aws::Vector& GetDatabases() const{ return m_databases; } /** *

The structure of databases mounted on the cluster.

*/ inline bool DatabasesHasBeenSet() const { return m_databasesHasBeenSet; } /** *

The structure of databases mounted on the cluster.

*/ inline void SetDatabases(const Aws::Vector& value) { m_databasesHasBeenSet = true; m_databases = value; } /** *

The structure of databases mounted on the cluster.

*/ inline void SetDatabases(Aws::Vector&& value) { m_databasesHasBeenSet = true; m_databases = std::move(value); } /** *

The structure of databases mounted on the cluster.

*/ inline UpdateKxClusterDatabasesRequest& WithDatabases(const Aws::Vector& value) { SetDatabases(value); return *this;} /** *

The structure of databases mounted on the cluster.

*/ inline UpdateKxClusterDatabasesRequest& WithDatabases(Aws::Vector&& value) { SetDatabases(std::move(value)); return *this;} /** *

The structure of databases mounted on the cluster.

*/ inline UpdateKxClusterDatabasesRequest& AddDatabases(const KxDatabaseConfiguration& value) { m_databasesHasBeenSet = true; m_databases.push_back(value); return *this; } /** *

The structure of databases mounted on the cluster.

*/ inline UpdateKxClusterDatabasesRequest& AddDatabases(KxDatabaseConfiguration&& value) { m_databasesHasBeenSet = true; m_databases.push_back(std::move(value)); return *this; } private: Aws::String m_environmentId; bool m_environmentIdHasBeenSet = false; Aws::String m_clusterName; bool m_clusterNameHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; Aws::Vector m_databases; bool m_databasesHasBeenSet = false; }; } // namespace Model } // namespace finspace } // namespace Aws