AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
59 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
60 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
61 inline FieldOption& WithName(const Aws::String& value) { SetName(value); return *this;}
62 inline FieldOption& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
63 inline FieldOption& WithName(const char* value) { SetName(value); return *this;}
65
67
71 inline const Aws::String& GetValue() const{ return m_value; }
72 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
73 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
74 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
75 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
76 inline FieldOption& WithValue(const Aws::String& value) { SetValue(value); return *this;}
77 inline FieldOption& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
78 inline FieldOption& WithValue(const char* value) { SetValue(value); return *this;}
80 private:
81
82 bool m_active;
83 bool m_activeHasBeenSet = false;
84
85 Aws::String m_name;
86 bool m_nameHasBeenSet = false;
87
88 Aws::String m_value;
89 bool m_valueHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace ConnectCases
94} // namespace Aws
void SetName(const char *value)
Definition FieldOption.h:60
AWS_CONNECTCASES_API FieldOption & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetValue() const
Definition FieldOption.h:71
AWS_CONNECTCASES_API Aws::Utils::Json::JsonValue Jsonize() const
FieldOption & WithValue(const Aws::String &value)
Definition FieldOption.h:76
FieldOption & WithActive(bool value)
Definition FieldOption.h:48
const Aws::String & GetName() const
Definition FieldOption.h:56
FieldOption & WithName(Aws::String &&value)
Definition FieldOption.h:62
void SetName(const Aws::String &value)
Definition FieldOption.h:58
AWS_CONNECTCASES_API FieldOption(Aws::Utils::Json::JsonView jsonValue)
void SetValue(const Aws::String &value)
Definition FieldOption.h:73
FieldOption & WithValue(Aws::String &&value)
Definition FieldOption.h:77
FieldOption & WithValue(const char *value)
Definition FieldOption.h:78
FieldOption & WithName(const char *value)
Definition FieldOption.h:63
void SetValue(const char *value)
Definition FieldOption.h:75
void SetName(Aws::String &&value)
Definition FieldOption.h:59
void SetValue(Aws::String &&value)
Definition FieldOption.h:74
AWS_CONNECTCASES_API FieldOption()
FieldOption & WithName(const Aws::String &value)
Definition FieldOption.h:61
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue