AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
OAuth2CustomParameter.h
1
6#pragma once
7#include <aws/appflow/Appflow_EXPORTS.h>
8#include <aws/appflow/model/OAuth2CustomPropType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Appflow {
22namespace Model {
23
31 public:
32 AWS_APPFLOW_API OAuth2CustomParameter() = default;
35 AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetKey() const { return m_key; }
42 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
43 template <typename KeyT = Aws::String>
44 void SetKey(KeyT&& value) {
45 m_keyHasBeenSet = true;
46 m_key = std::forward<KeyT>(value);
47 }
48 template <typename KeyT = Aws::String>
50 SetKey(std::forward<KeyT>(value));
51 return *this;
52 }
54
56
60 inline bool GetIsRequired() const { return m_isRequired; }
61 inline bool IsRequiredHasBeenSet() const { return m_isRequiredHasBeenSet; }
62 inline void SetIsRequired(bool value) {
63 m_isRequiredHasBeenSet = true;
64 m_isRequired = value;
65 }
67 SetIsRequired(value);
68 return *this;
69 }
71
73
76 inline const Aws::String& GetLabel() const { return m_label; }
77 inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; }
78 template <typename LabelT = Aws::String>
79 void SetLabel(LabelT&& value) {
80 m_labelHasBeenSet = true;
81 m_label = std::forward<LabelT>(value);
82 }
83 template <typename LabelT = Aws::String>
85 SetLabel(std::forward<LabelT>(value));
86 return *this;
87 }
89
91
95 inline const Aws::String& GetDescription() const { return m_description; }
96 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
97 template <typename DescriptionT = Aws::String>
98 void SetDescription(DescriptionT&& value) {
99 m_descriptionHasBeenSet = true;
100 m_description = std::forward<DescriptionT>(value);
101 }
102 template <typename DescriptionT = Aws::String>
103 OAuth2CustomParameter& WithDescription(DescriptionT&& value) {
104 SetDescription(std::forward<DescriptionT>(value));
105 return *this;
106 }
108
110
114 inline bool GetIsSensitiveField() const { return m_isSensitiveField; }
115 inline bool IsSensitiveFieldHasBeenSet() const { return m_isSensitiveFieldHasBeenSet; }
116 inline void SetIsSensitiveField(bool value) {
117 m_isSensitiveFieldHasBeenSet = true;
118 m_isSensitiveField = value;
119 }
121 SetIsSensitiveField(value);
122 return *this;
123 }
125
127
131 inline const Aws::Vector<Aws::String>& GetConnectorSuppliedValues() const { return m_connectorSuppliedValues; }
132 inline bool ConnectorSuppliedValuesHasBeenSet() const { return m_connectorSuppliedValuesHasBeenSet; }
133 template <typename ConnectorSuppliedValuesT = Aws::Vector<Aws::String>>
134 void SetConnectorSuppliedValues(ConnectorSuppliedValuesT&& value) {
135 m_connectorSuppliedValuesHasBeenSet = true;
136 m_connectorSuppliedValues = std::forward<ConnectorSuppliedValuesT>(value);
137 }
138 template <typename ConnectorSuppliedValuesT = Aws::Vector<Aws::String>>
139 OAuth2CustomParameter& WithConnectorSuppliedValues(ConnectorSuppliedValuesT&& value) {
140 SetConnectorSuppliedValues(std::forward<ConnectorSuppliedValuesT>(value));
141 return *this;
142 }
143 template <typename ConnectorSuppliedValuesT = Aws::String>
144 OAuth2CustomParameter& AddConnectorSuppliedValues(ConnectorSuppliedValuesT&& value) {
145 m_connectorSuppliedValuesHasBeenSet = true;
146 m_connectorSuppliedValues.emplace_back(std::forward<ConnectorSuppliedValuesT>(value));
147 return *this;
148 }
150
152
155 inline OAuth2CustomPropType GetType() const { return m_type; }
156 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
157 inline void SetType(OAuth2CustomPropType value) {
158 m_typeHasBeenSet = true;
159 m_type = value;
160 }
162 SetType(value);
163 return *this;
164 }
166 private:
167 Aws::String m_key;
168
169 bool m_isRequired{false};
170
171 Aws::String m_label;
172
173 Aws::String m_description;
174
175 bool m_isSensitiveField{false};
176
177 Aws::Vector<Aws::String> m_connectorSuppliedValues;
178
180 bool m_keyHasBeenSet = false;
181 bool m_isRequiredHasBeenSet = false;
182 bool m_labelHasBeenSet = false;
183 bool m_descriptionHasBeenSet = false;
184 bool m_isSensitiveFieldHasBeenSet = false;
185 bool m_connectorSuppliedValuesHasBeenSet = false;
186 bool m_typeHasBeenSet = false;
187};
188
189} // namespace Model
190} // namespace Appflow
191} // namespace Aws
AWS_APPFLOW_API OAuth2CustomParameter & operator=(Aws::Utils::Json::JsonView jsonValue)
OAuth2CustomParameter & WithType(OAuth2CustomPropType value)
OAuth2CustomParameter & WithDescription(DescriptionT &&value)
OAuth2CustomParameter & WithLabel(LabelT &&value)
AWS_APPFLOW_API OAuth2CustomParameter()=default
void SetConnectorSuppliedValues(ConnectorSuppliedValuesT &&value)
OAuth2CustomParameter & AddConnectorSuppliedValues(ConnectorSuppliedValuesT &&value)
OAuth2CustomParameter & WithConnectorSuppliedValues(ConnectorSuppliedValuesT &&value)
OAuth2CustomParameter & WithIsRequired(bool value)
OAuth2CustomParameter & WithKey(KeyT &&value)
OAuth2CustomParameter & WithIsSensitiveField(bool value)
AWS_APPFLOW_API OAuth2CustomParameter(Aws::Utils::Json::JsonView jsonValue)
AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetConnectorSuppliedValues() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue