/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Information about the credentials for a GitHub, GitHub Enterprise, or
* Bitbucket repository. See Also:
AWS
* API Reference
The Amazon Resource Name (ARN) of the token.
*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *The Amazon Resource Name (ARN) of the token.
*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *The Amazon Resource Name (ARN) of the token.
*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *The Amazon Resource Name (ARN) of the token.
*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *The Amazon Resource Name (ARN) of the token.
*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *The Amazon Resource Name (ARN) of the token.
*/ inline SourceCredentialsInfo& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *The Amazon Resource Name (ARN) of the token.
*/ inline SourceCredentialsInfo& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the token.
*/ inline SourceCredentialsInfo& WithArn(const char* value) { SetArn(value); return *this;} /** *The type of source provider. The valid options are GITHUB, * GITHUB_ENTERPRISE, or BITBUCKET.
*/ inline const ServerType& GetServerType() const{ return m_serverType; } /** *The type of source provider. The valid options are GITHUB, * GITHUB_ENTERPRISE, or BITBUCKET.
*/ inline bool ServerTypeHasBeenSet() const { return m_serverTypeHasBeenSet; } /** *The type of source provider. The valid options are GITHUB, * GITHUB_ENTERPRISE, or BITBUCKET.
*/ inline void SetServerType(const ServerType& value) { m_serverTypeHasBeenSet = true; m_serverType = value; } /** *The type of source provider. The valid options are GITHUB, * GITHUB_ENTERPRISE, or BITBUCKET.
*/ inline void SetServerType(ServerType&& value) { m_serverTypeHasBeenSet = true; m_serverType = std::move(value); } /** *The type of source provider. The valid options are GITHUB, * GITHUB_ENTERPRISE, or BITBUCKET.
*/ inline SourceCredentialsInfo& WithServerType(const ServerType& value) { SetServerType(value); return *this;} /** *The type of source provider. The valid options are GITHUB, * GITHUB_ENTERPRISE, or BITBUCKET.
*/ inline SourceCredentialsInfo& WithServerType(ServerType&& value) { SetServerType(std::move(value)); return *this;} /** *The type of authentication used by the credentials. Valid options are OAUTH, * BASIC_AUTH, or PERSONAL_ACCESS_TOKEN.
*/ inline const AuthType& GetAuthType() const{ return m_authType; } /** *The type of authentication used by the credentials. Valid options are OAUTH, * BASIC_AUTH, or PERSONAL_ACCESS_TOKEN.
*/ inline bool AuthTypeHasBeenSet() const { return m_authTypeHasBeenSet; } /** *The type of authentication used by the credentials. Valid options are OAUTH, * BASIC_AUTH, or PERSONAL_ACCESS_TOKEN.
*/ inline void SetAuthType(const AuthType& value) { m_authTypeHasBeenSet = true; m_authType = value; } /** *The type of authentication used by the credentials. Valid options are OAUTH, * BASIC_AUTH, or PERSONAL_ACCESS_TOKEN.
*/ inline void SetAuthType(AuthType&& value) { m_authTypeHasBeenSet = true; m_authType = std::move(value); } /** *The type of authentication used by the credentials. Valid options are OAUTH, * BASIC_AUTH, or PERSONAL_ACCESS_TOKEN.
*/ inline SourceCredentialsInfo& WithAuthType(const AuthType& value) { SetAuthType(value); return *this;} /** *The type of authentication used by the credentials. Valid options are OAUTH, * BASIC_AUTH, or PERSONAL_ACCESS_TOKEN.
*/ inline SourceCredentialsInfo& WithAuthType(AuthType&& value) { SetAuthType(std::move(value)); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet; ServerType m_serverType; bool m_serverTypeHasBeenSet; AuthType m_authType; bool m_authTypeHasBeenSet; }; } // namespace Model } // namespace CodeBuild } // namespace Aws