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/iot/IoT_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 IoT
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_IOT_API AssetPropertyVariant();
39
40
42
46 inline const Aws::String& GetStringValue() const{ return m_stringValue; }
47 inline bool StringValueHasBeenSet() const { return m_stringValueHasBeenSet; }
48 inline void SetStringValue(const Aws::String& value) { m_stringValueHasBeenSet = true; m_stringValue = value; }
49 inline void SetStringValue(Aws::String&& value) { m_stringValueHasBeenSet = true; m_stringValue = std::move(value); }
50 inline void SetStringValue(const char* value) { m_stringValueHasBeenSet = true; m_stringValue.assign(value); }
51 inline AssetPropertyVariant& WithStringValue(const Aws::String& value) { SetStringValue(value); return *this;}
52 inline AssetPropertyVariant& WithStringValue(Aws::String&& value) { SetStringValue(std::move(value)); return *this;}
53 inline AssetPropertyVariant& WithStringValue(const char* value) { SetStringValue(value); return *this;}
55
57
61 inline const Aws::String& GetIntegerValue() const{ return m_integerValue; }
62 inline bool IntegerValueHasBeenSet() const { return m_integerValueHasBeenSet; }
63 inline void SetIntegerValue(const Aws::String& value) { m_integerValueHasBeenSet = true; m_integerValue = value; }
64 inline void SetIntegerValue(Aws::String&& value) { m_integerValueHasBeenSet = true; m_integerValue = std::move(value); }
65 inline void SetIntegerValue(const char* value) { m_integerValueHasBeenSet = true; m_integerValue.assign(value); }
66 inline AssetPropertyVariant& WithIntegerValue(const Aws::String& value) { SetIntegerValue(value); return *this;}
67 inline AssetPropertyVariant& WithIntegerValue(Aws::String&& value) { SetIntegerValue(std::move(value)); return *this;}
68 inline AssetPropertyVariant& WithIntegerValue(const char* value) { SetIntegerValue(value); return *this;}
70
72
76 inline const Aws::String& GetDoubleValue() const{ return m_doubleValue; }
77 inline bool DoubleValueHasBeenSet() const { return m_doubleValueHasBeenSet; }
78 inline void SetDoubleValue(const Aws::String& value) { m_doubleValueHasBeenSet = true; m_doubleValue = value; }
79 inline void SetDoubleValue(Aws::String&& value) { m_doubleValueHasBeenSet = true; m_doubleValue = std::move(value); }
80 inline void SetDoubleValue(const char* value) { m_doubleValueHasBeenSet = true; m_doubleValue.assign(value); }
81 inline AssetPropertyVariant& WithDoubleValue(const Aws::String& value) { SetDoubleValue(value); return *this;}
82 inline AssetPropertyVariant& WithDoubleValue(Aws::String&& value) { SetDoubleValue(std::move(value)); return *this;}
83 inline AssetPropertyVariant& WithDoubleValue(const char* value) { SetDoubleValue(value); return *this;}
85
87
91 inline const Aws::String& GetBooleanValue() const{ return m_booleanValue; }
92 inline bool BooleanValueHasBeenSet() const { return m_booleanValueHasBeenSet; }
93 inline void SetBooleanValue(const Aws::String& value) { m_booleanValueHasBeenSet = true; m_booleanValue = value; }
94 inline void SetBooleanValue(Aws::String&& value) { m_booleanValueHasBeenSet = true; m_booleanValue = std::move(value); }
95 inline void SetBooleanValue(const char* value) { m_booleanValueHasBeenSet = true; m_booleanValue.assign(value); }
96 inline AssetPropertyVariant& WithBooleanValue(const Aws::String& value) { SetBooleanValue(value); return *this;}
97 inline AssetPropertyVariant& WithBooleanValue(Aws::String&& value) { SetBooleanValue(std::move(value)); return *this;}
98 inline AssetPropertyVariant& WithBooleanValue(const char* value) { SetBooleanValue(value); return *this;}
100 private:
101
102 Aws::String m_stringValue;
103 bool m_stringValueHasBeenSet = false;
104
105 Aws::String m_integerValue;
106 bool m_integerValueHasBeenSet = false;
107
108 Aws::String m_doubleValue;
109 bool m_doubleValueHasBeenSet = false;
110
111 Aws::String m_booleanValue;
112 bool m_booleanValueHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace IoT
117} // namespace Aws
AssetPropertyVariant & WithBooleanValue(const char *value)
AssetPropertyVariant & WithIntegerValue(const char *value)
AWS_IOT_API AssetPropertyVariant(Aws::Utils::Json::JsonView jsonValue)
void SetDoubleValue(const Aws::String &value)
const Aws::String & GetStringValue() const
AssetPropertyVariant & WithStringValue(const char *value)
AssetPropertyVariant & WithIntegerValue(Aws::String &&value)
void SetBooleanValue(const Aws::String &value)
void SetIntegerValue(const Aws::String &value)
AssetPropertyVariant & WithStringValue(Aws::String &&value)
void SetStringValue(const Aws::String &value)
const Aws::String & GetIntegerValue() const
AssetPropertyVariant & WithDoubleValue(const Aws::String &value)
AssetPropertyVariant & WithDoubleValue(const char *value)
const Aws::String & GetBooleanValue() const
AssetPropertyVariant & WithDoubleValue(Aws::String &&value)
AssetPropertyVariant & WithBooleanValue(Aws::String &&value)
AssetPropertyVariant & WithStringValue(const Aws::String &value)
AWS_IOT_API AssetPropertyVariant & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDoubleValue() const
AssetPropertyVariant & WithIntegerValue(const Aws::String &value)
AssetPropertyVariant & WithBooleanValue(const Aws::String &value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue