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

The transaction to cancel.

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

The transaction to cancel.

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

The transaction to cancel.

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

The transaction to cancel.

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

The transaction to cancel.

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

The transaction to cancel.

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

The transaction to cancel.

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

The transaction to cancel.

*/ inline CancelTransactionRequest& WithTransactionId(const char* value) { SetTransactionId(value); return *this;} private: Aws::String m_transactionId; bool m_transactionIdHasBeenSet = false; }; } // namespace Model } // namespace LakeFormation } // namespace Aws