AWS SDK for C++

AWS SDK for C++ Version 1.11.930

Loading...
Searching...
No Matches
QueryOutputVector.h
1
6#pragma once
7#include <aws/core/utils/Document.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/s3vectors/S3Vectors_EXPORTS.h>
10#include <aws/s3vectors/model/QueryScores.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace S3Vectors {
22namespace Model {
23
32 public:
33 AWS_S3VECTORS_API QueryOutputVector() = default;
34 AWS_S3VECTORS_API QueryOutputVector(Aws::Utils::Json::JsonView jsonValue);
36 AWS_S3VECTORS_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline double GetDistance() const { return m_distance; }
44 inline bool DistanceHasBeenSet() const { return m_distanceHasBeenSet; }
45 inline void SetDistance(double value) {
46 m_distanceHasBeenSet = true;
47 m_distance = value;
48 }
49 inline QueryOutputVector& WithDistance(double value) {
50 SetDistance(value);
51 return *this;
52 }
54
56
60 inline const QueryScores& GetScores() const { return m_scores; }
61 inline bool ScoresHasBeenSet() const { return m_scoresHasBeenSet; }
62 template <typename ScoresT = QueryScores>
63 void SetScores(ScoresT&& value) {
64 m_scoresHasBeenSet = true;
65 m_scores = std::forward<ScoresT>(value);
66 }
67 template <typename ScoresT = QueryScores>
68 QueryOutputVector& WithScores(ScoresT&& value) {
69 SetScores(std::forward<ScoresT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetKey() const { return m_key; }
79 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
80 template <typename KeyT = Aws::String>
81 void SetKey(KeyT&& value) {
82 m_keyHasBeenSet = true;
83 m_key = std::forward<KeyT>(value);
84 }
85 template <typename KeyT = Aws::String>
86 QueryOutputVector& WithKey(KeyT&& value) {
87 SetKey(std::forward<KeyT>(value));
88 return *this;
89 }
91
93
96 inline Aws::Utils::DocumentView GetMetadata() const { return m_metadata; }
97 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
98 template <typename MetadataT = Aws::Utils::Document>
99 void SetMetadata(MetadataT&& value) {
100 m_metadataHasBeenSet = true;
101 m_metadata = std::forward<MetadataT>(value);
102 }
103 template <typename MetadataT = Aws::Utils::Document>
104 QueryOutputVector& WithMetadata(MetadataT&& value) {
105 SetMetadata(std::forward<MetadataT>(value));
106 return *this;
107 }
109 private:
110 double m_distance{0.0};
111
112 QueryScores m_scores;
113
114 Aws::String m_key;
115
116 Aws::Utils::Document m_metadata;
117 bool m_distanceHasBeenSet = false;
118 bool m_scoresHasBeenSet = false;
119 bool m_keyHasBeenSet = false;
120 bool m_metadataHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace S3Vectors
125} // 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 & WithScores(ScoresT &&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