AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetAccessToken(const Aws::String& value) { m_accessTokenHasBeenSet = true; m_accessToken = value; }
50 inline void SetAccessToken(Aws::String&& value) { m_accessTokenHasBeenSet = true; m_accessToken = std::move(value); }
51 inline void SetAccessToken(const char* value) { m_accessTokenHasBeenSet = true; m_accessToken.assign(value); }
53 inline SalesforceConnectorProfileCredentials& WithAccessToken(Aws::String&& value) { SetAccessToken(std::move(value)); return *this;}
54 inline SalesforceConnectorProfileCredentials& WithAccessToken(const char* value) { SetAccessToken(value); return *this;}
56
58
61 inline const Aws::String& GetRefreshToken() const{ return m_refreshToken; }
62 inline bool RefreshTokenHasBeenSet() const { return m_refreshTokenHasBeenSet; }
63 inline void SetRefreshToken(const Aws::String& value) { m_refreshTokenHasBeenSet = true; m_refreshToken = value; }
64 inline void SetRefreshToken(Aws::String&& value) { m_refreshTokenHasBeenSet = true; m_refreshToken = std::move(value); }
65 inline void SetRefreshToken(const char* value) { m_refreshTokenHasBeenSet = true; m_refreshToken.assign(value); }
67 inline SalesforceConnectorProfileCredentials& WithRefreshToken(Aws::String&& value) { SetRefreshToken(std::move(value)); return *this;}
68 inline SalesforceConnectorProfileCredentials& WithRefreshToken(const char* value) { SetRefreshToken(value); return *this;}
70
72
76 inline const ConnectorOAuthRequest& GetOAuthRequest() const{ return m_oAuthRequest; }
77 inline bool OAuthRequestHasBeenSet() const { return m_oAuthRequestHasBeenSet; }
78 inline void SetOAuthRequest(const ConnectorOAuthRequest& value) { m_oAuthRequestHasBeenSet = true; m_oAuthRequest = value; }
79 inline void SetOAuthRequest(ConnectorOAuthRequest&& value) { m_oAuthRequestHasBeenSet = true; m_oAuthRequest = std::move(value); }
83
85
89 inline const Aws::String& GetClientCredentialsArn() const{ return m_clientCredentialsArn; }
90 inline bool ClientCredentialsArnHasBeenSet() const { return m_clientCredentialsArnHasBeenSet; }
91 inline void SetClientCredentialsArn(const Aws::String& value) { m_clientCredentialsArnHasBeenSet = true; m_clientCredentialsArn = value; }
92 inline void SetClientCredentialsArn(Aws::String&& value) { m_clientCredentialsArnHasBeenSet = true; m_clientCredentialsArn = std::move(value); }
93 inline void SetClientCredentialsArn(const char* value) { m_clientCredentialsArnHasBeenSet = true; m_clientCredentialsArn.assign(value); }
98
100
116 inline const OAuth2GrantType& GetOAuth2GrantType() const{ return m_oAuth2GrantType; }
117 inline bool OAuth2GrantTypeHasBeenSet() const { return m_oAuth2GrantTypeHasBeenSet; }
118 inline void SetOAuth2GrantType(const OAuth2GrantType& value) { m_oAuth2GrantTypeHasBeenSet = true; m_oAuth2GrantType = value; }
119 inline void SetOAuth2GrantType(OAuth2GrantType&& value) { m_oAuth2GrantTypeHasBeenSet = true; m_oAuth2GrantType = std::move(value); }
123
125
129 inline const Aws::String& GetJwtToken() const{ return m_jwtToken; }
130 inline bool JwtTokenHasBeenSet() const { return m_jwtTokenHasBeenSet; }
131 inline void SetJwtToken(const Aws::String& value) { m_jwtTokenHasBeenSet = true; m_jwtToken = value; }
132 inline void SetJwtToken(Aws::String&& value) { m_jwtTokenHasBeenSet = true; m_jwtToken = std::move(value); }
133 inline void SetJwtToken(const char* value) { m_jwtTokenHasBeenSet = true; m_jwtToken.assign(value); }
134 inline SalesforceConnectorProfileCredentials& WithJwtToken(const Aws::String& value) { SetJwtToken(value); return *this;}
135 inline SalesforceConnectorProfileCredentials& WithJwtToken(Aws::String&& value) { SetJwtToken(std::move(value)); return *this;}
136 inline SalesforceConnectorProfileCredentials& WithJwtToken(const char* value) { SetJwtToken(value); return *this;}
138 private:
139
140 Aws::String m_accessToken;
141 bool m_accessTokenHasBeenSet = false;
142
143 Aws::String m_refreshToken;
144 bool m_refreshTokenHasBeenSet = false;
145
146 ConnectorOAuthRequest m_oAuthRequest;
147 bool m_oAuthRequestHasBeenSet = false;
148
149 Aws::String m_clientCredentialsArn;
150 bool m_clientCredentialsArnHasBeenSet = false;
151
152 OAuth2GrantType m_oAuth2GrantType;
153 bool m_oAuth2GrantTypeHasBeenSet = false;
154
155 Aws::String m_jwtToken;
156 bool m_jwtTokenHasBeenSet = false;
157 };
158
159} // namespace Model
160} // namespace Appflow
161} // namespace Aws
SalesforceConnectorProfileCredentials & WithOAuthRequest(const ConnectorOAuthRequest &value)
AWS_APPFLOW_API SalesforceConnectorProfileCredentials & operator=(Aws::Utils::Json::JsonView jsonValue)
SalesforceConnectorProfileCredentials & WithAccessToken(Aws::String &&value)
SalesforceConnectorProfileCredentials & WithAccessToken(const Aws::String &value)
SalesforceConnectorProfileCredentials & WithOAuthRequest(ConnectorOAuthRequest &&value)
SalesforceConnectorProfileCredentials & WithRefreshToken(Aws::String &&value)
SalesforceConnectorProfileCredentials & WithAccessToken(const char *value)
SalesforceConnectorProfileCredentials & WithClientCredentialsArn(const char *value)
SalesforceConnectorProfileCredentials & WithClientCredentialsArn(const Aws::String &value)
SalesforceConnectorProfileCredentials & WithRefreshToken(const char *value)
SalesforceConnectorProfileCredentials & WithJwtToken(const Aws::String &value)
SalesforceConnectorProfileCredentials & WithOAuth2GrantType(OAuth2GrantType &&value)
SalesforceConnectorProfileCredentials & WithJwtToken(Aws::String &&value)
SalesforceConnectorProfileCredentials & WithOAuth2GrantType(const OAuth2GrantType &value)
SalesforceConnectorProfileCredentials & WithJwtToken(const char *value)
AWS_APPFLOW_API SalesforceConnectorProfileCredentials(Aws::Utils::Json::JsonView jsonValue)
SalesforceConnectorProfileCredentials & WithClientCredentialsArn(Aws::String &&value)
SalesforceConnectorProfileCredentials & WithRefreshToken(const Aws::String &value)
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