AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
OpenSearchServerlessConfiguration.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/model/OpenSearchServerlessFieldMapping.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace BedrockAgent {
21namespace Model {
22
32 public:
33 AWS_BEDROCKAGENT_API OpenSearchServerlessConfiguration() = default;
36 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetCollectionArn() const { return m_collectionArn; }
43 inline bool CollectionArnHasBeenSet() const { return m_collectionArnHasBeenSet; }
44 template <typename CollectionArnT = Aws::String>
46 m_collectionArnHasBeenSet = true;
47 m_collectionArn = std::forward<CollectionArnT>(value);
48 }
49 template <typename CollectionArnT = Aws::String>
51 SetCollectionArn(std::forward<CollectionArnT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetVectorIndexName() const { return m_vectorIndexName; }
61 inline bool VectorIndexNameHasBeenSet() const { return m_vectorIndexNameHasBeenSet; }
62 template <typename VectorIndexNameT = Aws::String>
64 m_vectorIndexNameHasBeenSet = true;
65 m_vectorIndexName = std::forward<VectorIndexNameT>(value);
66 }
67 template <typename VectorIndexNameT = Aws::String>
69 SetVectorIndexName(std::forward<VectorIndexNameT>(value));
70 return *this;
71 }
73
75
79 inline const OpenSearchServerlessFieldMapping& GetFieldMapping() const { return m_fieldMapping; }
80 inline bool FieldMappingHasBeenSet() const { return m_fieldMappingHasBeenSet; }
81 template <typename FieldMappingT = OpenSearchServerlessFieldMapping>
83 m_fieldMappingHasBeenSet = true;
84 m_fieldMapping = std::forward<FieldMappingT>(value);
85 }
86 template <typename FieldMappingT = OpenSearchServerlessFieldMapping>
88 SetFieldMapping(std::forward<FieldMappingT>(value));
89 return *this;
90 }
92 private:
93 Aws::String m_collectionArn;
94
95 Aws::String m_vectorIndexName;
96
98 bool m_collectionArnHasBeenSet = false;
99 bool m_vectorIndexNameHasBeenSet = false;
100 bool m_fieldMappingHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace BedrockAgent
105} // 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::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