AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename CollectionArnT = Aws::String>
51 void SetCollectionArn(CollectionArnT&& value) { m_collectionArnHasBeenSet = true; m_collectionArn = std::forward<CollectionArnT>(value); }
52 template<typename CollectionArnT = Aws::String>
53 OpenSearchServerlessConfiguration& WithCollectionArn(CollectionArnT&& value) { SetCollectionArn(std::forward<CollectionArnT>(value)); return *this;}
55
57
61 inline const OpenSearchServerlessFieldMapping& GetFieldMapping() const { return m_fieldMapping; }
62 inline bool FieldMappingHasBeenSet() const { return m_fieldMappingHasBeenSet; }
63 template<typename FieldMappingT = OpenSearchServerlessFieldMapping>
64 void SetFieldMapping(FieldMappingT&& value) { m_fieldMappingHasBeenSet = true; m_fieldMapping = std::forward<FieldMappingT>(value); }
65 template<typename FieldMappingT = OpenSearchServerlessFieldMapping>
66 OpenSearchServerlessConfiguration& WithFieldMapping(FieldMappingT&& value) { SetFieldMapping(std::forward<FieldMappingT>(value)); return *this;}
68
70
73 inline const Aws::String& GetVectorIndexName() const { return m_vectorIndexName; }
74 inline bool VectorIndexNameHasBeenSet() const { return m_vectorIndexNameHasBeenSet; }
75 template<typename VectorIndexNameT = Aws::String>
76 void SetVectorIndexName(VectorIndexNameT&& value) { m_vectorIndexNameHasBeenSet = true; m_vectorIndexName = std::forward<VectorIndexNameT>(value); }
77 template<typename VectorIndexNameT = Aws::String>
78 OpenSearchServerlessConfiguration& WithVectorIndexName(VectorIndexNameT&& value) { SetVectorIndexName(std::forward<VectorIndexNameT>(value)); return *this;}
80 private:
81
82 Aws::String m_collectionArn;
83 bool m_collectionArnHasBeenSet = false;
84
86 bool m_fieldMappingHasBeenSet = false;
87
88 Aws::String m_vectorIndexName;
89 bool m_vectorIndexNameHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace BedrockAgent
94} // namespace Aws
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
OpenSearchServerlessConfiguration & WithCollectionArn(CollectionArnT &&value)
AWS_BEDROCKAGENT_API OpenSearchServerlessConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENT_API OpenSearchServerlessConfiguration()=default
OpenSearchServerlessConfiguration & WithFieldMapping(FieldMappingT &&value)
OpenSearchServerlessConfiguration & WithVectorIndexName(VectorIndexNameT &&value)
AWS_BEDROCKAGENT_API OpenSearchServerlessConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue