AWS SDK for C++

AWS SDK for C++ Version 1.11.930

Loading...
Searching...
No Matches
VectorData.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/s3vectors/S3Vectors_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace S3Vectors {
20namespace Model {
21
28 public:
29 AWS_S3VECTORS_API VectorData() = default;
30 AWS_S3VECTORS_API VectorData(Aws::Utils::Json::JsonView jsonValue);
31 AWS_S3VECTORS_API VectorData& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_S3VECTORS_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
40 inline const Aws::Vector<double>& GetFloat32() const { return m_float32; }
41 inline bool Float32HasBeenSet() const { return m_float32HasBeenSet; }
42 template <typename Float32T = Aws::Vector<double>>
43 void SetFloat32(Float32T&& value) {
44 m_float32HasBeenSet = true;
45 m_float32 = std::forward<Float32T>(value);
46 }
47 template <typename Float32T = Aws::Vector<double>>
48 VectorData& WithFloat32(Float32T&& value) {
49 SetFloat32(std::forward<Float32T>(value));
50 return *this;
51 }
52 inline VectorData& AddFloat32(double value) {
53 m_float32HasBeenSet = true;
54 m_float32.push_back(value);
55 return *this;
56 }
58 private:
59 Aws::Vector<double> m_float32;
60 bool m_float32HasBeenSet = false;
61};
62
63} // namespace Model
64} // namespace S3Vectors
65} // namespace Aws
AWS_S3VECTORS_API VectorData & operator=(Aws::Utils::Json::JsonView jsonValue)
VectorData & WithFloat32(Float32T &&value)
Definition VectorData.h:48
void SetFloat32(Float32T &&value)
Definition VectorData.h:43
const Aws::Vector< double > & GetFloat32() const
Definition VectorData.h:40
AWS_S3VECTORS_API Aws::Utils::Json::JsonValue Jsonize() const
VectorData & AddFloat32(double value)
Definition VectorData.h:52
AWS_S3VECTORS_API VectorData(Aws::Utils::Json::JsonView jsonValue)
AWS_S3VECTORS_API VectorData()=default
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue