AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AssetPropertyVariant.h
1
6#pragma once
7#include <aws/iotevents/IoTEvents_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.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 IoTEvents
22{
23namespace Model
24{
25
56 {
57 public:
58 AWS_IOTEVENTS_API AssetPropertyVariant();
61 AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
62
63
65
69 inline const Aws::String& GetStringValue() const{ return m_stringValue; }
70 inline bool StringValueHasBeenSet() const { return m_stringValueHasBeenSet; }
71 inline void SetStringValue(const Aws::String& value) { m_stringValueHasBeenSet = true; m_stringValue = value; }
72 inline void SetStringValue(Aws::String&& value) { m_stringValueHasBeenSet = true; m_stringValue = std::move(value); }
73 inline void SetStringValue(const char* value) { m_stringValueHasBeenSet = true; m_stringValue.assign(value); }
74 inline AssetPropertyVariant& WithStringValue(const Aws::String& value) { SetStringValue(value); return *this;}
75 inline AssetPropertyVariant& WithStringValue(Aws::String&& value) { SetStringValue(std::move(value)); return *this;}
76 inline AssetPropertyVariant& WithStringValue(const char* value) { SetStringValue(value); return *this;}
78
80
84 inline const Aws::String& GetIntegerValue() const{ return m_integerValue; }
85 inline bool IntegerValueHasBeenSet() const { return m_integerValueHasBeenSet; }
86 inline void SetIntegerValue(const Aws::String& value) { m_integerValueHasBeenSet = true; m_integerValue = value; }
87 inline void SetIntegerValue(Aws::String&& value) { m_integerValueHasBeenSet = true; m_integerValue = std::move(value); }
88 inline void SetIntegerValue(const char* value) { m_integerValueHasBeenSet = true; m_integerValue.assign(value); }
89 inline AssetPropertyVariant& WithIntegerValue(const Aws::String& value) { SetIntegerValue(value); return *this;}
90 inline AssetPropertyVariant& WithIntegerValue(Aws::String&& value) { SetIntegerValue(std::move(value)); return *this;}
91 inline AssetPropertyVariant& WithIntegerValue(const char* value) { SetIntegerValue(value); return *this;}
93
95
99 inline const Aws::String& GetDoubleValue() const{ return m_doubleValue; }
100 inline bool DoubleValueHasBeenSet() const { return m_doubleValueHasBeenSet; }
101 inline void SetDoubleValue(const Aws::String& value) { m_doubleValueHasBeenSet = true; m_doubleValue = value; }
102 inline void SetDoubleValue(Aws::String&& value) { m_doubleValueHasBeenSet = true; m_doubleValue = std::move(value); }
103 inline void SetDoubleValue(const char* value) { m_doubleValueHasBeenSet = true; m_doubleValue.assign(value); }
104 inline AssetPropertyVariant& WithDoubleValue(const Aws::String& value) { SetDoubleValue(value); return *this;}
105 inline AssetPropertyVariant& WithDoubleValue(Aws::String&& value) { SetDoubleValue(std::move(value)); return *this;}
106 inline AssetPropertyVariant& WithDoubleValue(const char* value) { SetDoubleValue(value); return *this;}
108
110
115 inline const Aws::String& GetBooleanValue() const{ return m_booleanValue; }
116 inline bool BooleanValueHasBeenSet() const { return m_booleanValueHasBeenSet; }
117 inline void SetBooleanValue(const Aws::String& value) { m_booleanValueHasBeenSet = true; m_booleanValue = value; }
118 inline void SetBooleanValue(Aws::String&& value) { m_booleanValueHasBeenSet = true; m_booleanValue = std::move(value); }
119 inline void SetBooleanValue(const char* value) { m_booleanValueHasBeenSet = true; m_booleanValue.assign(value); }
120 inline AssetPropertyVariant& WithBooleanValue(const Aws::String& value) { SetBooleanValue(value); return *this;}
121 inline AssetPropertyVariant& WithBooleanValue(Aws::String&& value) { SetBooleanValue(std::move(value)); return *this;}
122 inline AssetPropertyVariant& WithBooleanValue(const char* value) { SetBooleanValue(value); return *this;}
124 private:
125
126 Aws::String m_stringValue;
127 bool m_stringValueHasBeenSet = false;
128
129 Aws::String m_integerValue;
130 bool m_integerValueHasBeenSet = false;
131
132 Aws::String m_doubleValue;
133 bool m_doubleValueHasBeenSet = false;
134
135 Aws::String m_booleanValue;
136 bool m_booleanValueHasBeenSet = false;
137 };
138
139} // namespace Model
140} // namespace IoTEvents
141} // namespace Aws
AssetPropertyVariant & WithDoubleValue(const char *value)
AWS_IOTEVENTS_API AssetPropertyVariant & operator=(Aws::Utils::Json::JsonView jsonValue)
AssetPropertyVariant & WithBooleanValue(Aws::String &&value)
void SetStringValue(const Aws::String &value)
AssetPropertyVariant & WithDoubleValue(const Aws::String &value)
AWS_IOTEVENTS_API AssetPropertyVariant(Aws::Utils::Json::JsonView jsonValue)
AssetPropertyVariant & WithDoubleValue(Aws::String &&value)
AssetPropertyVariant & WithBooleanValue(const char *value)
AssetPropertyVariant & WithBooleanValue(const Aws::String &value)
AssetPropertyVariant & WithStringValue(const Aws::String &value)
AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetIntegerValue(const Aws::String &value)
AssetPropertyVariant & WithStringValue(const char *value)
AssetPropertyVariant & WithIntegerValue(const Aws::String &value)
AssetPropertyVariant & WithIntegerValue(const char *value)
AssetPropertyVariant & WithIntegerValue(Aws::String &&value)
AssetPropertyVariant & WithStringValue(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue