AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
AuthParameter.h
1
6#pragma once
7#include <aws/appflow/Appflow_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Appflow {
21namespace Model {
22
30 public:
31 AWS_APPFLOW_API AuthParameter() = default;
32 AWS_APPFLOW_API AuthParameter(Aws::Utils::Json::JsonView jsonValue);
34 AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetKey() const { return m_key; }
41 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
42 template <typename KeyT = Aws::String>
43 void SetKey(KeyT&& value) {
44 m_keyHasBeenSet = true;
45 m_key = std::forward<KeyT>(value);
46 }
47 template <typename KeyT = Aws::String>
48 AuthParameter& WithKey(KeyT&& value) {
49 SetKey(std::forward<KeyT>(value));
50 return *this;
51 }
53
55
58 inline bool GetIsRequired() const { return m_isRequired; }
59 inline bool IsRequiredHasBeenSet() const { return m_isRequiredHasBeenSet; }
60 inline void SetIsRequired(bool value) {
61 m_isRequiredHasBeenSet = true;
62 m_isRequired = value;
63 }
64 inline AuthParameter& WithIsRequired(bool value) {
65 SetIsRequired(value);
66 return *this;
67 }
69
71
74 inline const Aws::String& GetLabel() const { return m_label; }
75 inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; }
76 template <typename LabelT = Aws::String>
77 void SetLabel(LabelT&& value) {
78 m_labelHasBeenSet = true;
79 m_label = std::forward<LabelT>(value);
80 }
81 template <typename LabelT = Aws::String>
82 AuthParameter& WithLabel(LabelT&& value) {
83 SetLabel(std::forward<LabelT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetDescription() const { return m_description; }
93 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
94 template <typename DescriptionT = Aws::String>
95 void SetDescription(DescriptionT&& value) {
96 m_descriptionHasBeenSet = true;
97 m_description = std::forward<DescriptionT>(value);
98 }
99 template <typename DescriptionT = Aws::String>
100 AuthParameter& WithDescription(DescriptionT&& value) {
101 SetDescription(std::forward<DescriptionT>(value));
102 return *this;
103 }
105
107
110 inline bool GetIsSensitiveField() const { return m_isSensitiveField; }
111 inline bool IsSensitiveFieldHasBeenSet() const { return m_isSensitiveFieldHasBeenSet; }
112 inline void SetIsSensitiveField(bool value) {
113 m_isSensitiveFieldHasBeenSet = true;
114 m_isSensitiveField = value;
115 }
117 SetIsSensitiveField(value);
118 return *this;
119 }
121
123
127 inline const Aws::Vector<Aws::String>& GetConnectorSuppliedValues() const { return m_connectorSuppliedValues; }
128 inline bool ConnectorSuppliedValuesHasBeenSet() const { return m_connectorSuppliedValuesHasBeenSet; }
129 template <typename ConnectorSuppliedValuesT = Aws::Vector<Aws::String>>
130 void SetConnectorSuppliedValues(ConnectorSuppliedValuesT&& value) {
131 m_connectorSuppliedValuesHasBeenSet = true;
132 m_connectorSuppliedValues = std::forward<ConnectorSuppliedValuesT>(value);
133 }
134 template <typename ConnectorSuppliedValuesT = Aws::Vector<Aws::String>>
135 AuthParameter& WithConnectorSuppliedValues(ConnectorSuppliedValuesT&& value) {
136 SetConnectorSuppliedValues(std::forward<ConnectorSuppliedValuesT>(value));
137 return *this;
138 }
139 template <typename ConnectorSuppliedValuesT = Aws::String>
140 AuthParameter& AddConnectorSuppliedValues(ConnectorSuppliedValuesT&& value) {
141 m_connectorSuppliedValuesHasBeenSet = true;
142 m_connectorSuppliedValues.emplace_back(std::forward<ConnectorSuppliedValuesT>(value));
143 return *this;
144 }
146 private:
147 Aws::String m_key;
148
149 bool m_isRequired{false};
150
151 Aws::String m_label;
152
153 Aws::String m_description;
154
155 bool m_isSensitiveField{false};
156
157 Aws::Vector<Aws::String> m_connectorSuppliedValues;
158 bool m_keyHasBeenSet = false;
159 bool m_isRequiredHasBeenSet = false;
160 bool m_labelHasBeenSet = false;
161 bool m_descriptionHasBeenSet = false;
162 bool m_isSensitiveFieldHasBeenSet = false;
163 bool m_connectorSuppliedValuesHasBeenSet = false;
164};
165
166} // namespace Model
167} // namespace Appflow
168} // namespace Aws
AuthParameter & WithLabel(LabelT &&value)
AWS_APPFLOW_API AuthParameter()=default
const Aws::String & GetKey() const
AWS_APPFLOW_API AuthParameter & operator=(Aws::Utils::Json::JsonView jsonValue)
AuthParameter & WithIsSensitiveField(bool value)
void SetConnectorSuppliedValues(ConnectorSuppliedValuesT &&value)
AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDescription(DescriptionT &&value)
AuthParameter & WithKey(KeyT &&value)
AWS_APPFLOW_API AuthParameter(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDescription() const
AuthParameter & AddConnectorSuppliedValues(ConnectorSuppliedValuesT &&value)
AuthParameter & WithIsRequired(bool value)
AuthParameter & WithConnectorSuppliedValues(ConnectorSuppliedValuesT &&value)
const Aws::Vector< Aws::String > & GetConnectorSuppliedValues() const
const Aws::String & GetLabel() const
AuthParameter & WithDescription(DescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue