AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ConnectCases
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_CONNECTCASES_API FieldOption() = default;
35 AWS_CONNECTCASES_API FieldOption(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CONNECTCASES_API FieldOption& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
45 inline bool GetActive() const { return m_active; }
46 inline bool ActiveHasBeenSet() const { return m_activeHasBeenSet; }
47 inline void SetActive(bool value) { m_activeHasBeenSet = true; m_active = value; }
48 inline FieldOption& WithActive(bool value) { SetActive(value); return *this;}
50
52
56 inline const Aws::String& GetName() const { return m_name; }
57 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
58 template<typename NameT = Aws::String>
59 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
60 template<typename NameT = Aws::String>
61 FieldOption& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
63
65
69 inline const Aws::String& GetValue() const { return m_value; }
70 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
71 template<typename ValueT = Aws::String>
72 void SetValue(ValueT&& value) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
73 template<typename ValueT = Aws::String>
74 FieldOption& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
76 private:
77
78 bool m_active{false};
79 bool m_activeHasBeenSet = false;
80
81 Aws::String m_name;
82 bool m_nameHasBeenSet = false;
83
84 Aws::String m_value;
85 bool m_valueHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace ConnectCases
90} // namespace Aws
FieldOption & WithValue(ValueT &&value)
Definition FieldOption.h:74
AWS_CONNECTCASES_API FieldOption & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetValue() const
Definition FieldOption.h:69
AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const
FieldOption & WithActive(bool value)
Definition FieldOption.h:48
const Aws::String & GetName() const
Definition FieldOption.h:56
AWS_CONNECTCASES_API FieldOption(Aws::Utils::Json::JsonView jsonValue)
FieldOption & WithName(NameT &&value)
Definition FieldOption.h:61
AWS_CONNECTCASES_API FieldOption()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue