AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
VariableValue.h
1
6#pragma once
7#include <aws/evidently/CloudWatchEvidently_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 CloudWatchEvidently
22{
23namespace Model
24{
25
35 {
36 public:
37 AWS_CLOUDWATCHEVIDENTLY_API VariableValue();
38 AWS_CLOUDWATCHEVIDENTLY_API VariableValue(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CLOUDWATCHEVIDENTLY_API VariableValue& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CLOUDWATCHEVIDENTLY_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline bool GetBoolValue() const{ return m_boolValue; }
49 inline bool BoolValueHasBeenSet() const { return m_boolValueHasBeenSet; }
50 inline void SetBoolValue(bool value) { m_boolValueHasBeenSet = true; m_boolValue = value; }
51 inline VariableValue& WithBoolValue(bool value) { SetBoolValue(value); return *this;}
53
55
59 inline double GetDoubleValue() const{ return m_doubleValue; }
60 inline bool DoubleValueHasBeenSet() const { return m_doubleValueHasBeenSet; }
61 inline void SetDoubleValue(double value) { m_doubleValueHasBeenSet = true; m_doubleValue = value; }
62 inline VariableValue& WithDoubleValue(double value) { SetDoubleValue(value); return *this;}
64
66
70 inline long long GetLongValue() const{ return m_longValue; }
71 inline bool LongValueHasBeenSet() const { return m_longValueHasBeenSet; }
72 inline void SetLongValue(long long value) { m_longValueHasBeenSet = true; m_longValue = value; }
73 inline VariableValue& WithLongValue(long long value) { SetLongValue(value); return *this;}
75
77
81 inline const Aws::String& GetStringValue() const{ return m_stringValue; }
82 inline bool StringValueHasBeenSet() const { return m_stringValueHasBeenSet; }
83 inline void SetStringValue(const Aws::String& value) { m_stringValueHasBeenSet = true; m_stringValue = value; }
84 inline void SetStringValue(Aws::String&& value) { m_stringValueHasBeenSet = true; m_stringValue = std::move(value); }
85 inline void SetStringValue(const char* value) { m_stringValueHasBeenSet = true; m_stringValue.assign(value); }
86 inline VariableValue& WithStringValue(const Aws::String& value) { SetStringValue(value); return *this;}
87 inline VariableValue& WithStringValue(Aws::String&& value) { SetStringValue(std::move(value)); return *this;}
88 inline VariableValue& WithStringValue(const char* value) { SetStringValue(value); return *this;}
90 private:
91
92 bool m_boolValue;
93 bool m_boolValueHasBeenSet = false;
94
95 double m_doubleValue;
96 bool m_doubleValueHasBeenSet = false;
97
98 long long m_longValue;
99 bool m_longValueHasBeenSet = false;
100
101 Aws::String m_stringValue;
102 bool m_stringValueHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace CloudWatchEvidently
107} // namespace Aws
VariableValue & WithDoubleValue(double value)
void SetStringValue(const Aws::String &value)
AWS_CLOUDWATCHEVIDENTLY_API VariableValue & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDWATCHEVIDENTLY_API VariableValue()
VariableValue & WithStringValue(const Aws::String &value)
AWS_CLOUDWATCHEVIDENTLY_API Aws::Utils::Json::JsonValue Jsonize() const
VariableValue & WithStringValue(Aws::String &&value)
AWS_CLOUDWATCHEVIDENTLY_API VariableValue(Aws::Utils::Json::JsonView jsonValue)
VariableValue & WithLongValue(long long value)
VariableValue & WithStringValue(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue