AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
PutInputVector.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 PutInputVector() = default;
33 AWS_S3VECTORS_API PutInputVector(Aws::Utils::Json::JsonView jsonValue);
35 AWS_S3VECTORS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::String& GetKey() const { return m_key; }
43 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
44 template <typename KeyT = Aws::String>
45 void SetKey(KeyT&& value) {
46 m_keyHasBeenSet = true;
47 m_key = std::forward<KeyT>(value);
48 }
49 template <typename KeyT = Aws::String>
50 PutInputVector& WithKey(KeyT&& value) {
51 SetKey(std::forward<KeyT>(value));
52 return *this;
53 }
55
57
66 inline const VectorData& GetData() const { return m_data; }
67 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
68 template <typename DataT = VectorData>
69 void SetData(DataT&& value) {
70 m_dataHasBeenSet = true;
71 m_data = std::forward<DataT>(value);
72 }
73 template <typename DataT = VectorData>
74 PutInputVector& WithData(DataT&& value) {
75 SetData(std::forward<DataT>(value));
76 return *this;
77 }
79
81
85 inline Aws::Utils::DocumentView GetMetadata() const { return m_metadata; }
86 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
87 template <typename MetadataT = Aws::Utils::Document>
88 void SetMetadata(MetadataT&& value) {
89 m_metadataHasBeenSet = true;
90 m_metadata = std::forward<MetadataT>(value);
91 }
92 template <typename MetadataT = Aws::Utils::Document>
93 PutInputVector& WithMetadata(MetadataT&& value) {
94 SetMetadata(std::forward<MetadataT>(value));
95 return *this;
96 }
98 private:
99 Aws::String m_key;
100
101 VectorData m_data;
102
103 Aws::Utils::Document m_metadata;
104 bool m_keyHasBeenSet = false;
105 bool m_dataHasBeenSet = false;
106 bool m_metadataHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace S3Vectors
111} // namespace Aws
AWS_S3VECTORS_API PutInputVector(Aws::Utils::Json::JsonView jsonValue)
AWS_S3VECTORS_API PutInputVector()=default
const Aws::String & GetKey() const
PutInputVector & WithMetadata(MetadataT &&value)
AWS_S3VECTORS_API PutInputVector & operator=(Aws::Utils::Json::JsonView jsonValue)
PutInputVector & WithData(DataT &&value)
void SetMetadata(MetadataT &&value)
AWS_S3VECTORS_API Aws::Utils::Json::JsonValue Jsonize() const
const VectorData & GetData() const
PutInputVector & WithKey(KeyT &&value)
Aws::Utils::DocumentView GetMetadata() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue