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/connectcases/ConnectCases_EXPORTS.h>
8#include <aws/connectcases/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 ConnectCases
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_CONNECTCASES_API FieldValueUnion();
38 AWS_CONNECTCASES_API FieldValueUnion(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CONNECTCASES_API FieldValueUnion& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline bool GetBooleanValue() const{ return m_booleanValue; }
49 inline bool BooleanValueHasBeenSet() const { return m_booleanValueHasBeenSet; }
50 inline void SetBooleanValue(bool value) { m_booleanValueHasBeenSet = true; m_booleanValue = value; }
51 inline FieldValueUnion& WithBooleanValue(bool value) { SetBooleanValue(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 FieldValueUnion& WithDoubleValue(double value) { SetDoubleValue(value); return *this;}
64
66
69 inline const EmptyFieldValue& GetEmptyValue() const{ return m_emptyValue; }
70 inline bool EmptyValueHasBeenSet() const { return m_emptyValueHasBeenSet; }
71 inline void SetEmptyValue(const EmptyFieldValue& value) { m_emptyValueHasBeenSet = true; m_emptyValue = value; }
72 inline void SetEmptyValue(EmptyFieldValue&& value) { m_emptyValueHasBeenSet = true; m_emptyValue = std::move(value); }
73 inline FieldValueUnion& WithEmptyValue(const EmptyFieldValue& value) { SetEmptyValue(value); return *this;}
74 inline FieldValueUnion& WithEmptyValue(EmptyFieldValue&& value) { SetEmptyValue(std::move(value)); return *this;}
76
78
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 FieldValueUnion& WithStringValue(const Aws::String& value) { SetStringValue(value); return *this;}
87 inline FieldValueUnion& WithStringValue(Aws::String&& value) { SetStringValue(std::move(value)); return *this;}
88 inline FieldValueUnion& WithStringValue(const char* value) { SetStringValue(value); return *this;}
90
92
95 inline const Aws::String& GetUserArnValue() const{ return m_userArnValue; }
96 inline bool UserArnValueHasBeenSet() const { return m_userArnValueHasBeenSet; }
97 inline void SetUserArnValue(const Aws::String& value) { m_userArnValueHasBeenSet = true; m_userArnValue = value; }
98 inline void SetUserArnValue(Aws::String&& value) { m_userArnValueHasBeenSet = true; m_userArnValue = std::move(value); }
99 inline void SetUserArnValue(const char* value) { m_userArnValueHasBeenSet = true; m_userArnValue.assign(value); }
100 inline FieldValueUnion& WithUserArnValue(const Aws::String& value) { SetUserArnValue(value); return *this;}
101 inline FieldValueUnion& WithUserArnValue(Aws::String&& value) { SetUserArnValue(std::move(value)); return *this;}
102 inline FieldValueUnion& WithUserArnValue(const char* value) { SetUserArnValue(value); return *this;}
104 private:
105
106 bool m_booleanValue;
107 bool m_booleanValueHasBeenSet = false;
108
109 double m_doubleValue;
110 bool m_doubleValueHasBeenSet = false;
111
112 EmptyFieldValue m_emptyValue;
113 bool m_emptyValueHasBeenSet = false;
114
115 Aws::String m_stringValue;
116 bool m_stringValueHasBeenSet = false;
117
118 Aws::String m_userArnValue;
119 bool m_userArnValueHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace ConnectCases
124} // namespace Aws
void SetUserArnValue(const Aws::String &value)
void SetEmptyValue(const EmptyFieldValue &value)
AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const
void SetUserArnValue(Aws::String &&value)
AWS_CONNECTCASES_API FieldValueUnion & operator=(Aws::Utils::Json::JsonView jsonValue)
FieldValueUnion & WithStringValue(const Aws::String &value)
FieldValueUnion & WithEmptyValue(const EmptyFieldValue &value)
void SetStringValue(const Aws::String &value)
void SetEmptyValue(EmptyFieldValue &&value)
FieldValueUnion & WithUserArnValue(const char *value)
const Aws::String & GetUserArnValue() const
FieldValueUnion & WithUserArnValue(const Aws::String &value)
FieldValueUnion & WithStringValue(const char *value)
FieldValueUnion & WithStringValue(Aws::String &&value)
const Aws::String & GetStringValue() const
const EmptyFieldValue & GetEmptyValue() const
FieldValueUnion & WithBooleanValue(bool value)
FieldValueUnion & WithUserArnValue(Aws::String &&value)
FieldValueUnion & WithEmptyValue(EmptyFieldValue &&value)
AWS_CONNECTCASES_API FieldValueUnion(Aws::Utils::Json::JsonView jsonValue)
FieldValueUnion & WithDoubleValue(double value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue