AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AuditEventFieldValueUnion.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
33 {
34 public:
35 AWS_CONNECTCASES_API AuditEventFieldValueUnion();
38 AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline bool GetBooleanValue() const{ return m_booleanValue; }
47 inline bool BooleanValueHasBeenSet() const { return m_booleanValueHasBeenSet; }
48 inline void SetBooleanValue(bool value) { m_booleanValueHasBeenSet = true; m_booleanValue = value; }
49 inline AuditEventFieldValueUnion& WithBooleanValue(bool value) { SetBooleanValue(value); return *this;}
51
53
57 inline double GetDoubleValue() const{ return m_doubleValue; }
58 inline bool DoubleValueHasBeenSet() const { return m_doubleValueHasBeenSet; }
59 inline void SetDoubleValue(double value) { m_doubleValueHasBeenSet = true; m_doubleValue = value; }
60 inline AuditEventFieldValueUnion& WithDoubleValue(double value) { SetDoubleValue(value); return *this;}
62
64
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 AuditEventFieldValueUnion& WithEmptyValue(const EmptyFieldValue& value) { SetEmptyValue(value); return *this;}
70 inline AuditEventFieldValueUnion& WithEmptyValue(EmptyFieldValue&& value) { SetEmptyValue(std::move(value)); return *this;}
72
74
78 inline const Aws::String& GetStringValue() const{ return m_stringValue; }
79 inline bool StringValueHasBeenSet() const { return m_stringValueHasBeenSet; }
80 inline void SetStringValue(const Aws::String& value) { m_stringValueHasBeenSet = true; m_stringValue = value; }
81 inline void SetStringValue(Aws::String&& value) { m_stringValueHasBeenSet = true; m_stringValue = std::move(value); }
82 inline void SetStringValue(const char* value) { m_stringValueHasBeenSet = true; m_stringValue.assign(value); }
83 inline AuditEventFieldValueUnion& WithStringValue(const Aws::String& value) { SetStringValue(value); return *this;}
84 inline AuditEventFieldValueUnion& WithStringValue(Aws::String&& value) { SetStringValue(std::move(value)); return *this;}
85 inline AuditEventFieldValueUnion& WithStringValue(const char* value) { SetStringValue(value); return *this;}
87
89
93 inline const Aws::String& GetUserArnValue() const{ return m_userArnValue; }
94 inline bool UserArnValueHasBeenSet() const { return m_userArnValueHasBeenSet; }
95 inline void SetUserArnValue(const Aws::String& value) { m_userArnValueHasBeenSet = true; m_userArnValue = value; }
96 inline void SetUserArnValue(Aws::String&& value) { m_userArnValueHasBeenSet = true; m_userArnValue = std::move(value); }
97 inline void SetUserArnValue(const char* value) { m_userArnValueHasBeenSet = true; m_userArnValue.assign(value); }
98 inline AuditEventFieldValueUnion& WithUserArnValue(const Aws::String& value) { SetUserArnValue(value); return *this;}
99 inline AuditEventFieldValueUnion& WithUserArnValue(Aws::String&& value) { SetUserArnValue(std::move(value)); return *this;}
100 inline AuditEventFieldValueUnion& WithUserArnValue(const char* value) { SetUserArnValue(value); return *this;}
102 private:
103
104 bool m_booleanValue;
105 bool m_booleanValueHasBeenSet = false;
106
107 double m_doubleValue;
108 bool m_doubleValueHasBeenSet = false;
109
110 EmptyFieldValue m_emptyValue;
111 bool m_emptyValueHasBeenSet = false;
112
113 Aws::String m_stringValue;
114 bool m_stringValueHasBeenSet = false;
115
116 Aws::String m_userArnValue;
117 bool m_userArnValueHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace ConnectCases
122} // namespace Aws
AuditEventFieldValueUnion & WithDoubleValue(double value)
AuditEventFieldValueUnion & WithStringValue(const char *value)
AuditEventFieldValueUnion & WithUserArnValue(const char *value)
AuditEventFieldValueUnion & WithUserArnValue(Aws::String &&value)
AWS_CONNECTCASES_API AuditEventFieldValueUnion & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECTCASES_API AuditEventFieldValueUnion(Aws::Utils::Json::JsonView jsonValue)
AuditEventFieldValueUnion & WithEmptyValue(const EmptyFieldValue &value)
AuditEventFieldValueUnion & WithEmptyValue(EmptyFieldValue &&value)
AuditEventFieldValueUnion & WithStringValue(Aws::String &&value)
AuditEventFieldValueUnion & WithBooleanValue(bool value)
AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const
AuditEventFieldValueUnion & WithUserArnValue(const Aws::String &value)
AuditEventFieldValueUnion & WithStringValue(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue