/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The connector-specific profile credentials required by Google Analytics.
* See Also:
AWS
* API Reference
The identifier for the desired client.
*/ inline const Aws::String& GetClientId() const{ return m_clientId; } /** *The identifier for the desired client.
*/ inline bool ClientIdHasBeenSet() const { return m_clientIdHasBeenSet; } /** *The identifier for the desired client.
*/ inline void SetClientId(const Aws::String& value) { m_clientIdHasBeenSet = true; m_clientId = value; } /** *The identifier for the desired client.
*/ inline void SetClientId(Aws::String&& value) { m_clientIdHasBeenSet = true; m_clientId = std::move(value); } /** *The identifier for the desired client.
*/ inline void SetClientId(const char* value) { m_clientIdHasBeenSet = true; m_clientId.assign(value); } /** *The identifier for the desired client.
*/ inline GoogleAnalyticsConnectorProfileCredentials& WithClientId(const Aws::String& value) { SetClientId(value); return *this;} /** *The identifier for the desired client.
*/ inline GoogleAnalyticsConnectorProfileCredentials& WithClientId(Aws::String&& value) { SetClientId(std::move(value)); return *this;} /** *The identifier for the desired client.
*/ inline GoogleAnalyticsConnectorProfileCredentials& WithClientId(const char* value) { SetClientId(value); return *this;} /** *The client secret used by the OAuth client to authenticate to the * authorization server.
*/ inline const Aws::String& GetClientSecret() const{ return m_clientSecret; } /** *The client secret used by the OAuth client to authenticate to the * authorization server.
*/ inline bool ClientSecretHasBeenSet() const { return m_clientSecretHasBeenSet; } /** *The client secret used by the OAuth client to authenticate to the * authorization server.
*/ inline void SetClientSecret(const Aws::String& value) { m_clientSecretHasBeenSet = true; m_clientSecret = value; } /** *The client secret used by the OAuth client to authenticate to the * authorization server.
*/ inline void SetClientSecret(Aws::String&& value) { m_clientSecretHasBeenSet = true; m_clientSecret = std::move(value); } /** *The client secret used by the OAuth client to authenticate to the * authorization server.
*/ inline void SetClientSecret(const char* value) { m_clientSecretHasBeenSet = true; m_clientSecret.assign(value); } /** *The client secret used by the OAuth client to authenticate to the * authorization server.
*/ inline GoogleAnalyticsConnectorProfileCredentials& WithClientSecret(const Aws::String& value) { SetClientSecret(value); return *this;} /** *The client secret used by the OAuth client to authenticate to the * authorization server.
*/ inline GoogleAnalyticsConnectorProfileCredentials& WithClientSecret(Aws::String&& value) { SetClientSecret(std::move(value)); return *this;} /** *The client secret used by the OAuth client to authenticate to the * authorization server.
*/ inline GoogleAnalyticsConnectorProfileCredentials& WithClientSecret(const char* value) { SetClientSecret(value); return *this;} /** *The credentials used to access protected Google Analytics resources.
*/ inline const Aws::String& GetAccessToken() const{ return m_accessToken; } /** *The credentials used to access protected Google Analytics resources.
*/ inline bool AccessTokenHasBeenSet() const { return m_accessTokenHasBeenSet; } /** *The credentials used to access protected Google Analytics resources.
*/ inline void SetAccessToken(const Aws::String& value) { m_accessTokenHasBeenSet = true; m_accessToken = value; } /** *The credentials used to access protected Google Analytics resources.
*/ inline void SetAccessToken(Aws::String&& value) { m_accessTokenHasBeenSet = true; m_accessToken = std::move(value); } /** *The credentials used to access protected Google Analytics resources.
*/ inline void SetAccessToken(const char* value) { m_accessTokenHasBeenSet = true; m_accessToken.assign(value); } /** *The credentials used to access protected Google Analytics resources.
*/ inline GoogleAnalyticsConnectorProfileCredentials& WithAccessToken(const Aws::String& value) { SetAccessToken(value); return *this;} /** *The credentials used to access protected Google Analytics resources.
*/ inline GoogleAnalyticsConnectorProfileCredentials& WithAccessToken(Aws::String&& value) { SetAccessToken(std::move(value)); return *this;} /** *The credentials used to access protected Google Analytics resources.
*/ inline GoogleAnalyticsConnectorProfileCredentials& WithAccessToken(const char* value) { SetAccessToken(value); return *this;} /** *The credentials used to acquire new access tokens. This is required only for * OAuth2 access tokens, and is not required for OAuth1 access tokens.
*/ inline const Aws::String& GetRefreshToken() const{ return m_refreshToken; } /** *The credentials used to acquire new access tokens. This is required only for * OAuth2 access tokens, and is not required for OAuth1 access tokens.
*/ inline bool RefreshTokenHasBeenSet() const { return m_refreshTokenHasBeenSet; } /** *The credentials used to acquire new access tokens. This is required only for * OAuth2 access tokens, and is not required for OAuth1 access tokens.
*/ inline void SetRefreshToken(const Aws::String& value) { m_refreshTokenHasBeenSet = true; m_refreshToken = value; } /** *The credentials used to acquire new access tokens. This is required only for * OAuth2 access tokens, and is not required for OAuth1 access tokens.
*/ inline void SetRefreshToken(Aws::String&& value) { m_refreshTokenHasBeenSet = true; m_refreshToken = std::move(value); } /** *The credentials used to acquire new access tokens. This is required only for * OAuth2 access tokens, and is not required for OAuth1 access tokens.
*/ inline void SetRefreshToken(const char* value) { m_refreshTokenHasBeenSet = true; m_refreshToken.assign(value); } /** *The credentials used to acquire new access tokens. This is required only for * OAuth2 access tokens, and is not required for OAuth1 access tokens.
*/ inline GoogleAnalyticsConnectorProfileCredentials& WithRefreshToken(const Aws::String& value) { SetRefreshToken(value); return *this;} /** *The credentials used to acquire new access tokens. This is required only for * OAuth2 access tokens, and is not required for OAuth1 access tokens.
*/ inline GoogleAnalyticsConnectorProfileCredentials& WithRefreshToken(Aws::String&& value) { SetRefreshToken(std::move(value)); return *this;} /** *The credentials used to acquire new access tokens. This is required only for * OAuth2 access tokens, and is not required for OAuth1 access tokens.
*/ inline GoogleAnalyticsConnectorProfileCredentials& WithRefreshToken(const char* value) { SetRefreshToken(value); return *this;} /** *The OAuth requirement needed to request security tokens from the connector * endpoint.
*/ inline const ConnectorOAuthRequest& GetOAuthRequest() const{ return m_oAuthRequest; } /** *The OAuth requirement needed to request security tokens from the connector * endpoint.
*/ inline bool OAuthRequestHasBeenSet() const { return m_oAuthRequestHasBeenSet; } /** *The OAuth requirement needed to request security tokens from the connector * endpoint.
*/ inline void SetOAuthRequest(const ConnectorOAuthRequest& value) { m_oAuthRequestHasBeenSet = true; m_oAuthRequest = value; } /** *The OAuth requirement needed to request security tokens from the connector * endpoint.
*/ inline void SetOAuthRequest(ConnectorOAuthRequest&& value) { m_oAuthRequestHasBeenSet = true; m_oAuthRequest = std::move(value); } /** *The OAuth requirement needed to request security tokens from the connector * endpoint.
*/ inline GoogleAnalyticsConnectorProfileCredentials& WithOAuthRequest(const ConnectorOAuthRequest& value) { SetOAuthRequest(value); return *this;} /** *The OAuth requirement needed to request security tokens from the connector * endpoint.
*/ inline GoogleAnalyticsConnectorProfileCredentials& WithOAuthRequest(ConnectorOAuthRequest&& value) { SetOAuthRequest(std::move(value)); return *this;} private: Aws::String m_clientId; bool m_clientIdHasBeenSet = false; Aws::String m_clientSecret; bool m_clientSecretHasBeenSet = false; Aws::String m_accessToken; bool m_accessTokenHasBeenSet = false; Aws::String m_refreshToken; bool m_refreshTokenHasBeenSet = false; ConnectorOAuthRequest m_oAuthRequest; bool m_oAuthRequestHasBeenSet = false; }; } // namespace Model } // namespace Appflow } // namespace Aws