AWS SDK for C++  1.9.123
AWS SDK for C++
AssetPropertyVariant.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace IoT
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
45  inline const Aws::String& GetStringValue() const{ return m_stringValue; }
46 
51  inline bool StringValueHasBeenSet() const { return m_stringValueHasBeenSet; }
52 
57  inline void SetStringValue(const Aws::String& value) { m_stringValueHasBeenSet = true; m_stringValue = value; }
58 
63  inline void SetStringValue(Aws::String&& value) { m_stringValueHasBeenSet = true; m_stringValue = std::move(value); }
64 
69  inline void SetStringValue(const char* value) { m_stringValueHasBeenSet = true; m_stringValue.assign(value); }
70 
75  inline AssetPropertyVariant& WithStringValue(const Aws::String& value) { SetStringValue(value); return *this;}
76 
81  inline AssetPropertyVariant& WithStringValue(Aws::String&& value) { SetStringValue(std::move(value)); return *this;}
82 
87  inline AssetPropertyVariant& WithStringValue(const char* value) { SetStringValue(value); return *this;}
88 
89 
94  inline const Aws::String& GetIntegerValue() const{ return m_integerValue; }
95 
100  inline bool IntegerValueHasBeenSet() const { return m_integerValueHasBeenSet; }
101 
106  inline void SetIntegerValue(const Aws::String& value) { m_integerValueHasBeenSet = true; m_integerValue = value; }
107 
112  inline void SetIntegerValue(Aws::String&& value) { m_integerValueHasBeenSet = true; m_integerValue = std::move(value); }
113 
118  inline void SetIntegerValue(const char* value) { m_integerValueHasBeenSet = true; m_integerValue.assign(value); }
119 
124  inline AssetPropertyVariant& WithIntegerValue(const Aws::String& value) { SetIntegerValue(value); return *this;}
125 
130  inline AssetPropertyVariant& WithIntegerValue(Aws::String&& value) { SetIntegerValue(std::move(value)); return *this;}
131 
136  inline AssetPropertyVariant& WithIntegerValue(const char* value) { SetIntegerValue(value); return *this;}
137 
138 
143  inline const Aws::String& GetDoubleValue() const{ return m_doubleValue; }
144 
149  inline bool DoubleValueHasBeenSet() const { return m_doubleValueHasBeenSet; }
150 
155  inline void SetDoubleValue(const Aws::String& value) { m_doubleValueHasBeenSet = true; m_doubleValue = value; }
156 
161  inline void SetDoubleValue(Aws::String&& value) { m_doubleValueHasBeenSet = true; m_doubleValue = std::move(value); }
162 
167  inline void SetDoubleValue(const char* value) { m_doubleValueHasBeenSet = true; m_doubleValue.assign(value); }
168 
173  inline AssetPropertyVariant& WithDoubleValue(const Aws::String& value) { SetDoubleValue(value); return *this;}
174 
179  inline AssetPropertyVariant& WithDoubleValue(Aws::String&& value) { SetDoubleValue(std::move(value)); return *this;}
180 
185  inline AssetPropertyVariant& WithDoubleValue(const char* value) { SetDoubleValue(value); return *this;}
186 
187 
192  inline const Aws::String& GetBooleanValue() const{ return m_booleanValue; }
193 
198  inline bool BooleanValueHasBeenSet() const { return m_booleanValueHasBeenSet; }
199 
204  inline void SetBooleanValue(const Aws::String& value) { m_booleanValueHasBeenSet = true; m_booleanValue = value; }
205 
210  inline void SetBooleanValue(Aws::String&& value) { m_booleanValueHasBeenSet = true; m_booleanValue = std::move(value); }
211 
216  inline void SetBooleanValue(const char* value) { m_booleanValueHasBeenSet = true; m_booleanValue.assign(value); }
217 
222  inline AssetPropertyVariant& WithBooleanValue(const Aws::String& value) { SetBooleanValue(value); return *this;}
223 
228  inline AssetPropertyVariant& WithBooleanValue(Aws::String&& value) { SetBooleanValue(std::move(value)); return *this;}
229 
234  inline AssetPropertyVariant& WithBooleanValue(const char* value) { SetBooleanValue(value); return *this;}
235 
236  private:
237 
238  Aws::String m_stringValue;
239  bool m_stringValueHasBeenSet;
240 
241  Aws::String m_integerValue;
242  bool m_integerValueHasBeenSet;
243 
244  Aws::String m_doubleValue;
245  bool m_doubleValueHasBeenSet;
246 
247  Aws::String m_booleanValue;
248  bool m_booleanValueHasBeenSet;
249  };
250 
251 } // namespace Model
252 } // namespace IoT
253 } // namespace Aws
Aws::IoT::Model::AssetPropertyVariant
Definition: AssetPropertyVariant.h:33
Aws::IoT::Model::AssetPropertyVariant::WithIntegerValue
AssetPropertyVariant & WithIntegerValue(const char *value)
Definition: AssetPropertyVariant.h:136
Aws::IoT::Model::AssetPropertyVariant::operator=
AssetPropertyVariant & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::AssetPropertyVariant::WithIntegerValue
AssetPropertyVariant & WithIntegerValue(const Aws::String &value)
Definition: AssetPropertyVariant.h:124
Aws::IoT::Model::AssetPropertyVariant::SetStringValue
void SetStringValue(const char *value)
Definition: AssetPropertyVariant.h:69
Aws::IoT::Model::AssetPropertyVariant::GetStringValue
const Aws::String & GetStringValue() const
Definition: AssetPropertyVariant.h:45
Aws::IoT::Model::AssetPropertyVariant::SetDoubleValue
void SetDoubleValue(const char *value)
Definition: AssetPropertyVariant.h:167
Aws::IoT::Model::AssetPropertyVariant::SetStringValue
void SetStringValue(const Aws::String &value)
Definition: AssetPropertyVariant.h:57
Aws::IoT::Model::AssetPropertyVariant::WithIntegerValue
AssetPropertyVariant & WithIntegerValue(Aws::String &&value)
Definition: AssetPropertyVariant.h:130
Aws::IoT::Model::AssetPropertyVariant::AssetPropertyVariant
AssetPropertyVariant()
Aws::IoT::Model::AssetPropertyVariant::SetBooleanValue
void SetBooleanValue(Aws::String &&value)
Definition: AssetPropertyVariant.h:210
Aws::IoT::Model::AssetPropertyVariant::WithDoubleValue
AssetPropertyVariant & WithDoubleValue(Aws::String &&value)
Definition: AssetPropertyVariant.h:179
Aws::IoT::Model::AssetPropertyVariant::WithStringValue
AssetPropertyVariant & WithStringValue(Aws::String &&value)
Definition: AssetPropertyVariant.h:81
Aws::IoT::Model::AssetPropertyVariant::SetIntegerValue
void SetIntegerValue(const Aws::String &value)
Definition: AssetPropertyVariant.h:106
Aws::IoT::Model::AssetPropertyVariant::WithStringValue
AssetPropertyVariant & WithStringValue(const char *value)
Definition: AssetPropertyVariant.h:87
Aws::IoT::Model::AssetPropertyVariant::SetStringValue
void SetStringValue(Aws::String &&value)
Definition: AssetPropertyVariant.h:63
Aws::IoT::Model::AssetPropertyVariant::GetIntegerValue
const Aws::String & GetIntegerValue() const
Definition: AssetPropertyVariant.h:94
Aws::IoT::Model::AssetPropertyVariant::WithDoubleValue
AssetPropertyVariant & WithDoubleValue(const char *value)
Definition: AssetPropertyVariant.h:185
Aws::IoT::Model::AssetPropertyVariant::SetBooleanValue
void SetBooleanValue(const Aws::String &value)
Definition: AssetPropertyVariant.h:204
Aws::IoT::Model::AssetPropertyVariant::WithDoubleValue
AssetPropertyVariant & WithDoubleValue(const Aws::String &value)
Definition: AssetPropertyVariant.h:173
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::IoT::Model::AssetPropertyVariant::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::AssetPropertyVariant::SetIntegerValue
void SetIntegerValue(Aws::String &&value)
Definition: AssetPropertyVariant.h:112
Aws::IoT::Model::AssetPropertyVariant::DoubleValueHasBeenSet
bool DoubleValueHasBeenSet() const
Definition: AssetPropertyVariant.h:149
Aws::IoT::Model::AssetPropertyVariant::SetIntegerValue
void SetIntegerValue(const char *value)
Definition: AssetPropertyVariant.h:118
Aws::IoT::Model::AssetPropertyVariant::WithBooleanValue
AssetPropertyVariant & WithBooleanValue(const Aws::String &value)
Definition: AssetPropertyVariant.h:222
Aws::IoT::Model::AssetPropertyVariant::GetDoubleValue
const Aws::String & GetDoubleValue() const
Definition: AssetPropertyVariant.h:143
Aws::IoT::Model::AssetPropertyVariant::SetDoubleValue
void SetDoubleValue(Aws::String &&value)
Definition: AssetPropertyVariant.h:161
Aws::IoT::Model::AssetPropertyVariant::IntegerValueHasBeenSet
bool IntegerValueHasBeenSet() const
Definition: AssetPropertyVariant.h:100
Aws::IoT::Model::AssetPropertyVariant::WithBooleanValue
AssetPropertyVariant & WithBooleanValue(Aws::String &&value)
Definition: AssetPropertyVariant.h:228
Aws::IoT::Model::AssetPropertyVariant::WithBooleanValue
AssetPropertyVariant & WithBooleanValue(const char *value)
Definition: AssetPropertyVariant.h:234
Aws::IoT::Model::AssetPropertyVariant::SetBooleanValue
void SetBooleanValue(const char *value)
Definition: AssetPropertyVariant.h:216
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::AssetPropertyVariant::SetDoubleValue
void SetDoubleValue(const Aws::String &value)
Definition: AssetPropertyVariant.h:155
Aws::IoT::Model::AssetPropertyVariant::GetBooleanValue
const Aws::String & GetBooleanValue() const
Definition: AssetPropertyVariant.h:192
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::AssetPropertyVariant::AssetPropertyVariant
AssetPropertyVariant(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::AssetPropertyVariant::WithStringValue
AssetPropertyVariant & WithStringValue(const Aws::String &value)
Definition: AssetPropertyVariant.h:75
Aws::IoT::Model::AssetPropertyVariant::StringValueHasBeenSet
bool StringValueHasBeenSet() const
Definition: AssetPropertyVariant.h:51
Aws::IoT::Model::AssetPropertyVariant::BooleanValueHasBeenSet
bool BooleanValueHasBeenSet() const
Definition: AssetPropertyVariant.h:198
IoT_EXPORTS.h