AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
FieldValueUnion.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/EmptyFieldValue.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Connect
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_CONNECT_API FieldValueUnion();
36 AWS_CONNECT_API FieldValueUnion(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline bool GetBooleanValue() const{ return m_booleanValue; }
46 inline bool BooleanValueHasBeenSet() const { return m_booleanValueHasBeenSet; }
47 inline void SetBooleanValue(bool value) { m_booleanValueHasBeenSet = true; m_booleanValue = value; }
48 inline FieldValueUnion& WithBooleanValue(bool value) { SetBooleanValue(value); return *this;}
50
52
55 inline double GetDoubleValue() const{ return m_doubleValue; }
56 inline bool DoubleValueHasBeenSet() const { return m_doubleValueHasBeenSet; }
57 inline void SetDoubleValue(double value) { m_doubleValueHasBeenSet = true; m_doubleValue = value; }
58 inline FieldValueUnion& WithDoubleValue(double value) { SetDoubleValue(value); return *this;}
60
62
65 inline const EmptyFieldValue& GetEmptyValue() const{ return m_emptyValue; }
66 inline bool EmptyValueHasBeenSet() const { return m_emptyValueHasBeenSet; }
67 inline void SetEmptyValue(const EmptyFieldValue& value) { m_emptyValueHasBeenSet = true; m_emptyValue = value; }
68 inline void SetEmptyValue(EmptyFieldValue&& value) { m_emptyValueHasBeenSet = true; m_emptyValue = std::move(value); }
69 inline FieldValueUnion& WithEmptyValue(const EmptyFieldValue& value) { SetEmptyValue(value); return *this;}
70 inline FieldValueUnion& WithEmptyValue(EmptyFieldValue&& value) { SetEmptyValue(std::move(value)); return *this;}
72
74
77 inline const Aws::String& GetStringValue() const{ return m_stringValue; }
78 inline bool StringValueHasBeenSet() const { return m_stringValueHasBeenSet; }
79 inline void SetStringValue(const Aws::String& value) { m_stringValueHasBeenSet = true; m_stringValue = value; }
80 inline void SetStringValue(Aws::String&& value) { m_stringValueHasBeenSet = true; m_stringValue = std::move(value); }
81 inline void SetStringValue(const char* value) { m_stringValueHasBeenSet = true; m_stringValue.assign(value); }
82 inline FieldValueUnion& WithStringValue(const Aws::String& value) { SetStringValue(value); return *this;}
83 inline FieldValueUnion& WithStringValue(Aws::String&& value) { SetStringValue(std::move(value)); return *this;}
84 inline FieldValueUnion& WithStringValue(const char* value) { SetStringValue(value); return *this;}
86 private:
87
88 bool m_booleanValue;
89 bool m_booleanValueHasBeenSet = false;
90
91 double m_doubleValue;
92 bool m_doubleValueHasBeenSet = false;
93
94 EmptyFieldValue m_emptyValue;
95 bool m_emptyValueHasBeenSet = false;
96
97 Aws::String m_stringValue;
98 bool m_stringValueHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace Connect
103} // namespace Aws
FieldValueUnion & WithStringValue(const Aws::String &value)
FieldValueUnion & WithEmptyValue(EmptyFieldValue &&value)
const EmptyFieldValue & GetEmptyValue() const
void SetEmptyValue(const EmptyFieldValue &value)
FieldValueUnion & WithEmptyValue(const EmptyFieldValue &value)
void SetStringValue(Aws::String &&value)
const Aws::String & GetStringValue() const
FieldValueUnion & WithStringValue(Aws::String &&value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONNECT_API FieldValueUnion(Aws::Utils::Json::JsonView jsonValue)
void SetStringValue(const Aws::String &value)
AWS_CONNECT_API FieldValueUnion & operator=(Aws::Utils::Json::JsonView jsonValue)
FieldValueUnion & WithBooleanValue(bool value)
FieldValueUnion & WithStringValue(const char *value)
void SetStringValue(const char *value)
FieldValueUnion & WithDoubleValue(double value)
void SetEmptyValue(EmptyFieldValue &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue