AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Variant.h
1
6#pragma once
7#include <aws/iotsitewise/IoTSiteWise_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 IoTSiteWise
22{
23namespace Model
24{
25
32 class Variant
33 {
34 public:
35 AWS_IOTSITEWISE_API Variant();
36 AWS_IOTSITEWISE_API Variant(Aws::Utils::Json::JsonView jsonValue);
37 AWS_IOTSITEWISE_API Variant& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetStringValue() const{ return m_stringValue; }
46 inline bool StringValueHasBeenSet() const { return m_stringValueHasBeenSet; }
47 inline void SetStringValue(const Aws::String& value) { m_stringValueHasBeenSet = true; m_stringValue = value; }
48 inline void SetStringValue(Aws::String&& value) { m_stringValueHasBeenSet = true; m_stringValue = std::move(value); }
49 inline void SetStringValue(const char* value) { m_stringValueHasBeenSet = true; m_stringValue.assign(value); }
50 inline Variant& WithStringValue(const Aws::String& value) { SetStringValue(value); return *this;}
51 inline Variant& WithStringValue(Aws::String&& value) { SetStringValue(std::move(value)); return *this;}
52 inline Variant& WithStringValue(const char* value) { SetStringValue(value); return *this;}
54
56
59 inline int GetIntegerValue() const{ return m_integerValue; }
60 inline bool IntegerValueHasBeenSet() const { return m_integerValueHasBeenSet; }
61 inline void SetIntegerValue(int value) { m_integerValueHasBeenSet = true; m_integerValue = value; }
62 inline Variant& WithIntegerValue(int value) { SetIntegerValue(value); return *this;}
64
66
69 inline double GetDoubleValue() const{ return m_doubleValue; }
70 inline bool DoubleValueHasBeenSet() const { return m_doubleValueHasBeenSet; }
71 inline void SetDoubleValue(double value) { m_doubleValueHasBeenSet = true; m_doubleValue = value; }
72 inline Variant& WithDoubleValue(double value) { SetDoubleValue(value); return *this;}
74
76
79 inline bool GetBooleanValue() const{ return m_booleanValue; }
80 inline bool BooleanValueHasBeenSet() const { return m_booleanValueHasBeenSet; }
81 inline void SetBooleanValue(bool value) { m_booleanValueHasBeenSet = true; m_booleanValue = value; }
82 inline Variant& WithBooleanValue(bool value) { SetBooleanValue(value); return *this;}
84 private:
85
86 Aws::String m_stringValue;
87 bool m_stringValueHasBeenSet = false;
88
89 int m_integerValue;
90 bool m_integerValueHasBeenSet = false;
91
92 double m_doubleValue;
93 bool m_doubleValueHasBeenSet = false;
94
95 bool m_booleanValue;
96 bool m_booleanValueHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace IoTSiteWise
101} // namespace Aws
Variant & WithStringValue(const char *value)
Definition Variant.h:52
Variant & WithBooleanValue(bool value)
Definition Variant.h:82
Variant & WithIntegerValue(int value)
Definition Variant.h:62
bool BooleanValueHasBeenSet() const
Definition Variant.h:80
bool StringValueHasBeenSet() const
Definition Variant.h:46
const Aws::String & GetStringValue() const
Definition Variant.h:45
void SetIntegerValue(int value)
Definition Variant.h:61
Variant & WithStringValue(Aws::String &&value)
Definition Variant.h:51
void SetDoubleValue(double value)
Definition Variant.h:71
void SetStringValue(const Aws::String &value)
Definition Variant.h:47
Variant & WithDoubleValue(double value)
Definition Variant.h:72
double GetDoubleValue() const
Definition Variant.h:69
AWS_IOTSITEWISE_API Variant()
void SetStringValue(const char *value)
Definition Variant.h:49
bool IntegerValueHasBeenSet() const
Definition Variant.h:60
void SetBooleanValue(bool value)
Definition Variant.h:81
Variant & WithStringValue(const Aws::String &value)
Definition Variant.h:50
bool DoubleValueHasBeenSet() const
Definition Variant.h:70
void SetStringValue(Aws::String &&value)
Definition Variant.h:48
AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOTSITEWISE_API Variant(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTSITEWISE_API Variant & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue