176 lines
6.3 KiB
C++
176 lines
6.3 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/rds-data/RDSDataService_EXPORTS.h>
|
|
#include <aws/rds-data/RDSDataServiceRequest.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace RDSDataService
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>The request parameters represent the input of a request to perform a rollback
|
|
* of a transaction.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/RollbackTransactionRequest">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_RDSDATASERVICE_API RollbackTransactionRequest : public RDSDataServiceRequest
|
|
{
|
|
public:
|
|
RollbackTransactionRequest();
|
|
|
|
// 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 "RollbackTransaction"; }
|
|
|
|
Aws::String SerializePayload() const override;
|
|
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.</p>
|
|
*/
|
|
inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.</p>
|
|
*/
|
|
inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.</p>
|
|
*/
|
|
inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.</p>
|
|
*/
|
|
inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.</p>
|
|
*/
|
|
inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.</p>
|
|
*/
|
|
inline RollbackTransactionRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.</p>
|
|
*/
|
|
inline RollbackTransactionRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.</p>
|
|
*/
|
|
inline RollbackTransactionRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The name or ARN of the secret that enables access to the DB cluster.</p>
|
|
*/
|
|
inline const Aws::String& GetSecretArn() const{ return m_secretArn; }
|
|
|
|
/**
|
|
* <p>The name or ARN of the secret that enables access to the DB cluster.</p>
|
|
*/
|
|
inline bool SecretArnHasBeenSet() const { return m_secretArnHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The name or ARN of the secret that enables access to the DB cluster.</p>
|
|
*/
|
|
inline void SetSecretArn(const Aws::String& value) { m_secretArnHasBeenSet = true; m_secretArn = value; }
|
|
|
|
/**
|
|
* <p>The name or ARN of the secret that enables access to the DB cluster.</p>
|
|
*/
|
|
inline void SetSecretArn(Aws::String&& value) { m_secretArnHasBeenSet = true; m_secretArn = std::move(value); }
|
|
|
|
/**
|
|
* <p>The name or ARN of the secret that enables access to the DB cluster.</p>
|
|
*/
|
|
inline void SetSecretArn(const char* value) { m_secretArnHasBeenSet = true; m_secretArn.assign(value); }
|
|
|
|
/**
|
|
* <p>The name or ARN of the secret that enables access to the DB cluster.</p>
|
|
*/
|
|
inline RollbackTransactionRequest& WithSecretArn(const Aws::String& value) { SetSecretArn(value); return *this;}
|
|
|
|
/**
|
|
* <p>The name or ARN of the secret that enables access to the DB cluster.</p>
|
|
*/
|
|
inline RollbackTransactionRequest& WithSecretArn(Aws::String&& value) { SetSecretArn(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The name or ARN of the secret that enables access to the DB cluster.</p>
|
|
*/
|
|
inline RollbackTransactionRequest& WithSecretArn(const char* value) { SetSecretArn(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The identifier of the transaction to roll back.</p>
|
|
*/
|
|
inline const Aws::String& GetTransactionId() const{ return m_transactionId; }
|
|
|
|
/**
|
|
* <p>The identifier of the transaction to roll back.</p>
|
|
*/
|
|
inline bool TransactionIdHasBeenSet() const { return m_transactionIdHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The identifier of the transaction to roll back.</p>
|
|
*/
|
|
inline void SetTransactionId(const Aws::String& value) { m_transactionIdHasBeenSet = true; m_transactionId = value; }
|
|
|
|
/**
|
|
* <p>The identifier of the transaction to roll back.</p>
|
|
*/
|
|
inline void SetTransactionId(Aws::String&& value) { m_transactionIdHasBeenSet = true; m_transactionId = std::move(value); }
|
|
|
|
/**
|
|
* <p>The identifier of the transaction to roll back.</p>
|
|
*/
|
|
inline void SetTransactionId(const char* value) { m_transactionIdHasBeenSet = true; m_transactionId.assign(value); }
|
|
|
|
/**
|
|
* <p>The identifier of the transaction to roll back.</p>
|
|
*/
|
|
inline RollbackTransactionRequest& WithTransactionId(const Aws::String& value) { SetTransactionId(value); return *this;}
|
|
|
|
/**
|
|
* <p>The identifier of the transaction to roll back.</p>
|
|
*/
|
|
inline RollbackTransactionRequest& WithTransactionId(Aws::String&& value) { SetTransactionId(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The identifier of the transaction to roll back.</p>
|
|
*/
|
|
inline RollbackTransactionRequest& WithTransactionId(const char* value) { SetTransactionId(value); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_resourceArn;
|
|
bool m_resourceArnHasBeenSet;
|
|
|
|
Aws::String m_secretArn;
|
|
bool m_secretArnHasBeenSet;
|
|
|
|
Aws::String m_transactionId;
|
|
bool m_transactionIdHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace RDSDataService
|
|
} // namespace Aws
|