AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
VectorData.h
1
6#pragma once
7#include <aws/s3vectors/S3Vectors_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace S3Vectors
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_S3VECTORS_API VectorData() = default;
37 AWS_S3VECTORS_API VectorData(Aws::Utils::Json::JsonView jsonValue);
38 AWS_S3VECTORS_API VectorData& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_S3VECTORS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
48 inline const Aws::Vector<double>& GetFloat32() const { return m_float32; }
49 inline bool Float32HasBeenSet() const { return m_float32HasBeenSet; }
50 template<typename Float32T = Aws::Vector<double>>
51 void SetFloat32(Float32T&& value) { m_float32HasBeenSet = true; m_float32 = std::forward<Float32T>(value); }
52 template<typename Float32T = Aws::Vector<double>>
53 VectorData& WithFloat32(Float32T&& value) { SetFloat32(std::forward<Float32T>(value)); return *this;}
54 inline VectorData& AddFloat32(double value) { m_float32HasBeenSet = true; m_float32.push_back(value); return *this; }
56 private:
57
58 Aws::Vector<double> m_float32;
59 bool m_float32HasBeenSet = false;
60 };
61
62} // namespace Model
63} // namespace S3Vectors
64} // namespace Aws
AWS_S3VECTORS_API VectorData & operator=(Aws::Utils::Json::JsonView jsonValue)
VectorData & WithFloat32(Float32T &&value)
Definition VectorData.h:53
void SetFloat32(Float32T &&value)
Definition VectorData.h:51
const Aws::Vector< double > & GetFloat32() const
Definition VectorData.h:48
AWS_S3VECTORS_API Aws::Utils::Json::JsonValue Jsonize() const
VectorData & AddFloat32(double value)
Definition VectorData.h:54
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