AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
OpenSearchServerlessConfiguration.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/OpenSearchServerlessFieldMapping.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 OpenSearchServerlessConfiguration();
41 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetCollectionArn() const{ return m_collectionArn; }
49 inline bool CollectionArnHasBeenSet() const { return m_collectionArnHasBeenSet; }
50 inline void SetCollectionArn(const Aws::String& value) { m_collectionArnHasBeenSet = true; m_collectionArn = value; }
51 inline void SetCollectionArn(Aws::String&& value) { m_collectionArnHasBeenSet = true; m_collectionArn = std::move(value); }
52 inline void SetCollectionArn(const char* value) { m_collectionArnHasBeenSet = true; m_collectionArn.assign(value); }
54 inline OpenSearchServerlessConfiguration& WithCollectionArn(Aws::String&& value) { SetCollectionArn(std::move(value)); return *this;}
55 inline OpenSearchServerlessConfiguration& WithCollectionArn(const char* value) { SetCollectionArn(value); return *this;}
57
59
63 inline const OpenSearchServerlessFieldMapping& GetFieldMapping() const{ return m_fieldMapping; }
64 inline bool FieldMappingHasBeenSet() const { return m_fieldMappingHasBeenSet; }
65 inline void SetFieldMapping(const OpenSearchServerlessFieldMapping& value) { m_fieldMappingHasBeenSet = true; m_fieldMapping = value; }
66 inline void SetFieldMapping(OpenSearchServerlessFieldMapping&& value) { m_fieldMappingHasBeenSet = true; m_fieldMapping = std::move(value); }
70
72
75 inline const Aws::String& GetVectorIndexName() const{ return m_vectorIndexName; }
76 inline bool VectorIndexNameHasBeenSet() const { return m_vectorIndexNameHasBeenSet; }
77 inline void SetVectorIndexName(const Aws::String& value) { m_vectorIndexNameHasBeenSet = true; m_vectorIndexName = value; }
78 inline void SetVectorIndexName(Aws::String&& value) { m_vectorIndexNameHasBeenSet = true; m_vectorIndexName = std::move(value); }
79 inline void SetVectorIndexName(const char* value) { m_vectorIndexNameHasBeenSet = true; m_vectorIndexName.assign(value); }
81 inline OpenSearchServerlessConfiguration& WithVectorIndexName(Aws::String&& value) { SetVectorIndexName(std::move(value)); return *this;}
82 inline OpenSearchServerlessConfiguration& WithVectorIndexName(const char* value) { SetVectorIndexName(value); return *this;}
84 private:
85
86 Aws::String m_collectionArn;
87 bool m_collectionArnHasBeenSet = false;
88
90 bool m_fieldMappingHasBeenSet = false;
91
92 Aws::String m_vectorIndexName;
93 bool m_vectorIndexNameHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace BedrockAgent
98} // namespace Aws
OpenSearchServerlessConfiguration & WithCollectionArn(const Aws::String &value)
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
OpenSearchServerlessConfiguration & WithFieldMapping(OpenSearchServerlessFieldMapping &&value)
OpenSearchServerlessConfiguration & WithVectorIndexName(const char *value)
AWS_BEDROCKAGENT_API OpenSearchServerlessConfiguration(Aws::Utils::Json::JsonView jsonValue)
OpenSearchServerlessConfiguration & WithFieldMapping(const OpenSearchServerlessFieldMapping &value)
OpenSearchServerlessConfiguration & WithCollectionArn(const char *value)
void SetFieldMapping(const OpenSearchServerlessFieldMapping &value)
OpenSearchServerlessConfiguration & WithVectorIndexName(Aws::String &&value)
OpenSearchServerlessConfiguration & WithVectorIndexName(const Aws::String &value)
AWS_BEDROCKAGENT_API OpenSearchServerlessConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
OpenSearchServerlessConfiguration & WithCollectionArn(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue