AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CustomAuthCredentials.h
1
6#pragma once
7#include <aws/appflow/Appflow_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.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 CustomAuthCredentials() = default;
34 AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetCustomAuthenticationType() const { return m_customAuthenticationType; }
41 inline bool CustomAuthenticationTypeHasBeenSet() const { return m_customAuthenticationTypeHasBeenSet; }
42 template <typename CustomAuthenticationTypeT = Aws::String>
43 void SetCustomAuthenticationType(CustomAuthenticationTypeT&& value) {
44 m_customAuthenticationTypeHasBeenSet = true;
45 m_customAuthenticationType = std::forward<CustomAuthenticationTypeT>(value);
46 }
47 template <typename CustomAuthenticationTypeT = Aws::String>
48 CustomAuthCredentials& WithCustomAuthenticationType(CustomAuthenticationTypeT&& value) {
49 SetCustomAuthenticationType(std::forward<CustomAuthenticationTypeT>(value));
50 return *this;
51 }
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) {
62 m_credentialsMapHasBeenSet = true;
63 m_credentialsMap = std::forward<CredentialsMapT>(value);
64 }
65 template <typename CredentialsMapT = Aws::Map<Aws::String, Aws::String>>
66 CustomAuthCredentials& WithCredentialsMap(CredentialsMapT&& value) {
67 SetCredentialsMap(std::forward<CredentialsMapT>(value));
68 return *this;
69 }
70 template <typename CredentialsMapKeyT = Aws::String, typename CredentialsMapValueT = Aws::String>
71 CustomAuthCredentials& AddCredentialsMap(CredentialsMapKeyT&& key, CredentialsMapValueT&& value) {
72 m_credentialsMapHasBeenSet = true;
73 m_credentialsMap.emplace(std::forward<CredentialsMapKeyT>(key), std::forward<CredentialsMapValueT>(value));
74 return *this;
75 }
77 private:
78 Aws::String m_customAuthenticationType;
79
81 bool m_customAuthenticationTypeHasBeenSet = false;
82 bool m_credentialsMapHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace Appflow
87} // 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