AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
FieldOption.h
1
6#pragma once
7#include <aws/connectcases/ConnectCases_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ConnectCases {
20namespace Model {
21
28 public:
29 AWS_CONNECTCASES_API FieldOption() = default;
30 AWS_CONNECTCASES_API FieldOption(Aws::Utils::Json::JsonView jsonValue);
31 AWS_CONNECTCASES_API FieldOption& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
39 inline const Aws::String& GetName() const { return m_name; }
40 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
41 template <typename NameT = Aws::String>
42 void SetName(NameT&& value) {
43 m_nameHasBeenSet = true;
44 m_name = std::forward<NameT>(value);
45 }
46 template <typename NameT = Aws::String>
47 FieldOption& WithName(NameT&& value) {
48 SetName(std::forward<NameT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetValue() const { return m_value; }
59 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
60 template <typename ValueT = Aws::String>
61 void SetValue(ValueT&& value) {
62 m_valueHasBeenSet = true;
63 m_value = std::forward<ValueT>(value);
64 }
65 template <typename ValueT = Aws::String>
66 FieldOption& WithValue(ValueT&& value) {
67 SetValue(std::forward<ValueT>(value));
68 return *this;
69 }
71
73
77 inline bool GetActive() const { return m_active; }
78 inline bool ActiveHasBeenSet() const { return m_activeHasBeenSet; }
79 inline void SetActive(bool value) {
80 m_activeHasBeenSet = true;
81 m_active = value;
82 }
83 inline FieldOption& WithActive(bool value) {
84 SetActive(value);
85 return *this;
86 }
88 private:
89 Aws::String m_name;
90
91 Aws::String m_value;
92
93 bool m_active{false};
94 bool m_nameHasBeenSet = false;
95 bool m_valueHasBeenSet = false;
96 bool m_activeHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace ConnectCases
101} // namespace Aws
FieldOption & WithValue(ValueT &&value)
Definition FieldOption.h:66
AWS_CONNECTCASES_API FieldOption & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetValue() const
Definition FieldOption.h:58
AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const
FieldOption & WithActive(bool value)
Definition FieldOption.h:83
const Aws::String & GetName() const
Definition FieldOption.h:39
AWS_CONNECTCASES_API FieldOption(Aws::Utils::Json::JsonView jsonValue)
FieldOption & WithName(NameT &&value)
Definition FieldOption.h:47
AWS_CONNECTCASES_API FieldOption()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue