AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PutInputVector.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 PutInputVector() = default;
39 AWS_S3VECTORS_API PutInputVector(Aws::Utils::Json::JsonView jsonValue);
41 AWS_S3VECTORS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::String& GetKey() const { return m_key; }
50 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
51 template<typename KeyT = Aws::String>
52 void SetKey(KeyT&& value) { m_keyHasBeenSet = true; m_key = std::forward<KeyT>(value); }
53 template<typename KeyT = Aws::String>
54 PutInputVector& WithKey(KeyT&& value) { SetKey(std::forward<KeyT>(value)); return *this;}
56
58
67 inline const VectorData& GetData() const { return m_data; }
68 inline bool DataHasBeenSet() const { return m_dataHasBeenSet; }
69 template<typename DataT = VectorData>
70 void SetData(DataT&& value) { m_dataHasBeenSet = true; m_data = std::forward<DataT>(value); }
71 template<typename DataT = VectorData>
72 PutInputVector& WithData(DataT&& value) { SetData(std::forward<DataT>(value)); return *this;}
74
76
80 inline Aws::Utils::DocumentView GetMetadata() const { return m_metadata; }
81 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
82 template<typename MetadataT = Aws::Utils::Document>
83 void SetMetadata(MetadataT&& value) { m_metadataHasBeenSet = true; m_metadata = std::forward<MetadataT>(value); }
84 template<typename MetadataT = Aws::Utils::Document>
85 PutInputVector& WithMetadata(MetadataT&& value) { SetMetadata(std::forward<MetadataT>(value)); return *this;}
87 private:
88
89 Aws::String m_key;
90 bool m_keyHasBeenSet = false;
91
92 VectorData m_data;
93 bool m_dataHasBeenSet = false;
94
95 Aws::Utils::Document m_metadata;
96 bool m_metadataHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace S3Vectors
101} // 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