AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DataValue.h
1
6#pragma once
7#include <aws/iottwinmaker/IoTTwinMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/iottwinmaker/model/RelationshipValue.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace IoTTwinMaker
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_IOTTWINMAKER_API DataValue();
39 AWS_IOTTWINMAKER_API DataValue(Aws::Utils::Json::JsonView jsonValue);
40 AWS_IOTTWINMAKER_API DataValue& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline bool GetBooleanValue() const{ return m_booleanValue; }
49 inline bool BooleanValueHasBeenSet() const { return m_booleanValueHasBeenSet; }
50 inline void SetBooleanValue(bool value) { m_booleanValueHasBeenSet = true; m_booleanValue = value; }
51 inline DataValue& WithBooleanValue(bool value) { SetBooleanValue(value); return *this;}
53
55
58 inline double GetDoubleValue() const{ return m_doubleValue; }
59 inline bool DoubleValueHasBeenSet() const { return m_doubleValueHasBeenSet; }
60 inline void SetDoubleValue(double value) { m_doubleValueHasBeenSet = true; m_doubleValue = value; }
61 inline DataValue& WithDoubleValue(double value) { SetDoubleValue(value); return *this;}
63
65
68 inline int GetIntegerValue() const{ return m_integerValue; }
69 inline bool IntegerValueHasBeenSet() const { return m_integerValueHasBeenSet; }
70 inline void SetIntegerValue(int value) { m_integerValueHasBeenSet = true; m_integerValue = value; }
71 inline DataValue& WithIntegerValue(int value) { SetIntegerValue(value); return *this;}
73
75
78 inline long long GetLongValue() const{ return m_longValue; }
79 inline bool LongValueHasBeenSet() const { return m_longValueHasBeenSet; }
80 inline void SetLongValue(long long value) { m_longValueHasBeenSet = true; m_longValue = value; }
81 inline DataValue& WithLongValue(long long value) { SetLongValue(value); return *this;}
83
85
88 inline const Aws::String& GetStringValue() const{ return m_stringValue; }
89 inline bool StringValueHasBeenSet() const { return m_stringValueHasBeenSet; }
90 inline void SetStringValue(const Aws::String& value) { m_stringValueHasBeenSet = true; m_stringValue = value; }
91 inline void SetStringValue(Aws::String&& value) { m_stringValueHasBeenSet = true; m_stringValue = std::move(value); }
92 inline void SetStringValue(const char* value) { m_stringValueHasBeenSet = true; m_stringValue.assign(value); }
93 inline DataValue& WithStringValue(const Aws::String& value) { SetStringValue(value); return *this;}
94 inline DataValue& WithStringValue(Aws::String&& value) { SetStringValue(std::move(value)); return *this;}
95 inline DataValue& WithStringValue(const char* value) { SetStringValue(value); return *this;}
97
99
102 inline const Aws::Vector<DataValue>& GetListValue() const{ return m_listValue; }
103 inline bool ListValueHasBeenSet() const { return m_listValueHasBeenSet; }
104 inline void SetListValue(const Aws::Vector<DataValue>& value) { m_listValueHasBeenSet = true; m_listValue = value; }
105 inline void SetListValue(Aws::Vector<DataValue>&& value) { m_listValueHasBeenSet = true; m_listValue = std::move(value); }
106 inline DataValue& WithListValue(const Aws::Vector<DataValue>& value) { SetListValue(value); return *this;}
107 inline DataValue& WithListValue(Aws::Vector<DataValue>&& value) { SetListValue(std::move(value)); return *this;}
108 inline DataValue& AddListValue(const DataValue& value) { m_listValueHasBeenSet = true; m_listValue.push_back(value); return *this; }
109 inline DataValue& AddListValue(DataValue&& value) { m_listValueHasBeenSet = true; m_listValue.push_back(std::move(value)); return *this; }
111
113
116 inline const Aws::Map<Aws::String, DataValue>& GetMapValue() const{ return m_mapValue; }
117 inline bool MapValueHasBeenSet() const { return m_mapValueHasBeenSet; }
118 inline void SetMapValue(const Aws::Map<Aws::String, DataValue>& value) { m_mapValueHasBeenSet = true; m_mapValue = value; }
119 inline void SetMapValue(Aws::Map<Aws::String, DataValue>&& value) { m_mapValueHasBeenSet = true; m_mapValue = std::move(value); }
120 inline DataValue& WithMapValue(const Aws::Map<Aws::String, DataValue>& value) { SetMapValue(value); return *this;}
121 inline DataValue& WithMapValue(Aws::Map<Aws::String, DataValue>&& value) { SetMapValue(std::move(value)); return *this;}
122 inline DataValue& AddMapValue(const Aws::String& key, const DataValue& value) { m_mapValueHasBeenSet = true; m_mapValue.emplace(key, value); return *this; }
123 inline DataValue& AddMapValue(Aws::String&& key, const DataValue& value) { m_mapValueHasBeenSet = true; m_mapValue.emplace(std::move(key), value); return *this; }
124 inline DataValue& AddMapValue(const Aws::String& key, DataValue&& value) { m_mapValueHasBeenSet = true; m_mapValue.emplace(key, std::move(value)); return *this; }
125 inline DataValue& AddMapValue(Aws::String&& key, DataValue&& value) { m_mapValueHasBeenSet = true; m_mapValue.emplace(std::move(key), std::move(value)); return *this; }
126 inline DataValue& AddMapValue(const char* key, DataValue&& value) { m_mapValueHasBeenSet = true; m_mapValue.emplace(key, std::move(value)); return *this; }
127 inline DataValue& AddMapValue(const char* key, const DataValue& value) { m_mapValueHasBeenSet = true; m_mapValue.emplace(key, value); return *this; }
129
131
134 inline const RelationshipValue& GetRelationshipValue() const{ return m_relationshipValue; }
135 inline bool RelationshipValueHasBeenSet() const { return m_relationshipValueHasBeenSet; }
136 inline void SetRelationshipValue(const RelationshipValue& value) { m_relationshipValueHasBeenSet = true; m_relationshipValue = value; }
137 inline void SetRelationshipValue(RelationshipValue&& value) { m_relationshipValueHasBeenSet = true; m_relationshipValue = std::move(value); }
138 inline DataValue& WithRelationshipValue(const RelationshipValue& value) { SetRelationshipValue(value); return *this;}
139 inline DataValue& WithRelationshipValue(RelationshipValue&& value) { SetRelationshipValue(std::move(value)); return *this;}
141
143
146 inline const Aws::String& GetExpression() const{ return m_expression; }
147 inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
148 inline void SetExpression(const Aws::String& value) { m_expressionHasBeenSet = true; m_expression = value; }
149 inline void SetExpression(Aws::String&& value) { m_expressionHasBeenSet = true; m_expression = std::move(value); }
150 inline void SetExpression(const char* value) { m_expressionHasBeenSet = true; m_expression.assign(value); }
151 inline DataValue& WithExpression(const Aws::String& value) { SetExpression(value); return *this;}
152 inline DataValue& WithExpression(Aws::String&& value) { SetExpression(std::move(value)); return *this;}
153 inline DataValue& WithExpression(const char* value) { SetExpression(value); return *this;}
155 private:
156
157 bool m_booleanValue;
158 bool m_booleanValueHasBeenSet = false;
159
160 double m_doubleValue;
161 bool m_doubleValueHasBeenSet = false;
162
163 int m_integerValue;
164 bool m_integerValueHasBeenSet = false;
165
166 long long m_longValue;
167 bool m_longValueHasBeenSet = false;
168
169 Aws::String m_stringValue;
170 bool m_stringValueHasBeenSet = false;
171
172 Aws::Vector<DataValue> m_listValue;
173 bool m_listValueHasBeenSet = false;
174
176 bool m_mapValueHasBeenSet = false;
177
178 RelationshipValue m_relationshipValue;
179 bool m_relationshipValueHasBeenSet = false;
180
181 Aws::String m_expression;
182 bool m_expressionHasBeenSet = false;
183 };
184
185} // namespace Model
186} // namespace IoTTwinMaker
187} // namespace Aws
DataValue & AddMapValue(const char *key, DataValue &&value)
Definition DataValue.h:126
const Aws::Map< Aws::String, DataValue > & GetMapValue() const
Definition DataValue.h:116
void SetStringValue(const char *value)
Definition DataValue.h:92
void SetListValue(Aws::Vector< DataValue > &&value)
Definition DataValue.h:105
DataValue & WithStringValue(const Aws::String &value)
Definition DataValue.h:93
DataValue & WithRelationshipValue(const RelationshipValue &value)
Definition DataValue.h:138
void SetRelationshipValue(RelationshipValue &&value)
Definition DataValue.h:137
DataValue & WithStringValue(const char *value)
Definition DataValue.h:95
DataValue & WithLongValue(long long value)
Definition DataValue.h:81
DataValue & AddListValue(DataValue &&value)
Definition DataValue.h:109
DataValue & WithIntegerValue(int value)
Definition DataValue.h:71
DataValue & WithStringValue(Aws::String &&value)
Definition DataValue.h:94
DataValue & AddMapValue(const Aws::String &key, const DataValue &value)
Definition DataValue.h:122
DataValue & WithExpression(Aws::String &&value)
Definition DataValue.h:152
void SetExpression(const char *value)
Definition DataValue.h:150
DataValue & AddListValue(const DataValue &value)
Definition DataValue.h:108
void SetStringValue(Aws::String &&value)
Definition DataValue.h:91
DataValue & WithExpression(const Aws::String &value)
Definition DataValue.h:151
void SetExpression(const Aws::String &value)
Definition DataValue.h:148
AWS_IOTTWINMAKER_API DataValue()
DataValue & AddMapValue(Aws::String &&key, const DataValue &value)
Definition DataValue.h:123
DataValue & WithRelationshipValue(RelationshipValue &&value)
Definition DataValue.h:139
void SetMapValue(Aws::Map< Aws::String, DataValue > &&value)
Definition DataValue.h:119
const Aws::String & GetStringValue() const
Definition DataValue.h:88
DataValue & AddMapValue(Aws::String &&key, DataValue &&value)
Definition DataValue.h:125
DataValue & AddMapValue(const Aws::String &key, DataValue &&value)
Definition DataValue.h:124
DataValue & WithListValue(const Aws::Vector< DataValue > &value)
Definition DataValue.h:106
void SetRelationshipValue(const RelationshipValue &value)
Definition DataValue.h:136
DataValue & AddMapValue(const char *key, const DataValue &value)
Definition DataValue.h:127
DataValue & WithMapValue(const Aws::Map< Aws::String, DataValue > &value)
Definition DataValue.h:120
void SetListValue(const Aws::Vector< DataValue > &value)
Definition DataValue.h:104
DataValue & WithBooleanValue(bool value)
Definition DataValue.h:51
DataValue & WithExpression(const char *value)
Definition DataValue.h:153
AWS_IOTTWINMAKER_API DataValue(Aws::Utils::Json::JsonView jsonValue)
void SetStringValue(const Aws::String &value)
Definition DataValue.h:90
void SetMapValue(const Aws::Map< Aws::String, DataValue > &value)
Definition DataValue.h:118
void SetExpression(Aws::String &&value)
Definition DataValue.h:149
const Aws::String & GetExpression() const
Definition DataValue.h:146
void SetLongValue(long long value)
Definition DataValue.h:80
AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
DataValue & WithListValue(Aws::Vector< DataValue > &&value)
Definition DataValue.h:107
DataValue & WithDoubleValue(double value)
Definition DataValue.h:61
void SetDoubleValue(double value)
Definition DataValue.h:60
AWS_IOTTWINMAKER_API DataValue & operator=(Aws::Utils::Json::JsonView jsonValue)
DataValue & WithMapValue(Aws::Map< Aws::String, DataValue > &&value)
Definition DataValue.h:121
const Aws::Vector< DataValue > & GetListValue() const
Definition DataValue.h:102
const RelationshipValue & GetRelationshipValue() const
Definition DataValue.h:134
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue