AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
QueryOutputVector.h
1
6#pragma once
7#include <aws/s3vectors/S3Vectors_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/s3vectors/model/VectorData.h>
10#include <aws/core/utils/Document.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace S3Vectors
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_S3VECTORS_API QueryOutputVector() = default;
39 AWS_S3VECTORS_API QueryOutputVector(Aws::Utils::Json::JsonView jsonValue);
41 AWS_S3VECTORS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetKey() const { return m_key; }
49 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
50 template<typename KeyT = Aws::String>
51 void SetKey(KeyT&& value) { m_keyHasBeenSet = true; m_key = std::forward<KeyT>(value); }
52 template<typename KeyT = Aws::String>
53 QueryOutputVector& WithKey(KeyT&& value) { SetKey(std::forward<KeyT>(value)); return *this;}
55
57
60 inline const VectorData& GetData() const { return m_data; }
61 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
62 template<typename DataT = VectorData>
63 void SetData(DataT&& value) { m_dataHasBeenSet = true; m_data = std::forward<DataT>(value); }
64 template<typename DataT = VectorData>
65 QueryOutputVector& WithData(DataT&& value) { SetData(std::forward<DataT>(value)); return *this;}
67
69
72 inline Aws::Utils::DocumentView GetMetadata() const { return m_metadata; }
73 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
74 template<typename MetadataT = Aws::Utils::Document>
75 void SetMetadata(MetadataT&& value) { m_metadataHasBeenSet = true; m_metadata = std::forward<MetadataT>(value); }
76 template<typename MetadataT = Aws::Utils::Document>
77 QueryOutputVector& WithMetadata(MetadataT&& value) { SetMetadata(std::forward<MetadataT>(value)); return *this;}
79
81
85 inline double GetDistance() const { return m_distance; }
86 inline bool DistanceHasBeenSet() const { return m_distanceHasBeenSet; }
87 inline void SetDistance(double value) { m_distanceHasBeenSet = true; m_distance = value; }
88 inline QueryOutputVector& WithDistance(double value) { SetDistance(value); return *this;}
90 private:
91
92 Aws::String m_key;
93 bool m_keyHasBeenSet = false;
94
95 VectorData m_data;
96 bool m_dataHasBeenSet = false;
97
98 Aws::Utils::Document m_metadata;
99 bool m_metadataHasBeenSet = false;
100
101 double m_distance{0.0};
102 bool m_distanceHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace S3Vectors
107} // namespace Aws
Aws::Utils::DocumentView GetMetadata() const
QueryOutputVector & WithMetadata(MetadataT &&value)
AWS_S3VECTORS_API QueryOutputVector & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_S3VECTORS_API QueryOutputVector(Aws::Utils::Json::JsonView jsonValue)
AWS_S3VECTORS_API Aws::Utils::Json::JsonValue Jsonize() const
QueryOutputVector & WithDistance(double value)
QueryOutputVector & WithData(DataT &&value)
AWS_S3VECTORS_API QueryOutputVector()=default
QueryOutputVector & WithKey(KeyT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue