/** * 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 DatabaseMigrationService { namespace Model { /** */ class ReloadTablesRequest : public DatabaseMigrationServiceRequest { public: AWS_DATABASEMIGRATIONSERVICE_API ReloadTablesRequest(); // 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 "ReloadTables"; } AWS_DATABASEMIGRATIONSERVICE_API Aws::String SerializePayload() const override; AWS_DATABASEMIGRATIONSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The Amazon Resource Name (ARN) of the replication task.

*/ inline const Aws::String& GetReplicationTaskArn() const{ return m_replicationTaskArn; } /** *

The Amazon Resource Name (ARN) of the replication task.

*/ inline bool ReplicationTaskArnHasBeenSet() const { return m_replicationTaskArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the replication task.

*/ inline void SetReplicationTaskArn(const Aws::String& value) { m_replicationTaskArnHasBeenSet = true; m_replicationTaskArn = value; } /** *

The Amazon Resource Name (ARN) of the replication task.

*/ inline void SetReplicationTaskArn(Aws::String&& value) { m_replicationTaskArnHasBeenSet = true; m_replicationTaskArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the replication task.

*/ inline void SetReplicationTaskArn(const char* value) { m_replicationTaskArnHasBeenSet = true; m_replicationTaskArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the replication task.

*/ inline ReloadTablesRequest& WithReplicationTaskArn(const Aws::String& value) { SetReplicationTaskArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the replication task.

*/ inline ReloadTablesRequest& WithReplicationTaskArn(Aws::String&& value) { SetReplicationTaskArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the replication task.

*/ inline ReloadTablesRequest& WithReplicationTaskArn(const char* value) { SetReplicationTaskArn(value); return *this;} /** *

The name and schema of the table to be reloaded.

*/ inline const Aws::Vector& GetTablesToReload() const{ return m_tablesToReload; } /** *

The name and schema of the table to be reloaded.

*/ inline bool TablesToReloadHasBeenSet() const { return m_tablesToReloadHasBeenSet; } /** *

The name and schema of the table to be reloaded.

*/ inline void SetTablesToReload(const Aws::Vector& value) { m_tablesToReloadHasBeenSet = true; m_tablesToReload = value; } /** *

The name and schema of the table to be reloaded.

*/ inline void SetTablesToReload(Aws::Vector&& value) { m_tablesToReloadHasBeenSet = true; m_tablesToReload = std::move(value); } /** *

The name and schema of the table to be reloaded.

*/ inline ReloadTablesRequest& WithTablesToReload(const Aws::Vector& value) { SetTablesToReload(value); return *this;} /** *

The name and schema of the table to be reloaded.

*/ inline ReloadTablesRequest& WithTablesToReload(Aws::Vector&& value) { SetTablesToReload(std::move(value)); return *this;} /** *

The name and schema of the table to be reloaded.

*/ inline ReloadTablesRequest& AddTablesToReload(const TableToReload& value) { m_tablesToReloadHasBeenSet = true; m_tablesToReload.push_back(value); return *this; } /** *

The name and schema of the table to be reloaded.

*/ inline ReloadTablesRequest& AddTablesToReload(TableToReload&& value) { m_tablesToReloadHasBeenSet = true; m_tablesToReload.push_back(std::move(value)); return *this; } /** *

Options for reload. Specify data-reload to reload the data and * re-validate it if validation is enabled. Specify validate-only to * re-validate the table. This option applies only when validation is enabled for * the task.

Valid values: data-reload, validate-only

Default value * is data-reload.

*/ inline const ReloadOptionValue& GetReloadOption() const{ return m_reloadOption; } /** *

Options for reload. Specify data-reload to reload the data and * re-validate it if validation is enabled. Specify validate-only to * re-validate the table. This option applies only when validation is enabled for * the task.

Valid values: data-reload, validate-only

Default value * is data-reload.

*/ inline bool ReloadOptionHasBeenSet() const { return m_reloadOptionHasBeenSet; } /** *

Options for reload. Specify data-reload to reload the data and * re-validate it if validation is enabled. Specify validate-only to * re-validate the table. This option applies only when validation is enabled for * the task.

Valid values: data-reload, validate-only

Default value * is data-reload.

*/ inline void SetReloadOption(const ReloadOptionValue& value) { m_reloadOptionHasBeenSet = true; m_reloadOption = value; } /** *

Options for reload. Specify data-reload to reload the data and * re-validate it if validation is enabled. Specify validate-only to * re-validate the table. This option applies only when validation is enabled for * the task.

Valid values: data-reload, validate-only

Default value * is data-reload.

*/ inline void SetReloadOption(ReloadOptionValue&& value) { m_reloadOptionHasBeenSet = true; m_reloadOption = std::move(value); } /** *

Options for reload. Specify data-reload to reload the data and * re-validate it if validation is enabled. Specify validate-only to * re-validate the table. This option applies only when validation is enabled for * the task.

Valid values: data-reload, validate-only

Default value * is data-reload.

*/ inline ReloadTablesRequest& WithReloadOption(const ReloadOptionValue& value) { SetReloadOption(value); return *this;} /** *

Options for reload. Specify data-reload to reload the data and * re-validate it if validation is enabled. Specify validate-only to * re-validate the table. This option applies only when validation is enabled for * the task.

Valid values: data-reload, validate-only

Default value * is data-reload.

*/ inline ReloadTablesRequest& WithReloadOption(ReloadOptionValue&& value) { SetReloadOption(std::move(value)); return *this;} private: Aws::String m_replicationTaskArn; bool m_replicationTaskArnHasBeenSet = false; Aws::Vector m_tablesToReload; bool m_tablesToReloadHasBeenSet = false; ReloadOptionValue m_reloadOption; bool m_reloadOptionHasBeenSet = false; }; } // namespace Model } // namespace DatabaseMigrationService } // namespace Aws