AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
FieldValue.h
1
6#pragma once
7#include <aws/connectcases/ConnectCases_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/connectcases/model/FieldValueUnion.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 FieldValue();
36 AWS_CONNECTCASES_API FieldValue(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CONNECTCASES_API FieldValue& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetId() const{ return m_id; }
46 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
47 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
48 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
49 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
50 inline FieldValue& WithId(const Aws::String& value) { SetId(value); return *this;}
51 inline FieldValue& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
52 inline FieldValue& WithId(const char* value) { SetId(value); return *this;}
54
56
59 inline const FieldValueUnion& GetValue() const{ return m_value; }
60 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
61 inline void SetValue(const FieldValueUnion& value) { m_valueHasBeenSet = true; m_value = value; }
62 inline void SetValue(FieldValueUnion&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
63 inline FieldValue& WithValue(const FieldValueUnion& value) { SetValue(value); return *this;}
64 inline FieldValue& WithValue(FieldValueUnion&& value) { SetValue(std::move(value)); return *this;}
66 private:
67
68 Aws::String m_id;
69 bool m_idHasBeenSet = false;
70
71 FieldValueUnion m_value;
72 bool m_valueHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace ConnectCases
77} // namespace Aws
FieldValue & WithId(const Aws::String &value)
Definition FieldValue.h:50
AWS_CONNECTCASES_API FieldValue()
FieldValue & WithId(const char *value)
Definition FieldValue.h:52
void SetId(Aws::String &&value)
Definition FieldValue.h:48
const Aws::String & GetId() const
Definition FieldValue.h:45
void SetValue(const FieldValueUnion &value)
Definition FieldValue.h:61
FieldValue & WithValue(const FieldValueUnion &value)
Definition FieldValue.h:63
AWS_CONNECTCASES_API FieldValue & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetId(const char *value)
Definition FieldValue.h:49
AWS_CONNECTCASES_API FieldValue(Aws::Utils::Json::JsonView jsonValue)
FieldValue & WithValue(FieldValueUnion &&value)
Definition FieldValue.h:64
FieldValue & WithId(Aws::String &&value)
Definition FieldValue.h:51
AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const
void SetId(const Aws::String &value)
Definition FieldValue.h:47
void SetValue(FieldValueUnion &&value)
Definition FieldValue.h:62
const FieldValueUnion & GetValue() const
Definition FieldValue.h:59
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue