AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
SlackConnectorProfileCredentials.h
1
6#pragma once
7#include <aws/appflow/Appflow_EXPORTS.h>
8#include <aws/appflow/model/ConnectorOAuthRequest.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 SlackConnectorProfileCredentials() = default;
34 AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetClientId() const { return m_clientId; }
41 inline bool ClientIdHasBeenSet() const { return m_clientIdHasBeenSet; }
42 template <typename ClientIdT = Aws::String>
43 void SetClientId(ClientIdT&& value) {
44 m_clientIdHasBeenSet = true;
45 m_clientId = std::forward<ClientIdT>(value);
46 }
47 template <typename ClientIdT = Aws::String>
49 SetClientId(std::forward<ClientIdT>(value));
50 return *this;
51 }
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) {
63 m_clientSecretHasBeenSet = true;
64 m_clientSecret = std::forward<ClientSecretT>(value);
65 }
66 template <typename ClientSecretT = Aws::String>
68 SetClientSecret(std::forward<ClientSecretT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetAccessToken() const { return m_accessToken; }
78 inline bool AccessTokenHasBeenSet() const { return m_accessTokenHasBeenSet; }
79 template <typename AccessTokenT = Aws::String>
80 void SetAccessToken(AccessTokenT&& value) {
81 m_accessTokenHasBeenSet = true;
82 m_accessToken = std::forward<AccessTokenT>(value);
83 }
84 template <typename AccessTokenT = Aws::String>
86 SetAccessToken(std::forward<AccessTokenT>(value));
87 return *this;
88 }
90
92
96 inline const ConnectorOAuthRequest& GetOAuthRequest() const { return m_oAuthRequest; }
97 inline bool OAuthRequestHasBeenSet() const { return m_oAuthRequestHasBeenSet; }
98 template <typename OAuthRequestT = ConnectorOAuthRequest>
99 void SetOAuthRequest(OAuthRequestT&& value) {
100 m_oAuthRequestHasBeenSet = true;
101 m_oAuthRequest = std::forward<OAuthRequestT>(value);
102 }
103 template <typename OAuthRequestT = ConnectorOAuthRequest>
105 SetOAuthRequest(std::forward<OAuthRequestT>(value));
106 return *this;
107 }
109 private:
110 Aws::String m_clientId;
111
112 Aws::String m_clientSecret;
113
114 Aws::String m_accessToken;
115
116 ConnectorOAuthRequest m_oAuthRequest;
117 bool m_clientIdHasBeenSet = false;
118 bool m_clientSecretHasBeenSet = false;
119 bool m_accessTokenHasBeenSet = false;
120 bool m_oAuthRequestHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace Appflow
125} // namespace Aws
AWS_APPFLOW_API SlackConnectorProfileCredentials()=default
SlackConnectorProfileCredentials & WithClientSecret(ClientSecretT &&value)
AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const
SlackConnectorProfileCredentials & WithOAuthRequest(OAuthRequestT &&value)
SlackConnectorProfileCredentials & WithClientId(ClientIdT &&value)
AWS_APPFLOW_API SlackConnectorProfileCredentials(Aws::Utils::Json::JsonView jsonValue)
SlackConnectorProfileCredentials & WithAccessToken(AccessTokenT &&value)
AWS_APPFLOW_API SlackConnectorProfileCredentials & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue