AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RdsConfiguration.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/bedrock-agent/model/RdsFieldMapping.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace BedrockAgent
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_BEDROCKAGENT_API RdsConfiguration();
39 AWS_BEDROCKAGENT_API RdsConfiguration(Aws::Utils::Json::JsonView jsonValue);
40 AWS_BEDROCKAGENT_API RdsConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::String& GetCredentialsSecretArn() const{ return m_credentialsSecretArn; }
50 inline bool CredentialsSecretArnHasBeenSet() const { return m_credentialsSecretArnHasBeenSet; }
51 inline void SetCredentialsSecretArn(const Aws::String& value) { m_credentialsSecretArnHasBeenSet = true; m_credentialsSecretArn = value; }
52 inline void SetCredentialsSecretArn(Aws::String&& value) { m_credentialsSecretArnHasBeenSet = true; m_credentialsSecretArn = std::move(value); }
53 inline void SetCredentialsSecretArn(const char* value) { m_credentialsSecretArnHasBeenSet = true; m_credentialsSecretArn.assign(value); }
55 inline RdsConfiguration& WithCredentialsSecretArn(Aws::String&& value) { SetCredentialsSecretArn(std::move(value)); return *this;}
56 inline RdsConfiguration& WithCredentialsSecretArn(const char* value) { SetCredentialsSecretArn(value); return *this;}
58
60
63 inline const Aws::String& GetDatabaseName() const{ return m_databaseName; }
64 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
65 inline void SetDatabaseName(const Aws::String& value) { m_databaseNameHasBeenSet = true; m_databaseName = value; }
66 inline void SetDatabaseName(Aws::String&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::move(value); }
67 inline void SetDatabaseName(const char* value) { m_databaseNameHasBeenSet = true; m_databaseName.assign(value); }
68 inline RdsConfiguration& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;}
69 inline RdsConfiguration& WithDatabaseName(Aws::String&& value) { SetDatabaseName(std::move(value)); return *this;}
70 inline RdsConfiguration& WithDatabaseName(const char* value) { SetDatabaseName(value); return *this;}
72
74
78 inline const RdsFieldMapping& GetFieldMapping() const{ return m_fieldMapping; }
79 inline bool FieldMappingHasBeenSet() const { return m_fieldMappingHasBeenSet; }
80 inline void SetFieldMapping(const RdsFieldMapping& value) { m_fieldMappingHasBeenSet = true; m_fieldMapping = value; }
81 inline void SetFieldMapping(RdsFieldMapping&& value) { m_fieldMappingHasBeenSet = true; m_fieldMapping = std::move(value); }
82 inline RdsConfiguration& WithFieldMapping(const RdsFieldMapping& value) { SetFieldMapping(value); return *this;}
83 inline RdsConfiguration& WithFieldMapping(RdsFieldMapping&& value) { SetFieldMapping(std::move(value)); return *this;}
85
87
90 inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
91 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
92 inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
93 inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
94 inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
95 inline RdsConfiguration& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
96 inline RdsConfiguration& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
97 inline RdsConfiguration& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
99
101
104 inline const Aws::String& GetTableName() const{ return m_tableName; }
105 inline bool TableNameHasBeenSet() const { return m_tableNameHasBeenSet; }
106 inline void SetTableName(const Aws::String& value) { m_tableNameHasBeenSet = true; m_tableName = value; }
107 inline void SetTableName(Aws::String&& value) { m_tableNameHasBeenSet = true; m_tableName = std::move(value); }
108 inline void SetTableName(const char* value) { m_tableNameHasBeenSet = true; m_tableName.assign(value); }
109 inline RdsConfiguration& WithTableName(const Aws::String& value) { SetTableName(value); return *this;}
110 inline RdsConfiguration& WithTableName(Aws::String&& value) { SetTableName(std::move(value)); return *this;}
111 inline RdsConfiguration& WithTableName(const char* value) { SetTableName(value); return *this;}
113 private:
114
115 Aws::String m_credentialsSecretArn;
116 bool m_credentialsSecretArnHasBeenSet = false;
117
118 Aws::String m_databaseName;
119 bool m_databaseNameHasBeenSet = false;
120
121 RdsFieldMapping m_fieldMapping;
122 bool m_fieldMappingHasBeenSet = false;
123
124 Aws::String m_resourceArn;
125 bool m_resourceArnHasBeenSet = false;
126
127 Aws::String m_tableName;
128 bool m_tableNameHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace BedrockAgent
133} // namespace Aws
RdsConfiguration & WithDatabaseName(Aws::String &&value)
RdsConfiguration & WithDatabaseName(const Aws::String &value)
RdsConfiguration & WithCredentialsSecretArn(const char *value)
RdsConfiguration & WithTableName(const Aws::String &value)
void SetFieldMapping(RdsFieldMapping &&value)
RdsConfiguration & WithCredentialsSecretArn(const Aws::String &value)
RdsConfiguration & WithFieldMapping(const RdsFieldMapping &value)
RdsConfiguration & WithTableName(Aws::String &&value)
void SetFieldMapping(const RdsFieldMapping &value)
RdsConfiguration & WithFieldMapping(RdsFieldMapping &&value)
const RdsFieldMapping & GetFieldMapping() const
void SetDatabaseName(const Aws::String &value)
RdsConfiguration & WithResourceArn(const char *value)
RdsConfiguration & WithResourceArn(const Aws::String &value)
RdsConfiguration & WithDatabaseName(const char *value)
RdsConfiguration & WithResourceArn(Aws::String &&value)
void SetCredentialsSecretArn(Aws::String &&value)
RdsConfiguration & WithCredentialsSecretArn(Aws::String &&value)
void SetTableName(const Aws::String &value)
const Aws::String & GetDatabaseName() const
AWS_BEDROCKAGENT_API RdsConfiguration(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCredentialsSecretArn() const
AWS_BEDROCKAGENT_API RdsConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
RdsConfiguration & WithTableName(const char *value)
void SetCredentialsSecretArn(const Aws::String &value)
void SetResourceArn(const Aws::String &value)
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetResourceArn() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue