AWS SDK for C++

AWS SDK for C++ Version 1.11.930

Loading...
Searching...
No Matches
GetOutputVector.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/VectorData.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
31 public:
32 AWS_S3VECTORS_API GetOutputVector() = default;
33 AWS_S3VECTORS_API GetOutputVector(Aws::Utils::Json::JsonView jsonValue);
35 AWS_S3VECTORS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetKey() const { return m_key; }
42 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
43 template <typename KeyT = Aws::String>
44 void SetKey(KeyT&& value) {
45 m_keyHasBeenSet = true;
46 m_key = std::forward<KeyT>(value);
47 }
48 template <typename KeyT = Aws::String>
49 GetOutputVector& WithKey(KeyT&& value) {
50 SetKey(std::forward<KeyT>(value));
51 return *this;
52 }
54
56
59 inline const VectorData& GetData() const { return m_data; }
60 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
61 template <typename DataT = VectorData>
62 void SetData(DataT&& value) {
63 m_dataHasBeenSet = true;
64 m_data = std::forward<DataT>(value);
65 }
66 template <typename DataT = VectorData>
67 GetOutputVector& WithData(DataT&& value) {
68 SetData(std::forward<DataT>(value));
69 return *this;
70 }
72
74
77 inline Aws::Utils::DocumentView GetMetadata() const { return m_metadata; }
78 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
79 template <typename MetadataT = Aws::Utils::Document>
80 void SetMetadata(MetadataT&& value) {
81 m_metadataHasBeenSet = true;
82 m_metadata = std::forward<MetadataT>(value);
83 }
84 template <typename MetadataT = Aws::Utils::Document>
85 GetOutputVector& WithMetadata(MetadataT&& value) {
86 SetMetadata(std::forward<MetadataT>(value));
87 return *this;
88 }
90 private:
91 Aws::String m_key;
92
93 VectorData m_data;
94
95 Aws::Utils::Document m_metadata;
96 bool m_keyHasBeenSet = false;
97 bool m_dataHasBeenSet = false;
98 bool m_metadataHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace S3Vectors
103} // namespace Aws
AWS_S3VECTORS_API GetOutputVector & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_S3VECTORS_API GetOutputVector(Aws::Utils::Json::JsonView jsonValue)
GetOutputVector & WithKey(KeyT &&value)
AWS_S3VECTORS_API GetOutputVector()=default
Aws::Utils::DocumentView GetMetadata() const
AWS_S3VECTORS_API Aws::Utils::Json::JsonValue Jsonize() const
const VectorData & GetData() const
GetOutputVector & WithData(DataT &&value)
const Aws::String & GetKey() const
GetOutputVector & WithMetadata(MetadataT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue