AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
Setting.h
1
6#pragma once
7#include <aws/cloudextensions/CloudExtensions_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSAllocator.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CloudExtensions {
21namespace Model {
22class SettingDefinition;
23
31class Setting {
32 public:
33 AWS_CLOUDEXTENSIONS_API Setting() = default;
34 AWS_CLOUDEXTENSIONS_API Setting(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CLOUDEXTENSIONS_API Setting& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CLOUDEXTENSIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::String& GetId() const { return m_id; }
44 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
45 template <typename IdT = Aws::String>
46 void SetId(IdT&& value) {
47 m_idHasBeenSet = true;
48 m_id = std::forward<IdT>(value);
49 }
50 template <typename IdT = Aws::String>
51 Setting& WithId(IdT&& value) {
52 SetId(std::forward<IdT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetDisplayName() const { return m_displayName; }
63 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
64 template <typename DisplayNameT = Aws::String>
65 void SetDisplayName(DisplayNameT&& value) {
66 m_displayNameHasBeenSet = true;
67 m_displayName = std::forward<DisplayNameT>(value);
68 }
69 template <typename DisplayNameT = Aws::String>
70 Setting& WithDisplayName(DisplayNameT&& value) {
71 SetDisplayName(std::forward<DisplayNameT>(value));
72 return *this;
73 }
75
77
81 inline const Aws::String& GetDescription() const { return m_description; }
82 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
83 template <typename DescriptionT = Aws::String>
84 void SetDescription(DescriptionT&& value) {
85 m_descriptionHasBeenSet = true;
86 m_description = std::forward<DescriptionT>(value);
87 }
88 template <typename DescriptionT = Aws::String>
89 Setting& WithDescription(DescriptionT&& value) {
90 SetDescription(std::forward<DescriptionT>(value));
91 return *this;
92 }
94
96
100 inline bool GetRequired() const { return m_required; }
101 inline bool RequiredHasBeenSet() const { return m_requiredHasBeenSet; }
102 inline void SetRequired(bool value) {
103 m_requiredHasBeenSet = true;
104 m_required = value;
105 }
106 inline Setting& WithRequired(bool value) {
107 SetRequired(value);
108 return *this;
109 }
111
113
118 inline const Aws::String& GetActiveWhen() const { return m_activeWhen; }
119 inline bool ActiveWhenHasBeenSet() const { return m_activeWhenHasBeenSet; }
120 template <typename ActiveWhenT = Aws::String>
121 void SetActiveWhen(ActiveWhenT&& value) {
122 m_activeWhenHasBeenSet = true;
123 m_activeWhen = std::forward<ActiveWhenT>(value);
124 }
125 template <typename ActiveWhenT = Aws::String>
126 Setting& WithActiveWhen(ActiveWhenT&& value) {
127 SetActiveWhen(std::forward<ActiveWhenT>(value));
128 return *this;
129 }
131
133
136 inline const SettingDefinition& GetDefinition() const { return *m_definition; }
137 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
138 template <typename DefinitionT = SettingDefinition>
139 void SetDefinition(DefinitionT&& value) {
140 m_definitionHasBeenSet = true;
141 m_definition = Aws::MakeShared<SettingDefinition>("Setting", std::forward<DefinitionT>(value));
142 }
143 template <typename DefinitionT = SettingDefinition>
144 Setting& WithDefinition(DefinitionT&& value) {
145 SetDefinition(std::forward<DefinitionT>(value));
146 return *this;
147 }
149 private:
150 Aws::String m_id;
151
152 Aws::String m_displayName;
153
154 Aws::String m_description;
155
156 bool m_required{false};
157
158 Aws::String m_activeWhen;
159
160 std::shared_ptr<SettingDefinition> m_definition;
161 bool m_idHasBeenSet = false;
162 bool m_displayNameHasBeenSet = false;
163 bool m_descriptionHasBeenSet = false;
164 bool m_requiredHasBeenSet = false;
165 bool m_activeWhenHasBeenSet = false;
166 bool m_definitionHasBeenSet = false;
167};
168
169} // namespace Model
170} // namespace CloudExtensions
171} // namespace Aws
const Aws::String & GetActiveWhen() const
Definition Setting.h:118
AWS_CLOUDEXTENSIONS_API Setting & operator=(Aws::Utils::Json::JsonView jsonValue)
Setting & WithActiveWhen(ActiveWhenT &&value)
Definition Setting.h:126
const SettingDefinition & GetDefinition() const
Definition Setting.h:136
Setting & WithDisplayName(DisplayNameT &&value)
Definition Setting.h:70
const Aws::String & GetId() const
Definition Setting.h:43
void SetActiveWhen(ActiveWhenT &&value)
Definition Setting.h:121
Setting & WithRequired(bool value)
Definition Setting.h:106
Setting & WithDescription(DescriptionT &&value)
Definition Setting.h:89
AWS_CLOUDEXTENSIONS_API Setting(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDescription() const
Definition Setting.h:81
void SetDefinition(DefinitionT &&value)
Definition Setting.h:139
Setting & WithDefinition(DefinitionT &&value)
Definition Setting.h:144
AWS_CLOUDEXTENSIONS_API Setting()=default
void SetDisplayName(DisplayNameT &&value)
Definition Setting.h:65
const Aws::String & GetDisplayName() const
Definition Setting.h:62
Setting & WithId(IdT &&value)
Definition Setting.h:51
AWS_CLOUDEXTENSIONS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDescription(DescriptionT &&value)
Definition Setting.h:84
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue