AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
OpenSearchServerlessFieldMapping.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace BedrockAgent
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_BEDROCKAGENT_API OpenSearchServerlessFieldMapping();
38 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const Aws::String& GetMetadataField() const{ return m_metadataField; }
47 inline bool MetadataFieldHasBeenSet() const { return m_metadataFieldHasBeenSet; }
48 inline void SetMetadataField(const Aws::String& value) { m_metadataFieldHasBeenSet = true; m_metadataField = value; }
49 inline void SetMetadataField(Aws::String&& value) { m_metadataFieldHasBeenSet = true; m_metadataField = std::move(value); }
50 inline void SetMetadataField(const char* value) { m_metadataFieldHasBeenSet = true; m_metadataField.assign(value); }
52 inline OpenSearchServerlessFieldMapping& WithMetadataField(Aws::String&& value) { SetMetadataField(std::move(value)); return *this;}
53 inline OpenSearchServerlessFieldMapping& WithMetadataField(const char* value) { SetMetadataField(value); return *this;}
55
57
61 inline const Aws::String& GetTextField() const{ return m_textField; }
62 inline bool TextFieldHasBeenSet() const { return m_textFieldHasBeenSet; }
63 inline void SetTextField(const Aws::String& value) { m_textFieldHasBeenSet = true; m_textField = value; }
64 inline void SetTextField(Aws::String&& value) { m_textFieldHasBeenSet = true; m_textField = std::move(value); }
65 inline void SetTextField(const char* value) { m_textFieldHasBeenSet = true; m_textField.assign(value); }
66 inline OpenSearchServerlessFieldMapping& WithTextField(const Aws::String& value) { SetTextField(value); return *this;}
67 inline OpenSearchServerlessFieldMapping& WithTextField(Aws::String&& value) { SetTextField(std::move(value)); return *this;}
68 inline OpenSearchServerlessFieldMapping& WithTextField(const char* value) { SetTextField(value); return *this;}
70
72
76 inline const Aws::String& GetVectorField() const{ return m_vectorField; }
77 inline bool VectorFieldHasBeenSet() const { return m_vectorFieldHasBeenSet; }
78 inline void SetVectorField(const Aws::String& value) { m_vectorFieldHasBeenSet = true; m_vectorField = value; }
79 inline void SetVectorField(Aws::String&& value) { m_vectorFieldHasBeenSet = true; m_vectorField = std::move(value); }
80 inline void SetVectorField(const char* value) { m_vectorFieldHasBeenSet = true; m_vectorField.assign(value); }
81 inline OpenSearchServerlessFieldMapping& WithVectorField(const Aws::String& value) { SetVectorField(value); return *this;}
82 inline OpenSearchServerlessFieldMapping& WithVectorField(Aws::String&& value) { SetVectorField(std::move(value)); return *this;}
83 inline OpenSearchServerlessFieldMapping& WithVectorField(const char* value) { SetVectorField(value); return *this;}
85 private:
86
87 Aws::String m_metadataField;
88 bool m_metadataFieldHasBeenSet = false;
89
90 Aws::String m_textField;
91 bool m_textFieldHasBeenSet = false;
92
93 Aws::String m_vectorField;
94 bool m_vectorFieldHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace BedrockAgent
99} // namespace Aws
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
OpenSearchServerlessFieldMapping & WithMetadataField(const char *value)
OpenSearchServerlessFieldMapping & WithMetadataField(Aws::String &&value)
OpenSearchServerlessFieldMapping & WithTextField(Aws::String &&value)
OpenSearchServerlessFieldMapping & WithMetadataField(const Aws::String &value)
OpenSearchServerlessFieldMapping & WithVectorField(const Aws::String &value)
OpenSearchServerlessFieldMapping & WithVectorField(Aws::String &&value)
AWS_BEDROCKAGENT_API OpenSearchServerlessFieldMapping(Aws::Utils::Json::JsonView jsonValue)
OpenSearchServerlessFieldMapping & WithTextField(const Aws::String &value)
OpenSearchServerlessFieldMapping & WithVectorField(const char *value)
OpenSearchServerlessFieldMapping & WithTextField(const char *value)
AWS_BEDROCKAGENT_API OpenSearchServerlessFieldMapping & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue