AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GoogleAnalyticsConnectorProfileCredentials.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:
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 inline void SetClientId(const Aws::String& value) { m_clientIdHasBeenSet = true; m_clientId = value; }
49 inline void SetClientId(Aws::String&& value) { m_clientIdHasBeenSet = true; m_clientId = std::move(value); }
50 inline void SetClientId(const char* value) { m_clientIdHasBeenSet = true; m_clientId.assign(value); }
52 inline GoogleAnalyticsConnectorProfileCredentials& WithClientId(Aws::String&& value) { SetClientId(std::move(value)); return *this;}
53 inline GoogleAnalyticsConnectorProfileCredentials& WithClientId(const char* value) { SetClientId(value); return *this;}
55
57
61 inline const Aws::String& GetClientSecret() const{ return m_clientSecret; }
62 inline bool ClientSecretHasBeenSet() const { return m_clientSecretHasBeenSet; }
63 inline void SetClientSecret(const Aws::String& value) { m_clientSecretHasBeenSet = true; m_clientSecret = value; }
64 inline void SetClientSecret(Aws::String&& value) { m_clientSecretHasBeenSet = true; m_clientSecret = std::move(value); }
65 inline void SetClientSecret(const char* value) { m_clientSecretHasBeenSet = true; m_clientSecret.assign(value); }
68 inline GoogleAnalyticsConnectorProfileCredentials& WithClientSecret(const char* value) { SetClientSecret(value); return *this;}
70
72
75 inline const Aws::String& GetAccessToken() const{ return m_accessToken; }
76 inline bool AccessTokenHasBeenSet() const { return m_accessTokenHasBeenSet; }
77 inline void SetAccessToken(const Aws::String& value) { m_accessTokenHasBeenSet = true; m_accessToken = value; }
78 inline void SetAccessToken(Aws::String&& value) { m_accessTokenHasBeenSet = true; m_accessToken = std::move(value); }
79 inline void SetAccessToken(const char* value) { m_accessTokenHasBeenSet = true; m_accessToken.assign(value); }
81 inline GoogleAnalyticsConnectorProfileCredentials& WithAccessToken(Aws::String&& value) { SetAccessToken(std::move(value)); return *this;}
82 inline GoogleAnalyticsConnectorProfileCredentials& WithAccessToken(const char* value) { SetAccessToken(value); return *this;}
84
86
90 inline const Aws::String& GetRefreshToken() const{ return m_refreshToken; }
91 inline bool RefreshTokenHasBeenSet() const { return m_refreshTokenHasBeenSet; }
92 inline void SetRefreshToken(const Aws::String& value) { m_refreshTokenHasBeenSet = true; m_refreshToken = value; }
93 inline void SetRefreshToken(Aws::String&& value) { m_refreshTokenHasBeenSet = true; m_refreshToken = std::move(value); }
94 inline void SetRefreshToken(const char* value) { m_refreshTokenHasBeenSet = true; m_refreshToken.assign(value); }
97 inline GoogleAnalyticsConnectorProfileCredentials& WithRefreshToken(const char* value) { SetRefreshToken(value); return *this;}
99
101
105 inline const ConnectorOAuthRequest& GetOAuthRequest() const{ return m_oAuthRequest; }
106 inline bool OAuthRequestHasBeenSet() const { return m_oAuthRequestHasBeenSet; }
107 inline void SetOAuthRequest(const ConnectorOAuthRequest& value) { m_oAuthRequestHasBeenSet = true; m_oAuthRequest = value; }
108 inline void SetOAuthRequest(ConnectorOAuthRequest&& value) { m_oAuthRequestHasBeenSet = true; m_oAuthRequest = std::move(value); }
112 private:
113
114 Aws::String m_clientId;
115 bool m_clientIdHasBeenSet = false;
116
117 Aws::String m_clientSecret;
118 bool m_clientSecretHasBeenSet = false;
119
120 Aws::String m_accessToken;
121 bool m_accessTokenHasBeenSet = false;
122
123 Aws::String m_refreshToken;
124 bool m_refreshTokenHasBeenSet = false;
125
126 ConnectorOAuthRequest m_oAuthRequest;
127 bool m_oAuthRequestHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace Appflow
132} // namespace Aws
AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const
GoogleAnalyticsConnectorProfileCredentials & WithRefreshToken(Aws::String &&value)
GoogleAnalyticsConnectorProfileCredentials & WithRefreshToken(const Aws::String &value)
GoogleAnalyticsConnectorProfileCredentials & WithAccessToken(const Aws::String &value)
GoogleAnalyticsConnectorProfileCredentials & WithClientId(const Aws::String &value)
GoogleAnalyticsConnectorProfileCredentials & WithOAuthRequest(const ConnectorOAuthRequest &value)
AWS_APPFLOW_API GoogleAnalyticsConnectorProfileCredentials & operator=(Aws::Utils::Json::JsonView jsonValue)
GoogleAnalyticsConnectorProfileCredentials & WithClientId(const char *value)
GoogleAnalyticsConnectorProfileCredentials & WithClientId(Aws::String &&value)
GoogleAnalyticsConnectorProfileCredentials & WithOAuthRequest(ConnectorOAuthRequest &&value)
AWS_APPFLOW_API GoogleAnalyticsConnectorProfileCredentials(Aws::Utils::Json::JsonView jsonValue)
GoogleAnalyticsConnectorProfileCredentials & WithRefreshToken(const char *value)
GoogleAnalyticsConnectorProfileCredentials & WithClientSecret(Aws::String &&value)
GoogleAnalyticsConnectorProfileCredentials & WithClientSecret(const Aws::String &value)
GoogleAnalyticsConnectorProfileCredentials & WithAccessToken(const char *value)
GoogleAnalyticsConnectorProfileCredentials & WithAccessToken(Aws::String &&value)
GoogleAnalyticsConnectorProfileCredentials & WithClientSecret(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue