AWS SDK for C++

AWS SDK for C++ Version 1.11.930

Loading...
Searching...
No Matches
BeginTransactionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/rds-data/RDSDataServiceRequest.h>
9#include <aws/rds-data/RDSDataService_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace RDSDataService {
15namespace Model {
16
24 public:
25 AWS_RDSDATASERVICE_API BeginTransactionRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "BeginTransaction"; }
32
33 AWS_RDSDATASERVICE_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
40 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
41 template <typename ResourceArnT = Aws::String>
42 void SetResourceArn(ResourceArnT&& value) {
43 m_resourceArnHasBeenSet = true;
44 m_resourceArn = std::forward<ResourceArnT>(value);
45 }
46 template <typename ResourceArnT = Aws::String>
48 SetResourceArn(std::forward<ResourceArnT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetSecretArn() const { return m_secretArn; }
58 inline bool SecretArnHasBeenSet() const { return m_secretArnHasBeenSet; }
59 template <typename SecretArnT = Aws::String>
60 void SetSecretArn(SecretArnT&& value) {
61 m_secretArnHasBeenSet = true;
62 m_secretArn = std::forward<SecretArnT>(value);
63 }
64 template <typename SecretArnT = Aws::String>
66 SetSecretArn(std::forward<SecretArnT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetDatabase() const { return m_database; }
76 inline bool DatabaseHasBeenSet() const { return m_databaseHasBeenSet; }
77 template <typename DatabaseT = Aws::String>
78 void SetDatabase(DatabaseT&& value) {
79 m_databaseHasBeenSet = true;
80 m_database = std::forward<DatabaseT>(value);
81 }
82 template <typename DatabaseT = Aws::String>
84 SetDatabase(std::forward<DatabaseT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetSchema() const { return m_schema; }
94 inline bool SchemaHasBeenSet() const { return m_schemaHasBeenSet; }
95 template <typename SchemaT = Aws::String>
96 void SetSchema(SchemaT&& value) {
97 m_schemaHasBeenSet = true;
98 m_schema = std::forward<SchemaT>(value);
99 }
100 template <typename SchemaT = Aws::String>
102 SetSchema(std::forward<SchemaT>(value));
103 return *this;
104 }
106 private:
107 Aws::String m_resourceArn;
108
109 Aws::String m_secretArn;
110
111 Aws::String m_database;
112
113 Aws::String m_schema;
114 bool m_resourceArnHasBeenSet = false;
115 bool m_secretArnHasBeenSet = false;
116 bool m_databaseHasBeenSet = false;
117 bool m_schemaHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace RDSDataService
122} // namespace Aws
BeginTransactionRequest & WithResourceArn(ResourceArnT &&value)
AWS_RDSDATASERVICE_API BeginTransactionRequest()=default
BeginTransactionRequest & WithSchema(SchemaT &&value)
BeginTransactionRequest & WithDatabase(DatabaseT &&value)
virtual const char * GetServiceRequestName() const override
BeginTransactionRequest & WithSecretArn(SecretArnT &&value)
AWS_RDSDATASERVICE_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String