AWS SDK for C++  1.9.156
AWS SDK for C++
Variant.h
Go to the documentation of this file.
1 
6 #pragma once
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 IoTSiteWise
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetStringValue() const{ return m_stringValue; }
45 
49  inline bool StringValueHasBeenSet() const { return m_stringValueHasBeenSet; }
50 
54  inline void SetStringValue(const Aws::String& value) { m_stringValueHasBeenSet = true; m_stringValue = value; }
55 
59  inline void SetStringValue(Aws::String&& value) { m_stringValueHasBeenSet = true; m_stringValue = std::move(value); }
60 
64  inline void SetStringValue(const char* value) { m_stringValueHasBeenSet = true; m_stringValue.assign(value); }
65 
69  inline Variant& WithStringValue(const Aws::String& value) { SetStringValue(value); return *this;}
70 
74  inline Variant& WithStringValue(Aws::String&& value) { SetStringValue(std::move(value)); return *this;}
75 
79  inline Variant& WithStringValue(const char* value) { SetStringValue(value); return *this;}
80 
81 
85  inline int GetIntegerValue() const{ return m_integerValue; }
86 
90  inline bool IntegerValueHasBeenSet() const { return m_integerValueHasBeenSet; }
91 
95  inline void SetIntegerValue(int value) { m_integerValueHasBeenSet = true; m_integerValue = value; }
96 
100  inline Variant& WithIntegerValue(int value) { SetIntegerValue(value); return *this;}
101 
102 
106  inline double GetDoubleValue() const{ return m_doubleValue; }
107 
111  inline bool DoubleValueHasBeenSet() const { return m_doubleValueHasBeenSet; }
112 
116  inline void SetDoubleValue(double value) { m_doubleValueHasBeenSet = true; m_doubleValue = value; }
117 
121  inline Variant& WithDoubleValue(double value) { SetDoubleValue(value); return *this;}
122 
123 
127  inline bool GetBooleanValue() const{ return m_booleanValue; }
128 
132  inline bool BooleanValueHasBeenSet() const { return m_booleanValueHasBeenSet; }
133 
137  inline void SetBooleanValue(bool value) { m_booleanValueHasBeenSet = true; m_booleanValue = value; }
138 
142  inline Variant& WithBooleanValue(bool value) { SetBooleanValue(value); return *this;}
143 
144  private:
145 
146  Aws::String m_stringValue;
147  bool m_stringValueHasBeenSet;
148 
149  int m_integerValue;
150  bool m_integerValueHasBeenSet;
151 
152  double m_doubleValue;
153  bool m_doubleValueHasBeenSet;
154 
155  bool m_booleanValue;
156  bool m_booleanValueHasBeenSet;
157  };
158 
159 } // namespace Model
160 } // namespace IoTSiteWise
161 } // namespace Aws
Aws::IoTSiteWise::Model::Variant::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoTSiteWise::Model::Variant::SetIntegerValue
void SetIntegerValue(int value)
Definition: Variant.h:95
Aws::IoTSiteWise::Model::Variant::GetStringValue
const Aws::String & GetStringValue() const
Definition: Variant.h:44
IoTSiteWise_EXPORTS.h
AWS_IOTSITEWISE_API
#define AWS_IOTSITEWISE_API
Definition: IoTSiteWise_EXPORTS.h:28
Aws::IoTSiteWise::Model::Variant::GetIntegerValue
int GetIntegerValue() const
Definition: Variant.h:85
Aws::IoTSiteWise::Model::Variant::WithStringValue
Variant & WithStringValue(const Aws::String &value)
Definition: Variant.h:69
Aws::IoTSiteWise::Model::Variant::Variant
Variant(Aws::Utils::Json::JsonView jsonValue)
Aws::IoTSiteWise::Model::Variant::GetDoubleValue
double GetDoubleValue() const
Definition: Variant.h:106
Aws::IoTSiteWise::Model::Variant::IntegerValueHasBeenSet
bool IntegerValueHasBeenSet() const
Definition: Variant.h:90
Aws::IoTSiteWise::Model::Variant::SetBooleanValue
void SetBooleanValue(bool value)
Definition: Variant.h:137
Aws::IoTSiteWise::Model::Variant::SetStringValue
void SetStringValue(Aws::String &&value)
Definition: Variant.h:59
Aws::IoTSiteWise::Model::Variant::operator=
Variant & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoTSiteWise::Model::Variant::StringValueHasBeenSet
bool StringValueHasBeenSet() const
Definition: Variant.h:49
Aws::IoTSiteWise::Model::Variant::WithBooleanValue
Variant & WithBooleanValue(bool value)
Definition: Variant.h:142
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoTSiteWise::Model::Variant::WithStringValue
Variant & WithStringValue(const char *value)
Definition: Variant.h:79
Aws::IoTSiteWise::Model::Variant
Definition: Variant.h:33
Aws::IoTSiteWise::Model::Variant::WithDoubleValue
Variant & WithDoubleValue(double value)
Definition: Variant.h:121
Aws::IoTSiteWise::Model::Variant::WithIntegerValue
Variant & WithIntegerValue(int value)
Definition: Variant.h:100
Aws::IoTSiteWise::Model::Variant::SetDoubleValue
void SetDoubleValue(double value)
Definition: Variant.h:116
Aws::IoTSiteWise::Model::Variant::SetStringValue
void SetStringValue(const Aws::String &value)
Definition: Variant.h:54
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoTSiteWise::Model::Variant::DoubleValueHasBeenSet
bool DoubleValueHasBeenSet() const
Definition: Variant.h:111
Aws::IoTSiteWise::Model::Variant::BooleanValueHasBeenSet
bool BooleanValueHasBeenSet() const
Definition: Variant.h:132
Aws::IoTSiteWise::Model::Variant::WithStringValue
Variant & WithStringValue(Aws::String &&value)
Definition: Variant.h:74
Aws::IoTSiteWise::Model::Variant::SetStringValue
void SetStringValue(const char *value)
Definition: Variant.h:64
Aws::IoTSiteWise::Model::Variant::GetBooleanValue
bool GetBooleanValue() const
Definition: Variant.h:127
Aws::IoTSiteWise::Model::Variant::Variant
Variant()