/** * 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 RedshiftServerless { namespace Model { /** */ class RestoreTableFromSnapshotRequest : public RedshiftServerlessRequest { public: AWS_REDSHIFTSERVERLESS_API RestoreTableFromSnapshotRequest(); // 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 "RestoreTableFromSnapshot"; } AWS_REDSHIFTSERVERLESS_API Aws::String SerializePayload() const override; AWS_REDSHIFTSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

Indicates whether name identifiers for database, schema, and table are case * sensitive. If true, the names are case sensitive. If false, the names are not * case sensitive. The default is false.

*/ inline bool GetActivateCaseSensitiveIdentifier() const{ return m_activateCaseSensitiveIdentifier; } /** *

Indicates whether name identifiers for database, schema, and table are case * sensitive. If true, the names are case sensitive. If false, the names are not * case sensitive. The default is false.

*/ inline bool ActivateCaseSensitiveIdentifierHasBeenSet() const { return m_activateCaseSensitiveIdentifierHasBeenSet; } /** *

Indicates whether name identifiers for database, schema, and table are case * sensitive. If true, the names are case sensitive. If false, the names are not * case sensitive. The default is false.

*/ inline void SetActivateCaseSensitiveIdentifier(bool value) { m_activateCaseSensitiveIdentifierHasBeenSet = true; m_activateCaseSensitiveIdentifier = value; } /** *

Indicates whether name identifiers for database, schema, and table are case * sensitive. If true, the names are case sensitive. If false, the names are not * case sensitive. The default is false.

*/ inline RestoreTableFromSnapshotRequest& WithActivateCaseSensitiveIdentifier(bool value) { SetActivateCaseSensitiveIdentifier(value); return *this;} /** *

The namespace of the snapshot to restore from.

*/ inline const Aws::String& GetNamespaceName() const{ return m_namespaceName; } /** *

The namespace of the snapshot to restore from.

*/ inline bool NamespaceNameHasBeenSet() const { return m_namespaceNameHasBeenSet; } /** *

The namespace of the snapshot to restore from.

*/ inline void SetNamespaceName(const Aws::String& value) { m_namespaceNameHasBeenSet = true; m_namespaceName = value; } /** *

The namespace of the snapshot to restore from.

*/ inline void SetNamespaceName(Aws::String&& value) { m_namespaceNameHasBeenSet = true; m_namespaceName = std::move(value); } /** *

The namespace of the snapshot to restore from.

*/ inline void SetNamespaceName(const char* value) { m_namespaceNameHasBeenSet = true; m_namespaceName.assign(value); } /** *

The namespace of the snapshot to restore from.

*/ inline RestoreTableFromSnapshotRequest& WithNamespaceName(const Aws::String& value) { SetNamespaceName(value); return *this;} /** *

The namespace of the snapshot to restore from.

*/ inline RestoreTableFromSnapshotRequest& WithNamespaceName(Aws::String&& value) { SetNamespaceName(std::move(value)); return *this;} /** *

The namespace of the snapshot to restore from.

*/ inline RestoreTableFromSnapshotRequest& WithNamespaceName(const char* value) { SetNamespaceName(value); return *this;} /** *

The name of the table to create from the restore operation.

*/ inline const Aws::String& GetNewTableName() const{ return m_newTableName; } /** *

The name of the table to create from the restore operation.

*/ inline bool NewTableNameHasBeenSet() const { return m_newTableNameHasBeenSet; } /** *

The name of the table to create from the restore operation.

*/ inline void SetNewTableName(const Aws::String& value) { m_newTableNameHasBeenSet = true; m_newTableName = value; } /** *

The name of the table to create from the restore operation.

*/ inline void SetNewTableName(Aws::String&& value) { m_newTableNameHasBeenSet = true; m_newTableName = std::move(value); } /** *

The name of the table to create from the restore operation.

*/ inline void SetNewTableName(const char* value) { m_newTableNameHasBeenSet = true; m_newTableName.assign(value); } /** *

The name of the table to create from the restore operation.

*/ inline RestoreTableFromSnapshotRequest& WithNewTableName(const Aws::String& value) { SetNewTableName(value); return *this;} /** *

The name of the table to create from the restore operation.

*/ inline RestoreTableFromSnapshotRequest& WithNewTableName(Aws::String&& value) { SetNewTableName(std::move(value)); return *this;} /** *

The name of the table to create from the restore operation.

*/ inline RestoreTableFromSnapshotRequest& WithNewTableName(const char* value) { SetNewTableName(value); return *this;} /** *

The name of the snapshot to restore the table from.

*/ inline const Aws::String& GetSnapshotName() const{ return m_snapshotName; } /** *

The name of the snapshot to restore the table from.

*/ inline bool SnapshotNameHasBeenSet() const { return m_snapshotNameHasBeenSet; } /** *

The name of the snapshot to restore the table from.

*/ inline void SetSnapshotName(const Aws::String& value) { m_snapshotNameHasBeenSet = true; m_snapshotName = value; } /** *

The name of the snapshot to restore the table from.

*/ inline void SetSnapshotName(Aws::String&& value) { m_snapshotNameHasBeenSet = true; m_snapshotName = std::move(value); } /** *

The name of the snapshot to restore the table from.

*/ inline void SetSnapshotName(const char* value) { m_snapshotNameHasBeenSet = true; m_snapshotName.assign(value); } /** *

The name of the snapshot to restore the table from.

*/ inline RestoreTableFromSnapshotRequest& WithSnapshotName(const Aws::String& value) { SetSnapshotName(value); return *this;} /** *

The name of the snapshot to restore the table from.

*/ inline RestoreTableFromSnapshotRequest& WithSnapshotName(Aws::String&& value) { SetSnapshotName(std::move(value)); return *this;} /** *

The name of the snapshot to restore the table from.

*/ inline RestoreTableFromSnapshotRequest& WithSnapshotName(const char* value) { SetSnapshotName(value); return *this;} /** *

The name of the source database that contains the table being restored.

*/ inline const Aws::String& GetSourceDatabaseName() const{ return m_sourceDatabaseName; } /** *

The name of the source database that contains the table being restored.

*/ inline bool SourceDatabaseNameHasBeenSet() const { return m_sourceDatabaseNameHasBeenSet; } /** *

The name of the source database that contains the table being restored.

*/ inline void SetSourceDatabaseName(const Aws::String& value) { m_sourceDatabaseNameHasBeenSet = true; m_sourceDatabaseName = value; } /** *

The name of the source database that contains the table being restored.

*/ inline void SetSourceDatabaseName(Aws::String&& value) { m_sourceDatabaseNameHasBeenSet = true; m_sourceDatabaseName = std::move(value); } /** *

The name of the source database that contains the table being restored.

*/ inline void SetSourceDatabaseName(const char* value) { m_sourceDatabaseNameHasBeenSet = true; m_sourceDatabaseName.assign(value); } /** *

The name of the source database that contains the table being restored.

*/ inline RestoreTableFromSnapshotRequest& WithSourceDatabaseName(const Aws::String& value) { SetSourceDatabaseName(value); return *this;} /** *

The name of the source database that contains the table being restored.

*/ inline RestoreTableFromSnapshotRequest& WithSourceDatabaseName(Aws::String&& value) { SetSourceDatabaseName(std::move(value)); return *this;} /** *

The name of the source database that contains the table being restored.

*/ inline RestoreTableFromSnapshotRequest& WithSourceDatabaseName(const char* value) { SetSourceDatabaseName(value); return *this;} /** *

The name of the source schema that contains the table being restored.

*/ inline const Aws::String& GetSourceSchemaName() const{ return m_sourceSchemaName; } /** *

The name of the source schema that contains the table being restored.

*/ inline bool SourceSchemaNameHasBeenSet() const { return m_sourceSchemaNameHasBeenSet; } /** *

The name of the source schema that contains the table being restored.

*/ inline void SetSourceSchemaName(const Aws::String& value) { m_sourceSchemaNameHasBeenSet = true; m_sourceSchemaName = value; } /** *

The name of the source schema that contains the table being restored.

*/ inline void SetSourceSchemaName(Aws::String&& value) { m_sourceSchemaNameHasBeenSet = true; m_sourceSchemaName = std::move(value); } /** *

The name of the source schema that contains the table being restored.

*/ inline void SetSourceSchemaName(const char* value) { m_sourceSchemaNameHasBeenSet = true; m_sourceSchemaName.assign(value); } /** *

The name of the source schema that contains the table being restored.

*/ inline RestoreTableFromSnapshotRequest& WithSourceSchemaName(const Aws::String& value) { SetSourceSchemaName(value); return *this;} /** *

The name of the source schema that contains the table being restored.

*/ inline RestoreTableFromSnapshotRequest& WithSourceSchemaName(Aws::String&& value) { SetSourceSchemaName(std::move(value)); return *this;} /** *

The name of the source schema that contains the table being restored.

*/ inline RestoreTableFromSnapshotRequest& WithSourceSchemaName(const char* value) { SetSourceSchemaName(value); return *this;} /** *

The name of the source table being restored.

*/ inline const Aws::String& GetSourceTableName() const{ return m_sourceTableName; } /** *

The name of the source table being restored.

*/ inline bool SourceTableNameHasBeenSet() const { return m_sourceTableNameHasBeenSet; } /** *

The name of the source table being restored.

*/ inline void SetSourceTableName(const Aws::String& value) { m_sourceTableNameHasBeenSet = true; m_sourceTableName = value; } /** *

The name of the source table being restored.

*/ inline void SetSourceTableName(Aws::String&& value) { m_sourceTableNameHasBeenSet = true; m_sourceTableName = std::move(value); } /** *

The name of the source table being restored.

*/ inline void SetSourceTableName(const char* value) { m_sourceTableNameHasBeenSet = true; m_sourceTableName.assign(value); } /** *

The name of the source table being restored.

*/ inline RestoreTableFromSnapshotRequest& WithSourceTableName(const Aws::String& value) { SetSourceTableName(value); return *this;} /** *

The name of the source table being restored.

*/ inline RestoreTableFromSnapshotRequest& WithSourceTableName(Aws::String&& value) { SetSourceTableName(std::move(value)); return *this;} /** *

The name of the source table being restored.

*/ inline RestoreTableFromSnapshotRequest& WithSourceTableName(const char* value) { SetSourceTableName(value); return *this;} /** *

The name of the database to restore the table to.

*/ inline const Aws::String& GetTargetDatabaseName() const{ return m_targetDatabaseName; } /** *

The name of the database to restore the table to.

*/ inline bool TargetDatabaseNameHasBeenSet() const { return m_targetDatabaseNameHasBeenSet; } /** *

The name of the database to restore the table to.

*/ inline void SetTargetDatabaseName(const Aws::String& value) { m_targetDatabaseNameHasBeenSet = true; m_targetDatabaseName = value; } /** *

The name of the database to restore the table to.

*/ inline void SetTargetDatabaseName(Aws::String&& value) { m_targetDatabaseNameHasBeenSet = true; m_targetDatabaseName = std::move(value); } /** *

The name of the database to restore the table to.

*/ inline void SetTargetDatabaseName(const char* value) { m_targetDatabaseNameHasBeenSet = true; m_targetDatabaseName.assign(value); } /** *

The name of the database to restore the table to.

*/ inline RestoreTableFromSnapshotRequest& WithTargetDatabaseName(const Aws::String& value) { SetTargetDatabaseName(value); return *this;} /** *

The name of the database to restore the table to.

*/ inline RestoreTableFromSnapshotRequest& WithTargetDatabaseName(Aws::String&& value) { SetTargetDatabaseName(std::move(value)); return *this;} /** *

The name of the database to restore the table to.

*/ inline RestoreTableFromSnapshotRequest& WithTargetDatabaseName(const char* value) { SetTargetDatabaseName(value); return *this;} /** *

The name of the schema to restore the table to.

*/ inline const Aws::String& GetTargetSchemaName() const{ return m_targetSchemaName; } /** *

The name of the schema to restore the table to.

*/ inline bool TargetSchemaNameHasBeenSet() const { return m_targetSchemaNameHasBeenSet; } /** *

The name of the schema to restore the table to.

*/ inline void SetTargetSchemaName(const Aws::String& value) { m_targetSchemaNameHasBeenSet = true; m_targetSchemaName = value; } /** *

The name of the schema to restore the table to.

*/ inline void SetTargetSchemaName(Aws::String&& value) { m_targetSchemaNameHasBeenSet = true; m_targetSchemaName = std::move(value); } /** *

The name of the schema to restore the table to.

*/ inline void SetTargetSchemaName(const char* value) { m_targetSchemaNameHasBeenSet = true; m_targetSchemaName.assign(value); } /** *

The name of the schema to restore the table to.

*/ inline RestoreTableFromSnapshotRequest& WithTargetSchemaName(const Aws::String& value) { SetTargetSchemaName(value); return *this;} /** *

The name of the schema to restore the table to.

*/ inline RestoreTableFromSnapshotRequest& WithTargetSchemaName(Aws::String&& value) { SetTargetSchemaName(std::move(value)); return *this;} /** *

The name of the schema to restore the table to.

*/ inline RestoreTableFromSnapshotRequest& WithTargetSchemaName(const char* value) { SetTargetSchemaName(value); return *this;} /** *

The workgroup to restore the table to.

*/ inline const Aws::String& GetWorkgroupName() const{ return m_workgroupName; } /** *

The workgroup to restore the table to.

*/ inline bool WorkgroupNameHasBeenSet() const { return m_workgroupNameHasBeenSet; } /** *

The workgroup to restore the table to.

*/ inline void SetWorkgroupName(const Aws::String& value) { m_workgroupNameHasBeenSet = true; m_workgroupName = value; } /** *

The workgroup to restore the table to.

*/ inline void SetWorkgroupName(Aws::String&& value) { m_workgroupNameHasBeenSet = true; m_workgroupName = std::move(value); } /** *

The workgroup to restore the table to.

*/ inline void SetWorkgroupName(const char* value) { m_workgroupNameHasBeenSet = true; m_workgroupName.assign(value); } /** *

The workgroup to restore the table to.

*/ inline RestoreTableFromSnapshotRequest& WithWorkgroupName(const Aws::String& value) { SetWorkgroupName(value); return *this;} /** *

The workgroup to restore the table to.

*/ inline RestoreTableFromSnapshotRequest& WithWorkgroupName(Aws::String&& value) { SetWorkgroupName(std::move(value)); return *this;} /** *

The workgroup to restore the table to.

*/ inline RestoreTableFromSnapshotRequest& WithWorkgroupName(const char* value) { SetWorkgroupName(value); return *this;} private: bool m_activateCaseSensitiveIdentifier; bool m_activateCaseSensitiveIdentifierHasBeenSet = false; Aws::String m_namespaceName; bool m_namespaceNameHasBeenSet = false; Aws::String m_newTableName; bool m_newTableNameHasBeenSet = false; Aws::String m_snapshotName; bool m_snapshotNameHasBeenSet = false; Aws::String m_sourceDatabaseName; bool m_sourceDatabaseNameHasBeenSet = false; Aws::String m_sourceSchemaName; bool m_sourceSchemaNameHasBeenSet = false; Aws::String m_sourceTableName; bool m_sourceTableNameHasBeenSet = false; Aws::String m_targetDatabaseName; bool m_targetDatabaseNameHasBeenSet = false; Aws::String m_targetSchemaName; bool m_targetSchemaNameHasBeenSet = false; Aws::String m_workgroupName; bool m_workgroupNameHasBeenSet = false; }; } // namespace Model } // namespace RedshiftServerless } // namespace Aws