AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
SalesforceConnectorProfileCredentials.h
1
6#pragma once
7#include <aws/appflow/Appflow_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/appflow/model/ConnectorOAuthRequest.h>
10#include <aws/appflow/model/OAuth2GrantType.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 SalesforceConnectorProfileCredentials() = default;
40 AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetAccessToken() const { return m_accessToken; }
48 inline bool AccessTokenHasBeenSet() const { return m_accessTokenHasBeenSet; }
49 template<typename AccessTokenT = Aws::String>
50 void SetAccessToken(AccessTokenT&& value) { m_accessTokenHasBeenSet = true; m_accessToken = std::forward<AccessTokenT>(value); }
51 template<typename AccessTokenT = Aws::String>
52 SalesforceConnectorProfileCredentials& WithAccessToken(AccessTokenT&& value) { SetAccessToken(std::forward<AccessTokenT>(value)); return *this;}
54
56
59 inline const Aws::String& GetRefreshToken() const { return m_refreshToken; }
60 inline bool RefreshTokenHasBeenSet() const { return m_refreshTokenHasBeenSet; }
61 template<typename RefreshTokenT = Aws::String>
62 void SetRefreshToken(RefreshTokenT&& value) { m_refreshTokenHasBeenSet = true; m_refreshToken = std::forward<RefreshTokenT>(value); }
63 template<typename RefreshTokenT = Aws::String>
64 SalesforceConnectorProfileCredentials& WithRefreshToken(RefreshTokenT&& value) { SetRefreshToken(std::forward<RefreshTokenT>(value)); return *this;}
66
68
72 inline const ConnectorOAuthRequest& GetOAuthRequest() const { return m_oAuthRequest; }
73 inline bool OAuthRequestHasBeenSet() const { return m_oAuthRequestHasBeenSet; }
74 template<typename OAuthRequestT = ConnectorOAuthRequest>
75 void SetOAuthRequest(OAuthRequestT&& value) { m_oAuthRequestHasBeenSet = true; m_oAuthRequest = std::forward<OAuthRequestT>(value); }
76 template<typename OAuthRequestT = ConnectorOAuthRequest>
77 SalesforceConnectorProfileCredentials& WithOAuthRequest(OAuthRequestT&& value) { SetOAuthRequest(std::forward<OAuthRequestT>(value)); return *this;}
79
81
85 inline const Aws::String& GetClientCredentialsArn() const { return m_clientCredentialsArn; }
86 inline bool ClientCredentialsArnHasBeenSet() const { return m_clientCredentialsArnHasBeenSet; }
87 template<typename ClientCredentialsArnT = Aws::String>
88 void SetClientCredentialsArn(ClientCredentialsArnT&& value) { m_clientCredentialsArnHasBeenSet = true; m_clientCredentialsArn = std::forward<ClientCredentialsArnT>(value); }
89 template<typename ClientCredentialsArnT = Aws::String>
90 SalesforceConnectorProfileCredentials& WithClientCredentialsArn(ClientCredentialsArnT&& value) { SetClientCredentialsArn(std::forward<ClientCredentialsArnT>(value)); return *this;}
92
94
110 inline OAuth2GrantType GetOAuth2GrantType() const { return m_oAuth2GrantType; }
111 inline bool OAuth2GrantTypeHasBeenSet() const { return m_oAuth2GrantTypeHasBeenSet; }
112 inline void SetOAuth2GrantType(OAuth2GrantType value) { m_oAuth2GrantTypeHasBeenSet = true; m_oAuth2GrantType = value; }
115
117
121 inline const Aws::String& GetJwtToken() const { return m_jwtToken; }
122 inline bool JwtTokenHasBeenSet() const { return m_jwtTokenHasBeenSet; }
123 template<typename JwtTokenT = Aws::String>
124 void SetJwtToken(JwtTokenT&& value) { m_jwtTokenHasBeenSet = true; m_jwtToken = std::forward<JwtTokenT>(value); }
125 template<typename JwtTokenT = Aws::String>
126 SalesforceConnectorProfileCredentials& WithJwtToken(JwtTokenT&& value) { SetJwtToken(std::forward<JwtTokenT>(value)); return *this;}
128 private:
129
130 Aws::String m_accessToken;
131 bool m_accessTokenHasBeenSet = false;
132
133 Aws::String m_refreshToken;
134 bool m_refreshTokenHasBeenSet = false;
135
136 ConnectorOAuthRequest m_oAuthRequest;
137 bool m_oAuthRequestHasBeenSet = false;
138
139 Aws::String m_clientCredentialsArn;
140 bool m_clientCredentialsArnHasBeenSet = false;
141
142 OAuth2GrantType m_oAuth2GrantType{OAuth2GrantType::NOT_SET};
143 bool m_oAuth2GrantTypeHasBeenSet = false;
144
145 Aws::String m_jwtToken;
146 bool m_jwtTokenHasBeenSet = false;
147 };
148
149} // namespace Model
150} // namespace Appflow
151} // namespace Aws
SalesforceConnectorProfileCredentials & WithRefreshToken(RefreshTokenT &&value)
SalesforceConnectorProfileCredentials & WithOAuth2GrantType(OAuth2GrantType value)
AWS_APPFLOW_API SalesforceConnectorProfileCredentials & operator=(Aws::Utils::Json::JsonView jsonValue)
SalesforceConnectorProfileCredentials & WithJwtToken(JwtTokenT &&value)
SalesforceConnectorProfileCredentials & WithAccessToken(AccessTokenT &&value)
SalesforceConnectorProfileCredentials & WithOAuthRequest(OAuthRequestT &&value)
SalesforceConnectorProfileCredentials & WithClientCredentialsArn(ClientCredentialsArnT &&value)
AWS_APPFLOW_API SalesforceConnectorProfileCredentials(Aws::Utils::Json::JsonView jsonValue)
AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue