220 lines
7.3 KiB
C++
220 lines
7.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 start a SQL
|
|
* transaction.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/BeginTransactionRequest">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_RDSDATASERVICE_API BeginTransactionRequest : public RDSDataServiceRequest
|
|
{
|
|
public:
|
|
BeginTransactionRequest();
|
|
|
|
// 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 "BeginTransaction"; }
|
|
|
|
Aws::String SerializePayload() const override;
|
|
|
|
|
|
/**
|
|
* <p>The name of the database.</p>
|
|
*/
|
|
inline const Aws::String& GetDatabase() const{ return m_database; }
|
|
|
|
/**
|
|
* <p>The name of the database.</p>
|
|
*/
|
|
inline bool DatabaseHasBeenSet() const { return m_databaseHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The name of the database.</p>
|
|
*/
|
|
inline void SetDatabase(const Aws::String& value) { m_databaseHasBeenSet = true; m_database = value; }
|
|
|
|
/**
|
|
* <p>The name of the database.</p>
|
|
*/
|
|
inline void SetDatabase(Aws::String&& value) { m_databaseHasBeenSet = true; m_database = std::move(value); }
|
|
|
|
/**
|
|
* <p>The name of the database.</p>
|
|
*/
|
|
inline void SetDatabase(const char* value) { m_databaseHasBeenSet = true; m_database.assign(value); }
|
|
|
|
/**
|
|
* <p>The name of the database.</p>
|
|
*/
|
|
inline BeginTransactionRequest& WithDatabase(const Aws::String& value) { SetDatabase(value); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the database.</p>
|
|
*/
|
|
inline BeginTransactionRequest& WithDatabase(Aws::String&& value) { SetDatabase(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the database.</p>
|
|
*/
|
|
inline BeginTransactionRequest& WithDatabase(const char* value) { SetDatabase(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <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 BeginTransactionRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.</p>
|
|
*/
|
|
inline BeginTransactionRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.</p>
|
|
*/
|
|
inline BeginTransactionRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The name of the database schema.</p>
|
|
*/
|
|
inline const Aws::String& GetSchema() const{ return m_schema; }
|
|
|
|
/**
|
|
* <p>The name of the database schema.</p>
|
|
*/
|
|
inline bool SchemaHasBeenSet() const { return m_schemaHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The name of the database schema.</p>
|
|
*/
|
|
inline void SetSchema(const Aws::String& value) { m_schemaHasBeenSet = true; m_schema = value; }
|
|
|
|
/**
|
|
* <p>The name of the database schema.</p>
|
|
*/
|
|
inline void SetSchema(Aws::String&& value) { m_schemaHasBeenSet = true; m_schema = std::move(value); }
|
|
|
|
/**
|
|
* <p>The name of the database schema.</p>
|
|
*/
|
|
inline void SetSchema(const char* value) { m_schemaHasBeenSet = true; m_schema.assign(value); }
|
|
|
|
/**
|
|
* <p>The name of the database schema.</p>
|
|
*/
|
|
inline BeginTransactionRequest& WithSchema(const Aws::String& value) { SetSchema(value); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the database schema.</p>
|
|
*/
|
|
inline BeginTransactionRequest& WithSchema(Aws::String&& value) { SetSchema(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the database schema.</p>
|
|
*/
|
|
inline BeginTransactionRequest& WithSchema(const char* value) { SetSchema(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 BeginTransactionRequest& 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 BeginTransactionRequest& 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 BeginTransactionRequest& WithSecretArn(const char* value) { SetSecretArn(value); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_database;
|
|
bool m_databaseHasBeenSet;
|
|
|
|
Aws::String m_resourceArn;
|
|
bool m_resourceArnHasBeenSet;
|
|
|
|
Aws::String m_schema;
|
|
bool m_schemaHasBeenSet;
|
|
|
|
Aws::String m_secretArn;
|
|
bool m_secretArnHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace RDSDataService
|
|
} // namespace Aws
|