AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
RdsFieldMapping.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace BedrockAgent {
20namespace Model {
21
29 public:
30 AWS_BEDROCKAGENT_API RdsFieldMapping() = default;
33 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::String& GetPrimaryKeyField() const { return m_primaryKeyField; }
41 inline bool PrimaryKeyFieldHasBeenSet() const { return m_primaryKeyFieldHasBeenSet; }
42 template <typename PrimaryKeyFieldT = Aws::String>
44 m_primaryKeyFieldHasBeenSet = true;
45 m_primaryKeyField = std::forward<PrimaryKeyFieldT>(value);
46 }
47 template <typename PrimaryKeyFieldT = Aws::String>
49 SetPrimaryKeyField(std::forward<PrimaryKeyFieldT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetVectorField() const { return m_vectorField; }
60 inline bool VectorFieldHasBeenSet() const { return m_vectorFieldHasBeenSet; }
61 template <typename VectorFieldT = Aws::String>
63 m_vectorFieldHasBeenSet = true;
64 m_vectorField = std::forward<VectorFieldT>(value);
65 }
66 template <typename VectorFieldT = Aws::String>
68 SetVectorField(std::forward<VectorFieldT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::String& GetTextField() const { return m_textField; }
79 inline bool TextFieldHasBeenSet() const { return m_textFieldHasBeenSet; }
80 template <typename TextFieldT = Aws::String>
81 void SetTextField(TextFieldT&& value) {
82 m_textFieldHasBeenSet = true;
83 m_textField = std::forward<TextFieldT>(value);
84 }
85 template <typename TextFieldT = Aws::String>
87 SetTextField(std::forward<TextFieldT>(value));
88 return *this;
89 }
91
93
97 inline const Aws::String& GetMetadataField() const { return m_metadataField; }
98 inline bool MetadataFieldHasBeenSet() const { return m_metadataFieldHasBeenSet; }
99 template <typename MetadataFieldT = Aws::String>
101 m_metadataFieldHasBeenSet = true;
102 m_metadataField = std::forward<MetadataFieldT>(value);
103 }
104 template <typename MetadataFieldT = Aws::String>
106 SetMetadataField(std::forward<MetadataFieldT>(value));
107 return *this;
108 }
110
112
116 inline const Aws::String& GetCustomMetadataField() const { return m_customMetadataField; }
117 inline bool CustomMetadataFieldHasBeenSet() const { return m_customMetadataFieldHasBeenSet; }
118 template <typename CustomMetadataFieldT = Aws::String>
120 m_customMetadataFieldHasBeenSet = true;
121 m_customMetadataField = std::forward<CustomMetadataFieldT>(value);
122 }
123 template <typename CustomMetadataFieldT = Aws::String>
125 SetCustomMetadataField(std::forward<CustomMetadataFieldT>(value));
126 return *this;
127 }
129 private:
130 Aws::String m_primaryKeyField;
131
132 Aws::String m_vectorField;
133
134 Aws::String m_textField;
135
136 Aws::String m_metadataField;
137
138 Aws::String m_customMetadataField;
139 bool m_primaryKeyFieldHasBeenSet = false;
140 bool m_vectorFieldHasBeenSet = false;
141 bool m_textFieldHasBeenSet = false;
142 bool m_metadataFieldHasBeenSet = false;
143 bool m_customMetadataFieldHasBeenSet = false;
144};
145
146} // namespace Model
147} // namespace BedrockAgent
148} // namespace Aws
AWS_BEDROCKAGENT_API RdsFieldMapping(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetMetadataField(MetadataFieldT &&value)
void SetPrimaryKeyField(PrimaryKeyFieldT &&value)
const Aws::String & GetMetadataField() const
void SetVectorField(VectorFieldT &&value)
const Aws::String & GetPrimaryKeyField() const
const Aws::String & GetCustomMetadataField() const
RdsFieldMapping & WithMetadataField(MetadataFieldT &&value)
RdsFieldMapping & WithTextField(TextFieldT &&value)
RdsFieldMapping & WithPrimaryKeyField(PrimaryKeyFieldT &&value)
AWS_BEDROCKAGENT_API RdsFieldMapping()=default
RdsFieldMapping & WithCustomMetadataField(CustomMetadataFieldT &&value)
RdsFieldMapping & WithVectorField(VectorFieldT &&value)
const Aws::String & GetVectorField() const
const Aws::String & GetTextField() const
AWS_BEDROCKAGENT_API RdsFieldMapping & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCustomMetadataField(CustomMetadataFieldT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue