AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
Setting.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/wickr/Wickr_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Wickr {
20namespace Model {
21
29class Setting {
30 public:
31 AWS_WICKR_API Setting() = default;
32 AWS_WICKR_API Setting(Aws::Utils::Json::JsonView jsonValue);
33 AWS_WICKR_API Setting& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_WICKR_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetOptionName() const { return m_optionName; }
42 inline bool OptionNameHasBeenSet() const { return m_optionNameHasBeenSet; }
43 template <typename OptionNameT = Aws::String>
44 void SetOptionName(OptionNameT&& value) {
45 m_optionNameHasBeenSet = true;
46 m_optionName = std::forward<OptionNameT>(value);
47 }
48 template <typename OptionNameT = Aws::String>
49 Setting& WithOptionName(OptionNameT&& value) {
50 SetOptionName(std::forward<OptionNameT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetValue() const { return m_value; }
61 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
62 template <typename ValueT = Aws::String>
63 void SetValue(ValueT&& value) {
64 m_valueHasBeenSet = true;
65 m_value = std::forward<ValueT>(value);
66 }
67 template <typename ValueT = Aws::String>
68 Setting& WithValue(ValueT&& value) {
69 SetValue(std::forward<ValueT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetType() const { return m_type; }
79 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
80 template <typename TypeT = Aws::String>
81 void SetType(TypeT&& value) {
82 m_typeHasBeenSet = true;
83 m_type = std::forward<TypeT>(value);
84 }
85 template <typename TypeT = Aws::String>
86 Setting& WithType(TypeT&& value) {
87 SetType(std::forward<TypeT>(value));
88 return *this;
89 }
91 private:
92 Aws::String m_optionName;
93
94 Aws::String m_value;
95
96 Aws::String m_type;
97 bool m_optionNameHasBeenSet = false;
98 bool m_valueHasBeenSet = false;
99 bool m_typeHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace Wickr
104} // namespace Aws
const Aws::String & GetOptionName() const
Definition Setting.h:41
void SetType(TypeT &&value)
Definition Setting.h:81
void SetValue(ValueT &&value)
Definition Setting.h:63
void SetOptionName(OptionNameT &&value)
Definition Setting.h:44
const Aws::String & GetType() const
Definition Setting.h:78
Setting & WithType(TypeT &&value)
Definition Setting.h:86
const Aws::String & GetValue() const
Definition Setting.h:60
AWS_WICKR_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_WICKR_API Setting()=default
bool ValueHasBeenSet() const
Definition Setting.h:61
bool TypeHasBeenSet() const
Definition Setting.h:79
AWS_WICKR_API Setting(Aws::Utils::Json::JsonView jsonValue)
bool OptionNameHasBeenSet() const
Definition Setting.h:42
Setting & WithOptionName(OptionNameT &&value)
Definition Setting.h:49
AWS_WICKR_API Setting & operator=(Aws::Utils::Json::JsonView jsonValue)
Setting & WithValue(ValueT &&value)
Definition Setting.h:68
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue