AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CustomAuthConfig.h
1
6#pragma once
7#include <aws/appflow/Appflow_EXPORTS.h>
8#include <aws/appflow/model/AuthParameter.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 CustomAuthConfig() = default;
33 AWS_APPFLOW_API CustomAuthConfig(Aws::Utils::Json::JsonView jsonValue);
35 AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetCustomAuthenticationType() const { return m_customAuthenticationType; }
42 inline bool CustomAuthenticationTypeHasBeenSet() const { return m_customAuthenticationTypeHasBeenSet; }
43 template <typename CustomAuthenticationTypeT = Aws::String>
44 void SetCustomAuthenticationType(CustomAuthenticationTypeT&& value) {
45 m_customAuthenticationTypeHasBeenSet = true;
46 m_customAuthenticationType = std::forward<CustomAuthenticationTypeT>(value);
47 }
48 template <typename CustomAuthenticationTypeT = Aws::String>
49 CustomAuthConfig& WithCustomAuthenticationType(CustomAuthenticationTypeT&& value) {
50 SetCustomAuthenticationType(std::forward<CustomAuthenticationTypeT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Vector<AuthParameter>& GetAuthParameters() const { return m_authParameters; }
60 inline bool AuthParametersHasBeenSet() const { return m_authParametersHasBeenSet; }
61 template <typename AuthParametersT = Aws::Vector<AuthParameter>>
62 void SetAuthParameters(AuthParametersT&& value) {
63 m_authParametersHasBeenSet = true;
64 m_authParameters = std::forward<AuthParametersT>(value);
65 }
66 template <typename AuthParametersT = Aws::Vector<AuthParameter>>
67 CustomAuthConfig& WithAuthParameters(AuthParametersT&& value) {
68 SetAuthParameters(std::forward<AuthParametersT>(value));
69 return *this;
70 }
71 template <typename AuthParametersT = AuthParameter>
72 CustomAuthConfig& AddAuthParameters(AuthParametersT&& value) {
73 m_authParametersHasBeenSet = true;
74 m_authParameters.emplace_back(std::forward<AuthParametersT>(value));
75 return *this;
76 }
78 private:
79 Aws::String m_customAuthenticationType;
80
81 Aws::Vector<AuthParameter> m_authParameters;
82 bool m_customAuthenticationTypeHasBeenSet = false;
83 bool m_authParametersHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace Appflow
88} // namespace Aws
void SetAuthParameters(AuthParametersT &&value)
CustomAuthConfig & WithCustomAuthenticationType(CustomAuthenticationTypeT &&value)
AWS_APPFLOW_API CustomAuthConfig()=default
const Aws::Vector< AuthParameter > & GetAuthParameters() const
AWS_APPFLOW_API CustomAuthConfig(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCustomAuthenticationType() const
CustomAuthConfig & AddAuthParameters(AuthParametersT &&value)
CustomAuthConfig & WithAuthParameters(AuthParametersT &&value)
AWS_APPFLOW_API CustomAuthConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCustomAuthenticationType(CustomAuthenticationTypeT &&value)
AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() 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