AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Datum.h
1
6#pragma once
7#include <aws/iotsitewise/IoTSiteWise_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <utility>
11#include <memory>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace IoTSiteWise
24{
25namespace Model
26{
27 class Row;
28
35 class Datum
36 {
37 public:
38 AWS_IOTSITEWISE_API Datum();
39 AWS_IOTSITEWISE_API Datum(Aws::Utils::Json::JsonView jsonValue);
40 AWS_IOTSITEWISE_API Datum& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::String& GetScalarValue() const{ return m_scalarValue; }
50 inline bool ScalarValueHasBeenSet() const { return m_scalarValueHasBeenSet; }
51 inline void SetScalarValue(const Aws::String& value) { m_scalarValueHasBeenSet = true; m_scalarValue = value; }
52 inline void SetScalarValue(Aws::String&& value) { m_scalarValueHasBeenSet = true; m_scalarValue = std::move(value); }
53 inline void SetScalarValue(const char* value) { m_scalarValueHasBeenSet = true; m_scalarValue.assign(value); }
54 inline Datum& WithScalarValue(const Aws::String& value) { SetScalarValue(value); return *this;}
55 inline Datum& WithScalarValue(Aws::String&& value) { SetScalarValue(std::move(value)); return *this;}
56 inline Datum& WithScalarValue(const char* value) { SetScalarValue(value); return *this;}
58
60
63 inline const Aws::Vector<Datum>& GetArrayValue() const{ return m_arrayValue; }
64 inline bool ArrayValueHasBeenSet() const { return m_arrayValueHasBeenSet; }
65 inline void SetArrayValue(const Aws::Vector<Datum>& value) { m_arrayValueHasBeenSet = true; m_arrayValue = value; }
66 inline void SetArrayValue(Aws::Vector<Datum>&& value) { m_arrayValueHasBeenSet = true; m_arrayValue = std::move(value); }
67 inline Datum& WithArrayValue(const Aws::Vector<Datum>& value) { SetArrayValue(value); return *this;}
68 inline Datum& WithArrayValue(Aws::Vector<Datum>&& value) { SetArrayValue(std::move(value)); return *this;}
69 inline Datum& AddArrayValue(const Datum& value) { m_arrayValueHasBeenSet = true; m_arrayValue.push_back(value); return *this; }
70 inline Datum& AddArrayValue(Datum&& value) { m_arrayValueHasBeenSet = true; m_arrayValue.push_back(std::move(value)); return *this; }
72
74
77 AWS_IOTSITEWISE_API const Row& GetRowValue() const;
78 AWS_IOTSITEWISE_API bool RowValueHasBeenSet() const;
79 AWS_IOTSITEWISE_API void SetRowValue(const Row& value);
80 AWS_IOTSITEWISE_API void SetRowValue(Row&& value);
81 AWS_IOTSITEWISE_API Datum& WithRowValue(const Row& value);
82 AWS_IOTSITEWISE_API Datum& WithRowValue(Row&& value);
84
86
89 inline bool GetNullValue() const{ return m_nullValue; }
90 inline bool NullValueHasBeenSet() const { return m_nullValueHasBeenSet; }
91 inline void SetNullValue(bool value) { m_nullValueHasBeenSet = true; m_nullValue = value; }
92 inline Datum& WithNullValue(bool value) { SetNullValue(value); return *this;}
94 private:
95
96 Aws::String m_scalarValue;
97 bool m_scalarValueHasBeenSet = false;
98
99 Aws::Vector<Datum> m_arrayValue;
100 bool m_arrayValueHasBeenSet = false;
101
102 std::shared_ptr<Row> m_rowValue;
103 bool m_rowValueHasBeenSet = false;
104
105 bool m_nullValue;
106 bool m_nullValueHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace IoTSiteWise
111} // namespace Aws
Datum & WithArrayValue(const Aws::Vector< Datum > &value)
Definition Datum.h:67
Datum & WithNullValue(bool value)
Definition Datum.h:92
bool ArrayValueHasBeenSet() const
Definition Datum.h:64
Datum & AddArrayValue(Datum &&value)
Definition Datum.h:70
AWS_IOTSITEWISE_API Datum & WithRowValue(Row &&value)
Datum & AddArrayValue(const Datum &value)
Definition Datum.h:69
AWS_IOTSITEWISE_API const Row & GetRowValue() const
Datum & WithArrayValue(Aws::Vector< Datum > &&value)
Definition Datum.h:68
void SetScalarValue(const Aws::String &value)
Definition Datum.h:51
bool ScalarValueHasBeenSet() const
Definition Datum.h:50
Datum & WithScalarValue(const Aws::String &value)
Definition Datum.h:54
AWS_IOTSITEWISE_API Datum(Aws::Utils::Json::JsonView jsonValue)
void SetArrayValue(const Aws::Vector< Datum > &value)
Definition Datum.h:65
void SetArrayValue(Aws::Vector< Datum > &&value)
Definition Datum.h:66
const Aws::String & GetScalarValue() const
Definition Datum.h:49
void SetNullValue(bool value)
Definition Datum.h:91
AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const
bool GetNullValue() const
Definition Datum.h:89
AWS_IOTSITEWISE_API Datum & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTSITEWISE_API void SetRowValue(const Row &value)
bool NullValueHasBeenSet() const
Definition Datum.h:90
void SetScalarValue(Aws::String &&value)
Definition Datum.h:52
Datum & WithScalarValue(const char *value)
Definition Datum.h:56
Datum & WithScalarValue(Aws::String &&value)
Definition Datum.h:55
AWS_IOTSITEWISE_API void SetRowValue(Row &&value)
AWS_IOTSITEWISE_API bool RowValueHasBeenSet() const
void SetScalarValue(const char *value)
Definition Datum.h:53
AWS_IOTSITEWISE_API Datum & WithRowValue(const Row &value)
const Aws::Vector< Datum > & GetArrayValue() const
Definition Datum.h:63
AWS_IOTSITEWISE_API Datum()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue