AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
OAuth2CustomParameter.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#include <aws/appflow/model/OAuth2CustomPropType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Appflow
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_APPFLOW_API OAuth2CustomParameter() = default;
40 AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetKey() const { return m_key; }
48 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
49 template<typename KeyT = Aws::String>
50 void SetKey(KeyT&& value) { m_keyHasBeenSet = true; m_key = std::forward<KeyT>(value); }
51 template<typename KeyT = Aws::String>
52 OAuth2CustomParameter& WithKey(KeyT&& value) { SetKey(std::forward<KeyT>(value)); return *this;}
54
56
60 inline bool GetIsRequired() const { return m_isRequired; }
61 inline bool IsRequiredHasBeenSet() const { return m_isRequiredHasBeenSet; }
62 inline void SetIsRequired(bool value) { m_isRequiredHasBeenSet = true; m_isRequired = value; }
63 inline OAuth2CustomParameter& WithIsRequired(bool value) { SetIsRequired(value); return *this;}
65
67
70 inline const Aws::String& GetLabel() const { return m_label; }
71 inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; }
72 template<typename LabelT = Aws::String>
73 void SetLabel(LabelT&& value) { m_labelHasBeenSet = true; m_label = std::forward<LabelT>(value); }
74 template<typename LabelT = Aws::String>
75 OAuth2CustomParameter& WithLabel(LabelT&& value) { SetLabel(std::forward<LabelT>(value)); return *this;}
77
79
83 inline const Aws::String& GetDescription() const { return m_description; }
84 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
85 template<typename DescriptionT = Aws::String>
86 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
87 template<typename DescriptionT = Aws::String>
88 OAuth2CustomParameter& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
90
92
96 inline bool GetIsSensitiveField() const { return m_isSensitiveField; }
97 inline bool IsSensitiveFieldHasBeenSet() const { return m_isSensitiveFieldHasBeenSet; }
98 inline void SetIsSensitiveField(bool value) { m_isSensitiveFieldHasBeenSet = true; m_isSensitiveField = value; }
99 inline OAuth2CustomParameter& WithIsSensitiveField(bool value) { SetIsSensitiveField(value); return *this;}
101
103
107 inline const Aws::Vector<Aws::String>& GetConnectorSuppliedValues() const { return m_connectorSuppliedValues; }
108 inline bool ConnectorSuppliedValuesHasBeenSet() const { return m_connectorSuppliedValuesHasBeenSet; }
109 template<typename ConnectorSuppliedValuesT = Aws::Vector<Aws::String>>
110 void SetConnectorSuppliedValues(ConnectorSuppliedValuesT&& value) { m_connectorSuppliedValuesHasBeenSet = true; m_connectorSuppliedValues = std::forward<ConnectorSuppliedValuesT>(value); }
111 template<typename ConnectorSuppliedValuesT = Aws::Vector<Aws::String>>
112 OAuth2CustomParameter& WithConnectorSuppliedValues(ConnectorSuppliedValuesT&& value) { SetConnectorSuppliedValues(std::forward<ConnectorSuppliedValuesT>(value)); return *this;}
113 template<typename ConnectorSuppliedValuesT = Aws::String>
114 OAuth2CustomParameter& AddConnectorSuppliedValues(ConnectorSuppliedValuesT&& value) { m_connectorSuppliedValuesHasBeenSet = true; m_connectorSuppliedValues.emplace_back(std::forward<ConnectorSuppliedValuesT>(value)); return *this; }
116
118
121 inline OAuth2CustomPropType GetType() const { return m_type; }
122 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
123 inline void SetType(OAuth2CustomPropType value) { m_typeHasBeenSet = true; m_type = value; }
124 inline OAuth2CustomParameter& WithType(OAuth2CustomPropType value) { SetType(value); return *this;}
126 private:
127
128 Aws::String m_key;
129 bool m_keyHasBeenSet = false;
130
131 bool m_isRequired{false};
132 bool m_isRequiredHasBeenSet = false;
133
134 Aws::String m_label;
135 bool m_labelHasBeenSet = false;
136
137 Aws::String m_description;
138 bool m_descriptionHasBeenSet = false;
139
140 bool m_isSensitiveField{false};
141 bool m_isSensitiveFieldHasBeenSet = false;
142
143 Aws::Vector<Aws::String> m_connectorSuppliedValues;
144 bool m_connectorSuppliedValuesHasBeenSet = false;
145
147 bool m_typeHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace Appflow
152} // 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