/** * 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 LakeFormation { namespace Model { /** */ class DeleteObjectsOnCancelRequest : public LakeFormationRequest { public: AWS_LAKEFORMATION_API DeleteObjectsOnCancelRequest(); // 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 "DeleteObjectsOnCancel"; } AWS_LAKEFORMATION_API Aws::String SerializePayload() const override; /** *

The Glue data catalog that contains the governed table. Defaults to the * current account ID.

*/ inline const Aws::String& GetCatalogId() const{ return m_catalogId; } /** *

The Glue data catalog that contains the governed table. Defaults to the * current account ID.

*/ inline bool CatalogIdHasBeenSet() const { return m_catalogIdHasBeenSet; } /** *

The Glue data catalog that contains the governed table. Defaults to the * current account ID.

*/ inline void SetCatalogId(const Aws::String& value) { m_catalogIdHasBeenSet = true; m_catalogId = value; } /** *

The Glue data catalog that contains the governed table. Defaults to the * current account ID.

*/ inline void SetCatalogId(Aws::String&& value) { m_catalogIdHasBeenSet = true; m_catalogId = std::move(value); } /** *

The Glue data catalog that contains the governed table. Defaults to the * current account ID.

*/ inline void SetCatalogId(const char* value) { m_catalogIdHasBeenSet = true; m_catalogId.assign(value); } /** *

The Glue data catalog that contains the governed table. Defaults to the * current account ID.

*/ inline DeleteObjectsOnCancelRequest& WithCatalogId(const Aws::String& value) { SetCatalogId(value); return *this;} /** *

The Glue data catalog that contains the governed table. Defaults to the * current account ID.

*/ inline DeleteObjectsOnCancelRequest& WithCatalogId(Aws::String&& value) { SetCatalogId(std::move(value)); return *this;} /** *

The Glue data catalog that contains the governed table. Defaults to the * current account ID.

*/ inline DeleteObjectsOnCancelRequest& WithCatalogId(const char* value) { SetCatalogId(value); return *this;} /** *

The database that contains the governed table.

*/ inline const Aws::String& GetDatabaseName() const{ return m_databaseName; } /** *

The database that contains the governed table.

*/ inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; } /** *

The database that contains the governed table.

*/ inline void SetDatabaseName(const Aws::String& value) { m_databaseNameHasBeenSet = true; m_databaseName = value; } /** *

The database that contains the governed table.

*/ inline void SetDatabaseName(Aws::String&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::move(value); } /** *

The database that contains the governed table.

*/ inline void SetDatabaseName(const char* value) { m_databaseNameHasBeenSet = true; m_databaseName.assign(value); } /** *

The database that contains the governed table.

*/ inline DeleteObjectsOnCancelRequest& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;} /** *

The database that contains the governed table.

*/ inline DeleteObjectsOnCancelRequest& WithDatabaseName(Aws::String&& value) { SetDatabaseName(std::move(value)); return *this;} /** *

The database that contains the governed table.

*/ inline DeleteObjectsOnCancelRequest& WithDatabaseName(const char* value) { SetDatabaseName(value); return *this;} /** *

The name of the governed table.

*/ inline const Aws::String& GetTableName() const{ return m_tableName; } /** *

The name of the governed table.

*/ inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; } /** *

The name of the governed table.

*/ inline void SetTableName(const Aws::String& value) { m_tableNameHasBeenSet = true; m_tableName = value; } /** *

The name of the governed table.

*/ inline void SetTableName(Aws::String&& value) { m_tableNameHasBeenSet = true; m_tableName = std::move(value); } /** *

The name of the governed table.

*/ inline void SetTableName(const char* value) { m_tableNameHasBeenSet = true; m_tableName.assign(value); } /** *

The name of the governed table.

*/ inline DeleteObjectsOnCancelRequest& WithTableName(const Aws::String& value) { SetTableName(value); return *this;} /** *

The name of the governed table.

*/ inline DeleteObjectsOnCancelRequest& WithTableName(Aws::String&& value) { SetTableName(std::move(value)); return *this;} /** *

The name of the governed table.

*/ inline DeleteObjectsOnCancelRequest& WithTableName(const char* value) { SetTableName(value); return *this;} /** *

ID of the transaction that the writes occur in.

*/ inline const Aws::String& GetTransactionId() const{ return m_transactionId; } /** *

ID of the transaction that the writes occur in.

*/ inline bool TransactionIdHasBeenSet() const { return m_transactionIdHasBeenSet; } /** *

ID of the transaction that the writes occur in.

*/ inline void SetTransactionId(const Aws::String& value) { m_transactionIdHasBeenSet = true; m_transactionId = value; } /** *

ID of the transaction that the writes occur in.

*/ inline void SetTransactionId(Aws::String&& value) { m_transactionIdHasBeenSet = true; m_transactionId = std::move(value); } /** *

ID of the transaction that the writes occur in.

*/ inline void SetTransactionId(const char* value) { m_transactionIdHasBeenSet = true; m_transactionId.assign(value); } /** *

ID of the transaction that the writes occur in.

*/ inline DeleteObjectsOnCancelRequest& WithTransactionId(const Aws::String& value) { SetTransactionId(value); return *this;} /** *

ID of the transaction that the writes occur in.

*/ inline DeleteObjectsOnCancelRequest& WithTransactionId(Aws::String&& value) { SetTransactionId(std::move(value)); return *this;} /** *

ID of the transaction that the writes occur in.

*/ inline DeleteObjectsOnCancelRequest& WithTransactionId(const char* value) { SetTransactionId(value); return *this;} /** *

A list of VirtualObject structures, which indicates the Amazon S3 objects to * be deleted if the transaction cancels.

*/ inline const Aws::Vector& GetObjects() const{ return m_objects; } /** *

A list of VirtualObject structures, which indicates the Amazon S3 objects to * be deleted if the transaction cancels.

*/ inline bool ObjectsHasBeenSet() const { return m_objectsHasBeenSet; } /** *

A list of VirtualObject structures, which indicates the Amazon S3 objects to * be deleted if the transaction cancels.

*/ inline void SetObjects(const Aws::Vector& value) { m_objectsHasBeenSet = true; m_objects = value; } /** *

A list of VirtualObject structures, which indicates the Amazon S3 objects to * be deleted if the transaction cancels.

*/ inline void SetObjects(Aws::Vector&& value) { m_objectsHasBeenSet = true; m_objects = std::move(value); } /** *

A list of VirtualObject structures, which indicates the Amazon S3 objects to * be deleted if the transaction cancels.

*/ inline DeleteObjectsOnCancelRequest& WithObjects(const Aws::Vector& value) { SetObjects(value); return *this;} /** *

A list of VirtualObject structures, which indicates the Amazon S3 objects to * be deleted if the transaction cancels.

*/ inline DeleteObjectsOnCancelRequest& WithObjects(Aws::Vector&& value) { SetObjects(std::move(value)); return *this;} /** *

A list of VirtualObject structures, which indicates the Amazon S3 objects to * be deleted if the transaction cancels.

*/ inline DeleteObjectsOnCancelRequest& AddObjects(const VirtualObject& value) { m_objectsHasBeenSet = true; m_objects.push_back(value); return *this; } /** *

A list of VirtualObject structures, which indicates the Amazon S3 objects to * be deleted if the transaction cancels.

*/ inline DeleteObjectsOnCancelRequest& AddObjects(VirtualObject&& value) { m_objectsHasBeenSet = true; m_objects.push_back(std::move(value)); return *this; } private: Aws::String m_catalogId; bool m_catalogIdHasBeenSet = false; Aws::String m_databaseName; bool m_databaseNameHasBeenSet = false; Aws::String m_tableName; bool m_tableNameHasBeenSet = false; Aws::String m_transactionId; bool m_transactionIdHasBeenSet = false; Aws::Vector m_objects; bool m_objectsHasBeenSet = false; }; } // namespace Model } // namespace LakeFormation } // namespace Aws