AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CustomParameter.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/datazone/DataZone_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace DataZone {
20namespace Model {
21
29 public:
30 AWS_DATAZONE_API CustomParameter() = default;
31 AWS_DATAZONE_API CustomParameter(Aws::Utils::Json::JsonView jsonValue);
33 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetKeyName() const { return m_keyName; }
40 inline bool KeyNameHasBeenSet() const { return m_keyNameHasBeenSet; }
41 template <typename KeyNameT = Aws::String>
42 void SetKeyName(KeyNameT&& value) {
43 m_keyNameHasBeenSet = true;
44 m_keyName = std::forward<KeyNameT>(value);
45 }
46 template <typename KeyNameT = Aws::String>
47 CustomParameter& WithKeyName(KeyNameT&& value) {
48 SetKeyName(std::forward<KeyNameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetDescription() const { return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 template <typename DescriptionT = Aws::String>
60 void SetDescription(DescriptionT&& value) {
61 m_descriptionHasBeenSet = true;
62 m_description = std::forward<DescriptionT>(value);
63 }
64 template <typename DescriptionT = Aws::String>
65 CustomParameter& WithDescription(DescriptionT&& value) {
66 SetDescription(std::forward<DescriptionT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetFieldType() const { return m_fieldType; }
76 inline bool FieldTypeHasBeenSet() const { return m_fieldTypeHasBeenSet; }
77 template <typename FieldTypeT = Aws::String>
78 void SetFieldType(FieldTypeT&& value) {
79 m_fieldTypeHasBeenSet = true;
80 m_fieldType = std::forward<FieldTypeT>(value);
81 }
82 template <typename FieldTypeT = Aws::String>
83 CustomParameter& WithFieldType(FieldTypeT&& value) {
84 SetFieldType(std::forward<FieldTypeT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetDefaultValue() const { return m_defaultValue; }
94 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
95 template <typename DefaultValueT = Aws::String>
96 void SetDefaultValue(DefaultValueT&& value) {
97 m_defaultValueHasBeenSet = true;
98 m_defaultValue = std::forward<DefaultValueT>(value);
99 }
100 template <typename DefaultValueT = Aws::String>
101 CustomParameter& WithDefaultValue(DefaultValueT&& value) {
102 SetDefaultValue(std::forward<DefaultValueT>(value));
103 return *this;
104 }
106
108
111 inline bool GetIsEditable() const { return m_isEditable; }
112 inline bool IsEditableHasBeenSet() const { return m_isEditableHasBeenSet; }
113 inline void SetIsEditable(bool value) {
114 m_isEditableHasBeenSet = true;
115 m_isEditable = value;
116 }
117 inline CustomParameter& WithIsEditable(bool value) {
118 SetIsEditable(value);
119 return *this;
120 }
122
124
127 inline bool GetIsOptional() const { return m_isOptional; }
128 inline bool IsOptionalHasBeenSet() const { return m_isOptionalHasBeenSet; }
129 inline void SetIsOptional(bool value) {
130 m_isOptionalHasBeenSet = true;
131 m_isOptional = value;
132 }
133 inline CustomParameter& WithIsOptional(bool value) {
134 SetIsOptional(value);
135 return *this;
136 }
138
140
143 inline bool GetIsUpdateSupported() const { return m_isUpdateSupported; }
144 inline bool IsUpdateSupportedHasBeenSet() const { return m_isUpdateSupportedHasBeenSet; }
145 inline void SetIsUpdateSupported(bool value) {
146 m_isUpdateSupportedHasBeenSet = true;
147 m_isUpdateSupported = value;
148 }
151 return *this;
152 }
154 private:
155 Aws::String m_keyName;
156
157 Aws::String m_description;
158
159 Aws::String m_fieldType;
160
161 Aws::String m_defaultValue;
162
163 bool m_isEditable{false};
164
165 bool m_isOptional{false};
166
167 bool m_isUpdateSupported{false};
168 bool m_keyNameHasBeenSet = false;
169 bool m_descriptionHasBeenSet = false;
170 bool m_fieldTypeHasBeenSet = false;
171 bool m_defaultValueHasBeenSet = false;
172 bool m_isEditableHasBeenSet = false;
173 bool m_isOptionalHasBeenSet = false;
174 bool m_isUpdateSupportedHasBeenSet = false;
175};
176
177} // namespace Model
178} // namespace DataZone
179} // namespace Aws
AWS_DATAZONE_API CustomParameter()=default
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetKeyName() const
AWS_DATAZONE_API CustomParameter(Aws::Utils::Json::JsonView jsonValue)
void SetDescription(DescriptionT &&value)
void SetFieldType(FieldTypeT &&value)
CustomParameter & WithIsUpdateSupported(bool value)
AWS_DATAZONE_API CustomParameter & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetFieldType() const
void SetDefaultValue(DefaultValueT &&value)
CustomParameter & WithIsEditable(bool value)
CustomParameter & WithFieldType(FieldTypeT &&value)
CustomParameter & WithIsOptional(bool value)
const Aws::String & GetDefaultValue() const
CustomParameter & WithKeyName(KeyNameT &&value)
CustomParameter & WithDescription(DescriptionT &&value)
CustomParameter & WithDefaultValue(DefaultValueT &&value)
const Aws::String & GetDescription() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue