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>
50 inline void SetBooleanValue(
bool value) { m_booleanValueHasBeenSet =
true; m_booleanValue = value; }
60 inline void SetDoubleValue(
double value) { m_doubleValueHasBeenSet =
true; m_doubleValue = value; }
70 inline void SetIntegerValue(
int value) { m_integerValueHasBeenSet =
true; m_integerValue = value; }
80 inline void SetLongValue(
long long value) { m_longValueHasBeenSet =
true; m_longValue = value; }
90 template<
typename StringValueT = Aws::String>
91 void SetStringValue(StringValueT&& value) { m_stringValueHasBeenSet =
true; m_stringValue = std::forward<StringValueT>(value); }
92 template<
typename StringValueT = Aws::String>
102 template<
typename ListValueT = Aws::Vector<DataValue>>
103 void SetListValue(ListValueT&& value) { m_listValueHasBeenSet =
true; m_listValue = std::forward<ListValueT>(value); }
104 template<
typename ListValueT = Aws::Vector<DataValue>>
106 template<
typename ListValueT = DataValue>
107 DataValue&
AddListValue(ListValueT&& value) { m_listValueHasBeenSet =
true; m_listValue.emplace_back(std::forward<ListValueT>(value));
return *
this; }
116 template<
typename MapValueT = Aws::Map<Aws::String, DataValue>>
117 void SetMapValue(MapValueT&& value) { m_mapValueHasBeenSet =
true; m_mapValue = std::forward<MapValueT>(value); }
118 template<
typename MapValueT = Aws::Map<Aws::String, DataValue>>
120 template<
typename MapValueKeyT = Aws::String,
typename MapValueValueT = DataValue>
122 m_mapValueHasBeenSet =
true; m_mapValue.emplace(std::forward<MapValueKeyT>(key), std::forward<MapValueValueT>(value));
return *
this;
132 template<
typename RelationshipValueT = RelationshipValue>
133 void SetRelationshipValue(RelationshipValueT&& value) { m_relationshipValueHasBeenSet =
true; m_relationshipValue = std::forward<RelationshipValueT>(value); }
134 template<
typename RelationshipValueT = RelationshipValue>
144 template<
typename ExpressionT = Aws::String>
145 void SetExpression(ExpressionT&& value) { m_expressionHasBeenSet =
true; m_expression = std::forward<ExpressionT>(value); }
146 template<
typename ExpressionT = Aws::String>
151 bool m_booleanValue{
false};
152 bool m_booleanValueHasBeenSet =
false;
154 double m_doubleValue{0.0};
155 bool m_doubleValueHasBeenSet =
false;
157 int m_integerValue{0};
158 bool m_integerValueHasBeenSet =
false;
160 long long m_longValue{0};
161 bool m_longValueHasBeenSet =
false;
164 bool m_stringValueHasBeenSet =
false;
167 bool m_listValueHasBeenSet =
false;
170 bool m_mapValueHasBeenSet =
false;
172 RelationshipValue m_relationshipValue;
173 bool m_relationshipValueHasBeenSet =
false;
176 bool m_expressionHasBeenSet =
false;
void SetBooleanValue(bool value)
const Aws::Map< Aws::String, DataValue > & GetMapValue() const
int GetIntegerValue() const
bool IntegerValueHasBeenSet() const
bool DoubleValueHasBeenSet() const
void SetExpression(ExpressionT &&value)
bool GetBooleanValue() const
void SetMapValue(MapValueT &&value)
bool RelationshipValueHasBeenSet() const
DataValue & WithLongValue(long long value)
bool LongValueHasBeenSet() const
DataValue & WithIntegerValue(int value)
void SetIntegerValue(int value)
bool ListValueHasBeenSet() const
long long GetLongValue() const
double GetDoubleValue() const
DataValue & WithStringValue(StringValueT &&value)
void SetListValue(ListValueT &&value)
DataValue & WithListValue(ListValueT &&value)
void SetRelationshipValue(RelationshipValueT &&value)
const Aws::String & GetStringValue() const
bool StringValueHasBeenSet() const
bool BooleanValueHasBeenSet() const
void SetStringValue(StringValueT &&value)
DataValue & WithBooleanValue(bool value)
DataValue & WithExpression(ExpressionT &&value)
AWS_IOTTWINMAKER_API DataValue(Aws::Utils::Json::JsonView jsonValue)
DataValue & WithRelationshipValue(RelationshipValueT &&value)
DataValue & AddListValue(ListValueT &&value)
const Aws::String & GetExpression() const
void SetLongValue(long long value)
AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
bool ExpressionHasBeenSet() const
DataValue & WithDoubleValue(double value)
DataValue & AddMapValue(MapValueKeyT &&key, MapValueValueT &&value)
bool MapValueHasBeenSet() const
void SetDoubleValue(double value)
AWS_IOTTWINMAKER_API DataValue()=default
AWS_IOTTWINMAKER_API DataValue & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< DataValue > & GetListValue() const
const RelationshipValue & GetRelationshipValue() const
DataValue & WithMapValue(MapValueT &&value)
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