public ImportSourceCredentialsRequest withAuthType(AuthType authType) {
        this.authType = authType.toString();
        return this;
    }
<p>
The type of authentication used to connect to a GitHub, GitHub Enterprise, GitLab, GitLab Self Managed, or
Bitbucket repository. An OAUTH connection is not supported by the API and must be created using the CodeBuild
console. Note that CODECONNECTIONS is only valid for GitLab and GitLab Self Managed.
</p>

@param authType
       The type of authentication used to connect to a GitHub, GitHub Enterprise, GitLab, GitLab Self Managed, or
       Bitbucket repository. An OAUTH connection is not supported by the API and must be created using the
       CodeBuild console. Note that CODECONNECTIONS is only valid for GitLab and GitLab Self Managed.
@return Returns a reference to this object so that method calls can be chained together.
@see AuthType
aws-java-sdk-codebuild/src/main/java/com/amazonaws/services/codebuild/model/ImportSourceCredentialsRequest.java