/** * 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 { /** *

See Also:

AWS * API Reference

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

The Amazon Resource Name of the replication config for which to reload * tables.

*/ inline const Aws::String& GetReplicationConfigArn() const{ return m_replicationConfigArn; } /** *

The Amazon Resource Name of the replication config for which to reload * tables.

*/ inline bool ReplicationConfigArnHasBeenSet() const { return m_replicationConfigArnHasBeenSet; } /** *

The Amazon Resource Name of the replication config for which to reload * tables.

*/ inline void SetReplicationConfigArn(const Aws::String& value) { m_replicationConfigArnHasBeenSet = true; m_replicationConfigArn = value; } /** *

The Amazon Resource Name of the replication config for which to reload * tables.

*/ inline void SetReplicationConfigArn(Aws::String&& value) { m_replicationConfigArnHasBeenSet = true; m_replicationConfigArn = std::move(value); } /** *

The Amazon Resource Name of the replication config for which to reload * tables.

*/ inline void SetReplicationConfigArn(const char* value) { m_replicationConfigArnHasBeenSet = true; m_replicationConfigArn.assign(value); } /** *

The Amazon Resource Name of the replication config for which to reload * tables.

*/ inline ReloadReplicationTablesRequest& WithReplicationConfigArn(const Aws::String& value) { SetReplicationConfigArn(value); return *this;} /** *

The Amazon Resource Name of the replication config for which to reload * tables.

*/ inline ReloadReplicationTablesRequest& WithReplicationConfigArn(Aws::String&& value) { SetReplicationConfigArn(std::move(value)); return *this;} /** *

The Amazon Resource Name of the replication config for which to reload * tables.

*/ inline ReloadReplicationTablesRequest& WithReplicationConfigArn(const char* value) { SetReplicationConfigArn(value); return *this;} /** *

The list of tables to reload.

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

The list of tables to reload.

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

The list of tables to reload.

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

The list of tables to reload.

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

The list of tables to reload.

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

The list of tables to reload.

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

The list of tables to reload.

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

The list of tables to reload.

*/ inline ReloadReplicationTablesRequest& 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 replication.

*/ 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 replication.

*/ 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 replication.

*/ 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 replication.

*/ 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 replication.

*/ inline ReloadReplicationTablesRequest& 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 replication.

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