AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CustomAuthCredentials.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/AWSMap.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Appflow
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_APPFLOW_API CustomAuthCredentials() = default;
39 AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetCustomAuthenticationType() const { return m_customAuthenticationType; }
47 inline bool CustomAuthenticationTypeHasBeenSet() const { return m_customAuthenticationTypeHasBeenSet; }
48 template<typename CustomAuthenticationTypeT = Aws::String>
49 void SetCustomAuthenticationType(CustomAuthenticationTypeT&& value) { m_customAuthenticationTypeHasBeenSet = true; m_customAuthenticationType = std::forward<CustomAuthenticationTypeT>(value); }
50 template<typename CustomAuthenticationTypeT = Aws::String>
51 CustomAuthCredentials& WithCustomAuthenticationType(CustomAuthenticationTypeT&& value) { SetCustomAuthenticationType(std::forward<CustomAuthenticationTypeT>(value)); return *this;}
53
55
58 inline const Aws::Map<Aws::String, Aws::String>& GetCredentialsMap() const { return m_credentialsMap; }
59 inline bool CredentialsMapHasBeenSet() const { return m_credentialsMapHasBeenSet; }
60 template<typename CredentialsMapT = Aws::Map<Aws::String, Aws::String>>
61 void SetCredentialsMap(CredentialsMapT&& value) { m_credentialsMapHasBeenSet = true; m_credentialsMap = std::forward<CredentialsMapT>(value); }
62 template<typename CredentialsMapT = Aws::Map<Aws::String, Aws::String>>
63 CustomAuthCredentials& WithCredentialsMap(CredentialsMapT&& value) { SetCredentialsMap(std::forward<CredentialsMapT>(value)); return *this;}
64 template<typename CredentialsMapKeyT = Aws::String, typename CredentialsMapValueT = Aws::String>
65 CustomAuthCredentials& AddCredentialsMap(CredentialsMapKeyT&& key, CredentialsMapValueT&& value) {
66 m_credentialsMapHasBeenSet = true; m_credentialsMap.emplace(std::forward<CredentialsMapKeyT>(key), std::forward<CredentialsMapValueT>(value)); return *this;
67 }
69 private:
70
71 Aws::String m_customAuthenticationType;
72 bool m_customAuthenticationTypeHasBeenSet = false;
73
75 bool m_credentialsMapHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace Appflow
80} // namespace Aws
CustomAuthCredentials & WithCredentialsMap(CredentialsMapT &&value)
const Aws::String & GetCustomAuthenticationType() const
AWS_APPFLOW_API CustomAuthCredentials(Aws::Utils::Json::JsonView jsonValue)
AWS_APPFLOW_API CustomAuthCredentials & operator=(Aws::Utils::Json::JsonView jsonValue)
CustomAuthCredentials & WithCustomAuthenticationType(CustomAuthenticationTypeT &&value)
void SetCustomAuthenticationType(CustomAuthenticationTypeT &&value)
AWS_APPFLOW_API CustomAuthCredentials()=default
void SetCredentialsMap(CredentialsMapT &&value)
CustomAuthCredentials & AddCredentialsMap(CredentialsMapKeyT &&key, CredentialsMapValueT &&value)
AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Map< Aws::String, Aws::String > & GetCredentialsMap() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue