7#include <aws/devops-agent/DevOpsAgent_EXPORTS.h>
8#include <aws/devops-agent/model/RemoteAgentAPIKeyConfig.h>
9#include <aws/devops-agent/model/RemoteAgentBearerTokenConfig.h>
10#include <aws/devops-agent/model/RemoteAgentOAuthClientCredentialsConfig.h>
21namespace DevOpsAgent {
43 template <
typename ApiKeyT = RemoteAgentAPIKeyConfig>
45 m_apiKeyHasBeenSet =
true;
46 m_apiKey = std::forward<ApiKeyT>(value);
48 template <
typename ApiKeyT = RemoteAgentAPIKeyConfig>
61 template <
typename OAuthClientCredentialsT = RemoteAgentOAuthClientCredentialsConfig>
63 m_oAuthClientCredentialsHasBeenSet =
true;
64 m_oAuthClientCredentials = std::forward<OAuthClientCredentialsT>(value);
66 template <
typename OAuthClientCredentialsT = RemoteAgentOAuthClientCredentialsConfig>
79 template <
typename BearerTokenT = RemoteAgentBearerTokenConfig>
81 m_bearerTokenHasBeenSet =
true;
82 m_bearerToken = std::forward<BearerTokenT>(value);
84 template <
typename BearerTokenT = RemoteAgentBearerTokenConfig>
96 bool m_apiKeyHasBeenSet =
false;
97 bool m_oAuthClientCredentialsHasBeenSet =
false;
98 bool m_bearerTokenHasBeenSet =
false;
AWS_DEVOPSAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
RemoteAgentAuthorizationConfig & WithOAuthClientCredentials(OAuthClientCredentialsT &&value)
RemoteAgentAuthorizationConfig & WithBearerToken(BearerTokenT &&value)
RemoteAgentAuthorizationConfig & WithApiKey(ApiKeyT &&value)
bool OAuthClientCredentialsHasBeenSet() const
const RemoteAgentOAuthClientCredentialsConfig & GetOAuthClientCredentials() const
void SetApiKey(ApiKeyT &&value)
bool ApiKeyHasBeenSet() const
void SetBearerToken(BearerTokenT &&value)
AWS_DEVOPSAGENT_API RemoteAgentAuthorizationConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
const RemoteAgentBearerTokenConfig & GetBearerToken() const
void SetOAuthClientCredentials(OAuthClientCredentialsT &&value)
const RemoteAgentAPIKeyConfig & GetApiKey() const
bool BearerTokenHasBeenSet() const
AWS_DEVOPSAGENT_API RemoteAgentAuthorizationConfig()=default
AWS_DEVOPSAGENT_API RemoteAgentAuthorizationConfig(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue