AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CustomConnectorProfileCredentials.h
1
6#pragma once
7#include <aws/appflow/Appflow_EXPORTS.h>
8#include <aws/appflow/model/AuthenticationType.h>
9#include <aws/appflow/model/BasicAuthCredentials.h>
10#include <aws/appflow/model/OAuth2Credentials.h>
11#include <aws/appflow/model/ApiKeyCredentials.h>
12#include <aws/appflow/model/CustomAuthCredentials.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Appflow
26{
27namespace Model
28{
29
37 {
38 public:
42 AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline const AuthenticationType& GetAuthenticationType() const{ return m_authenticationType; }
51 inline bool AuthenticationTypeHasBeenSet() const { return m_authenticationTypeHasBeenSet; }
52 inline void SetAuthenticationType(const AuthenticationType& value) { m_authenticationTypeHasBeenSet = true; m_authenticationType = value; }
53 inline void SetAuthenticationType(AuthenticationType&& value) { m_authenticationTypeHasBeenSet = true; m_authenticationType = std::move(value); }
57
59
63 inline const BasicAuthCredentials& GetBasic() const{ return m_basic; }
64 inline bool BasicHasBeenSet() const { return m_basicHasBeenSet; }
65 inline void SetBasic(const BasicAuthCredentials& value) { m_basicHasBeenSet = true; m_basic = value; }
66 inline void SetBasic(BasicAuthCredentials&& value) { m_basicHasBeenSet = true; m_basic = std::move(value); }
67 inline CustomConnectorProfileCredentials& WithBasic(const BasicAuthCredentials& value) { SetBasic(value); return *this;}
68 inline CustomConnectorProfileCredentials& WithBasic(BasicAuthCredentials&& value) { SetBasic(std::move(value)); return *this;}
70
72
75 inline const OAuth2Credentials& GetOauth2() const{ return m_oauth2; }
76 inline bool Oauth2HasBeenSet() const { return m_oauth2HasBeenSet; }
77 inline void SetOauth2(const OAuth2Credentials& value) { m_oauth2HasBeenSet = true; m_oauth2 = value; }
78 inline void SetOauth2(OAuth2Credentials&& value) { m_oauth2HasBeenSet = true; m_oauth2 = std::move(value); }
79 inline CustomConnectorProfileCredentials& WithOauth2(const OAuth2Credentials& value) { SetOauth2(value); return *this;}
80 inline CustomConnectorProfileCredentials& WithOauth2(OAuth2Credentials&& value) { SetOauth2(std::move(value)); return *this;}
82
84
87 inline const ApiKeyCredentials& GetApiKey() const{ return m_apiKey; }
88 inline bool ApiKeyHasBeenSet() const { return m_apiKeyHasBeenSet; }
89 inline void SetApiKey(const ApiKeyCredentials& value) { m_apiKeyHasBeenSet = true; m_apiKey = value; }
90 inline void SetApiKey(ApiKeyCredentials&& value) { m_apiKeyHasBeenSet = true; m_apiKey = std::move(value); }
91 inline CustomConnectorProfileCredentials& WithApiKey(const ApiKeyCredentials& value) { SetApiKey(value); return *this;}
92 inline CustomConnectorProfileCredentials& WithApiKey(ApiKeyCredentials&& value) { SetApiKey(std::move(value)); return *this;}
94
96
100 inline const CustomAuthCredentials& GetCustom() const{ return m_custom; }
101 inline bool CustomHasBeenSet() const { return m_customHasBeenSet; }
102 inline void SetCustom(const CustomAuthCredentials& value) { m_customHasBeenSet = true; m_custom = value; }
103 inline void SetCustom(CustomAuthCredentials&& value) { m_customHasBeenSet = true; m_custom = std::move(value); }
105 inline CustomConnectorProfileCredentials& WithCustom(CustomAuthCredentials&& value) { SetCustom(std::move(value)); return *this;}
107 private:
108
109 AuthenticationType m_authenticationType;
110 bool m_authenticationTypeHasBeenSet = false;
111
112 BasicAuthCredentials m_basic;
113 bool m_basicHasBeenSet = false;
114
115 OAuth2Credentials m_oauth2;
116 bool m_oauth2HasBeenSet = false;
117
118 ApiKeyCredentials m_apiKey;
119 bool m_apiKeyHasBeenSet = false;
120
121 CustomAuthCredentials m_custom;
122 bool m_customHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace Appflow
127} // namespace Aws
CustomConnectorProfileCredentials & WithOauth2(const OAuth2Credentials &value)
AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const
CustomConnectorProfileCredentials & WithAuthenticationType(AuthenticationType &&value)
CustomConnectorProfileCredentials & WithApiKey(const ApiKeyCredentials &value)
CustomConnectorProfileCredentials & WithBasic(BasicAuthCredentials &&value)
CustomConnectorProfileCredentials & WithCustom(CustomAuthCredentials &&value)
AWS_APPFLOW_API CustomConnectorProfileCredentials & operator=(Aws::Utils::Json::JsonView jsonValue)
CustomConnectorProfileCredentials & WithBasic(const BasicAuthCredentials &value)
CustomConnectorProfileCredentials & WithAuthenticationType(const AuthenticationType &value)
CustomConnectorProfileCredentials & WithApiKey(ApiKeyCredentials &&value)
CustomConnectorProfileCredentials & WithOauth2(OAuth2Credentials &&value)
CustomConnectorProfileCredentials & WithCustom(const CustomAuthCredentials &value)
AWS_APPFLOW_API CustomConnectorProfileCredentials(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue