AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ZendeskConnectorProfileCredentials.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 <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 ZendeskConnectorProfileCredentials() = default;
39 AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetClientId() const { return m_clientId; }
47 inline bool ClientIdHasBeenSet() const { return m_clientIdHasBeenSet; }
48 template<typename ClientIdT = Aws::String>
49 void SetClientId(ClientIdT&& value) { m_clientIdHasBeenSet = true; m_clientId = std::forward<ClientIdT>(value); }
50 template<typename ClientIdT = Aws::String>
51 ZendeskConnectorProfileCredentials& WithClientId(ClientIdT&& value) { SetClientId(std::forward<ClientIdT>(value)); return *this;}
53
55
59 inline const Aws::String& GetClientSecret() const { return m_clientSecret; }
60 inline bool ClientSecretHasBeenSet() const { return m_clientSecretHasBeenSet; }
61 template<typename ClientSecretT = Aws::String>
62 void SetClientSecret(ClientSecretT&& value) { m_clientSecretHasBeenSet = true; m_clientSecret = std::forward<ClientSecretT>(value); }
63 template<typename ClientSecretT = Aws::String>
64 ZendeskConnectorProfileCredentials& WithClientSecret(ClientSecretT&& value) { SetClientSecret(std::forward<ClientSecretT>(value)); return *this;}
66
68
71 inline const Aws::String& GetAccessToken() const { return m_accessToken; }
72 inline bool AccessTokenHasBeenSet() const { return m_accessTokenHasBeenSet; }
73 template<typename AccessTokenT = Aws::String>
74 void SetAccessToken(AccessTokenT&& value) { m_accessTokenHasBeenSet = true; m_accessToken = std::forward<AccessTokenT>(value); }
75 template<typename AccessTokenT = Aws::String>
76 ZendeskConnectorProfileCredentials& WithAccessToken(AccessTokenT&& value) { SetAccessToken(std::forward<AccessTokenT>(value)); return *this;}
78
80
84 inline const ConnectorOAuthRequest& GetOAuthRequest() const { return m_oAuthRequest; }
85 inline bool OAuthRequestHasBeenSet() const { return m_oAuthRequestHasBeenSet; }
86 template<typename OAuthRequestT = ConnectorOAuthRequest>
87 void SetOAuthRequest(OAuthRequestT&& value) { m_oAuthRequestHasBeenSet = true; m_oAuthRequest = std::forward<OAuthRequestT>(value); }
88 template<typename OAuthRequestT = ConnectorOAuthRequest>
89 ZendeskConnectorProfileCredentials& WithOAuthRequest(OAuthRequestT&& value) { SetOAuthRequest(std::forward<OAuthRequestT>(value)); return *this;}
91 private:
92
93 Aws::String m_clientId;
94 bool m_clientIdHasBeenSet = false;
95
96 Aws::String m_clientSecret;
97 bool m_clientSecretHasBeenSet = false;
98
99 Aws::String m_accessToken;
100 bool m_accessTokenHasBeenSet = false;
101
102 ConnectorOAuthRequest m_oAuthRequest;
103 bool m_oAuthRequestHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace Appflow
108} // namespace Aws
AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const
ZendeskConnectorProfileCredentials & WithOAuthRequest(OAuthRequestT &&value)
AWS_APPFLOW_API ZendeskConnectorProfileCredentials & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPFLOW_API ZendeskConnectorProfileCredentials(Aws::Utils::Json::JsonView jsonValue)
ZendeskConnectorProfileCredentials & WithAccessToken(AccessTokenT &&value)
ZendeskConnectorProfileCredentials & WithClientId(ClientIdT &&value)
ZendeskConnectorProfileCredentials & WithClientSecret(ClientSecretT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue