/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.codebuild.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Information about the build input source code for the build project. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ProjectSource implements Serializable, Cloneable, StructuredPojo { /** ** The type of repository that contains the source code to be built. Valid values include: *
*
* BITBUCKET
: The source code is in a Bitbucket repository.
*
* CODECOMMIT
: The source code is in an CodeCommit repository.
*
* CODEPIPELINE
: The source code settings are specified in the source action of a pipeline in
* CodePipeline.
*
* GITHUB
: The source code is in a GitHub or GitHub Enterprise Cloud repository.
*
* GITHUB_ENTERPRISE
: The source code is in a GitHub Enterprise Server repository.
*
* NO_SOURCE
: The project does not have input source code.
*
* S3
: The source code is in an Amazon S3 bucket.
*
* Information about the location of the source code to be built. Valid values include: *
*
* For source code settings that are specified in the source action of a pipeline in CodePipeline,
* location
should not be specified. If it is specified, CodePipeline ignores it. This is because
* CodePipeline uses the settings in a pipeline's source action instead of this value.
*
* For source code in an CodeCommit repository, the HTTPS clone URL to the repository that contains the source code
* and the buildspec file (for example,
* https://git-codecommit.<region-ID>.amazonaws.com/v1/repos/<repo-name>
).
*
* For source code in an Amazon S3 input bucket, one of the following. *
*
* The path to the ZIP file that contains the source code (for example,
* <bucket-name>/<path>/<object-name>.zip
).
*
* The path to the folder that contains the source code (for example,
* <bucket-name>/<path-to-source-code>/<folder>/
).
*
* For source code in a GitHub repository, the HTTPS clone URL to the repository that contains the source and the
* buildspec file. You must connect your Amazon Web Services account to your GitHub account. Use the CodeBuild
* console to start creating a build project. When you use the console to connect (or reconnect) with GitHub, on the
* GitHub Authorize application page, for Organization access, choose Request access next to
* each repository you want to allow CodeBuild to have access to, and then choose Authorize application.
* (After you have connected to your GitHub account, you do not need to finish creating the build project. You can
* leave the CodeBuild console.) To instruct CodeBuild to use this connection, in the source
object,
* set the auth
object's type
value to OAUTH
.
*
* For source code in a Bitbucket repository, the HTTPS clone URL to the repository that contains the source and the
* buildspec file. You must connect your Amazon Web Services account to your Bitbucket account. Use the CodeBuild
* console to start creating a build project. When you use the console to connect (or reconnect) with Bitbucket, on
* the Bitbucket Confirm access to your account page, choose Grant access. (After you have connected
* to your Bitbucket account, you do not need to finish creating the build project. You can leave the CodeBuild
* console.) To instruct CodeBuild to use this connection, in the source
object, set the
* auth
object's type
value to OAUTH
.
*
* If you specify CODEPIPELINE
for the Type
property, don't specify this property. For all
* of the other types, you must specify Location
.
*
* Information about the Git clone depth for the build project. *
*/ private Integer gitCloneDepth; /** ** Information about the Git submodules configuration for the build project. *
*/ private GitSubmodulesConfig gitSubmodulesConfig; /** ** The buildspec file declaration to use for the builds in this build project. *
*
* If this value is set, it can be either an inline buildspec definition, the path to an alternate buildspec file
* relative to the value of the built-in CODEBUILD_SRC_DIR
environment variable, or the path to an S3
* bucket. The bucket must be in the same Amazon Web Services Region as the build project. Specify the buildspec
* file using its ARN (for example, arn:aws:s3:::my-codebuild-sample2/buildspec.yml
). If this value is
* not provided or is set to an empty string, the source code must contain a buildspec file in its root directory.
* For more information, see Buildspec File Name and Storage Location.
*
* Information about the authorization settings for CodeBuild to access the source code to be built. *
** This information is for the CodeBuild console's use only. Your code should not get or set this information * directly. *
*/ private SourceAuth auth; /** *
* Set to true to report the status of a build's start and finish to your source provider. This option is valid only
* when your source provider is GitHub, GitHub Enterprise, or Bitbucket. If this is set and you use a different
* source provider, an invalidInputException
is thrown.
*
* To be able to report the build status to the source provider, the user associated with the source provider must * have write access to the repo. If the user does not have write access, the build status cannot be updated. For * more information, see Source * provider access in the CodeBuild User Guide. *
** The status of a build triggered by a webhook is always reported to your source provider. *
** If your project's builds are triggered by a webhook, you must push a new commit to the repo for a change to this * property to take effect. *
*/ private Boolean reportBuildStatus; /** *
* Contains information that defines how the build project reports the build status to the source provider. This
* option is only used when the source provider is GITHUB
, GITHUB_ENTERPRISE
, or
* BITBUCKET
.
*
* Enable this flag to ignore SSL warnings while connecting to the project source code. *
*/ private Boolean insecureSsl; /** ** An identifier for this project source. The identifier can only contain alphanumeric characters and underscores, * and must be less than 128 characters in length. *
*/ private String sourceIdentifier; /** ** The type of repository that contains the source code to be built. Valid values include: *
*
* BITBUCKET
: The source code is in a Bitbucket repository.
*
* CODECOMMIT
: The source code is in an CodeCommit repository.
*
* CODEPIPELINE
: The source code settings are specified in the source action of a pipeline in
* CodePipeline.
*
* GITHUB
: The source code is in a GitHub or GitHub Enterprise Cloud repository.
*
* GITHUB_ENTERPRISE
: The source code is in a GitHub Enterprise Server repository.
*
* NO_SOURCE
: The project does not have input source code.
*
* S3
: The source code is in an Amazon S3 bucket.
*
* BITBUCKET
: The source code is in a Bitbucket repository.
*
* CODECOMMIT
: The source code is in an CodeCommit repository.
*
* CODEPIPELINE
: The source code settings are specified in the source action of a pipeline in
* CodePipeline.
*
* GITHUB
: The source code is in a GitHub or GitHub Enterprise Cloud repository.
*
* GITHUB_ENTERPRISE
: The source code is in a GitHub Enterprise Server repository.
*
* NO_SOURCE
: The project does not have input source code.
*
* S3
: The source code is in an Amazon S3 bucket.
*
* The type of repository that contains the source code to be built. Valid values include: *
*
* BITBUCKET
: The source code is in a Bitbucket repository.
*
* CODECOMMIT
: The source code is in an CodeCommit repository.
*
* CODEPIPELINE
: The source code settings are specified in the source action of a pipeline in
* CodePipeline.
*
* GITHUB
: The source code is in a GitHub or GitHub Enterprise Cloud repository.
*
* GITHUB_ENTERPRISE
: The source code is in a GitHub Enterprise Server repository.
*
* NO_SOURCE
: The project does not have input source code.
*
* S3
: The source code is in an Amazon S3 bucket.
*
* BITBUCKET
: The source code is in a Bitbucket repository.
*
* CODECOMMIT
: The source code is in an CodeCommit repository.
*
* CODEPIPELINE
: The source code settings are specified in the source action of a pipeline in
* CodePipeline.
*
* GITHUB
: The source code is in a GitHub or GitHub Enterprise Cloud repository.
*
* GITHUB_ENTERPRISE
: The source code is in a GitHub Enterprise Server repository.
*
* NO_SOURCE
: The project does not have input source code.
*
* S3
: The source code is in an Amazon S3 bucket.
*
* The type of repository that contains the source code to be built. Valid values include: *
*
* BITBUCKET
: The source code is in a Bitbucket repository.
*
* CODECOMMIT
: The source code is in an CodeCommit repository.
*
* CODEPIPELINE
: The source code settings are specified in the source action of a pipeline in
* CodePipeline.
*
* GITHUB
: The source code is in a GitHub or GitHub Enterprise Cloud repository.
*
* GITHUB_ENTERPRISE
: The source code is in a GitHub Enterprise Server repository.
*
* NO_SOURCE
: The project does not have input source code.
*
* S3
: The source code is in an Amazon S3 bucket.
*
* BITBUCKET
: The source code is in a Bitbucket repository.
*
* CODECOMMIT
: The source code is in an CodeCommit repository.
*
* CODEPIPELINE
: The source code settings are specified in the source action of a pipeline in
* CodePipeline.
*
* GITHUB
: The source code is in a GitHub or GitHub Enterprise Cloud repository.
*
* GITHUB_ENTERPRISE
: The source code is in a GitHub Enterprise Server repository.
*
* NO_SOURCE
: The project does not have input source code.
*
* S3
: The source code is in an Amazon S3 bucket.
*
* The type of repository that contains the source code to be built. Valid values include: *
*
* BITBUCKET
: The source code is in a Bitbucket repository.
*
* CODECOMMIT
: The source code is in an CodeCommit repository.
*
* CODEPIPELINE
: The source code settings are specified in the source action of a pipeline in
* CodePipeline.
*
* GITHUB
: The source code is in a GitHub or GitHub Enterprise Cloud repository.
*
* GITHUB_ENTERPRISE
: The source code is in a GitHub Enterprise Server repository.
*
* NO_SOURCE
: The project does not have input source code.
*
* S3
: The source code is in an Amazon S3 bucket.
*
* BITBUCKET
: The source code is in a Bitbucket repository.
*
* CODECOMMIT
: The source code is in an CodeCommit repository.
*
* CODEPIPELINE
: The source code settings are specified in the source action of a pipeline in
* CodePipeline.
*
* GITHUB
: The source code is in a GitHub or GitHub Enterprise Cloud repository.
*
* GITHUB_ENTERPRISE
: The source code is in a GitHub Enterprise Server repository.
*
* NO_SOURCE
: The project does not have input source code.
*
* S3
: The source code is in an Amazon S3 bucket.
*
* The type of repository that contains the source code to be built. Valid values include: *
*
* BITBUCKET
: The source code is in a Bitbucket repository.
*
* CODECOMMIT
: The source code is in an CodeCommit repository.
*
* CODEPIPELINE
: The source code settings are specified in the source action of a pipeline in
* CodePipeline.
*
* GITHUB
: The source code is in a GitHub or GitHub Enterprise Cloud repository.
*
* GITHUB_ENTERPRISE
: The source code is in a GitHub Enterprise Server repository.
*
* NO_SOURCE
: The project does not have input source code.
*
* S3
: The source code is in an Amazon S3 bucket.
*
* BITBUCKET
: The source code is in a Bitbucket repository.
*
* CODECOMMIT
: The source code is in an CodeCommit repository.
*
* CODEPIPELINE
: The source code settings are specified in the source action of a pipeline in
* CodePipeline.
*
* GITHUB
: The source code is in a GitHub or GitHub Enterprise Cloud repository.
*
* GITHUB_ENTERPRISE
: The source code is in a GitHub Enterprise Server repository.
*
* NO_SOURCE
: The project does not have input source code.
*
* S3
: The source code is in an Amazon S3 bucket.
*
* Information about the location of the source code to be built. Valid values include: *
*
* For source code settings that are specified in the source action of a pipeline in CodePipeline,
* location
should not be specified. If it is specified, CodePipeline ignores it. This is because
* CodePipeline uses the settings in a pipeline's source action instead of this value.
*
* For source code in an CodeCommit repository, the HTTPS clone URL to the repository that contains the source code
* and the buildspec file (for example,
* https://git-codecommit.<region-ID>.amazonaws.com/v1/repos/<repo-name>
).
*
* For source code in an Amazon S3 input bucket, one of the following. *
*
* The path to the ZIP file that contains the source code (for example,
* <bucket-name>/<path>/<object-name>.zip
).
*
* The path to the folder that contains the source code (for example,
* <bucket-name>/<path-to-source-code>/<folder>/
).
*
* For source code in a GitHub repository, the HTTPS clone URL to the repository that contains the source and the
* buildspec file. You must connect your Amazon Web Services account to your GitHub account. Use the CodeBuild
* console to start creating a build project. When you use the console to connect (or reconnect) with GitHub, on the
* GitHub Authorize application page, for Organization access, choose Request access next to
* each repository you want to allow CodeBuild to have access to, and then choose Authorize application.
* (After you have connected to your GitHub account, you do not need to finish creating the build project. You can
* leave the CodeBuild console.) To instruct CodeBuild to use this connection, in the source
object,
* set the auth
object's type
value to OAUTH
.
*
* For source code in a Bitbucket repository, the HTTPS clone URL to the repository that contains the source and the
* buildspec file. You must connect your Amazon Web Services account to your Bitbucket account. Use the CodeBuild
* console to start creating a build project. When you use the console to connect (or reconnect) with Bitbucket, on
* the Bitbucket Confirm access to your account page, choose Grant access. (After you have connected
* to your Bitbucket account, you do not need to finish creating the build project. You can leave the CodeBuild
* console.) To instruct CodeBuild to use this connection, in the source
object, set the
* auth
object's type
value to OAUTH
.
*
* If you specify CODEPIPELINE
for the Type
property, don't specify this property. For all
* of the other types, you must specify Location
.
*
* For source code settings that are specified in the source action of a pipeline in CodePipeline,
* location
should not be specified. If it is specified, CodePipeline ignores it. This is
* because CodePipeline uses the settings in a pipeline's source action instead of this value.
*
* For source code in an CodeCommit repository, the HTTPS clone URL to the repository that contains the
* source code and the buildspec file (for example,
* https://git-codecommit.<region-ID>.amazonaws.com/v1/repos/<repo-name>
).
*
* For source code in an Amazon S3 input bucket, one of the following. *
*
* The path to the ZIP file that contains the source code (for example,
* <bucket-name>/<path>/<object-name>.zip
).
*
* The path to the folder that contains the source code (for example,
* <bucket-name>/<path-to-source-code>/<folder>/
).
*
* For source code in a GitHub repository, the HTTPS clone URL to the repository that contains the source and
* the buildspec file. You must connect your Amazon Web Services account to your GitHub account. Use the
* CodeBuild console to start creating a build project. When you use the console to connect (or reconnect)
* with GitHub, on the GitHub Authorize application page, for Organization access, choose
* Request access next to each repository you want to allow CodeBuild to have access to, and then
* choose Authorize application. (After you have connected to your GitHub account, you do not need to
* finish creating the build project. You can leave the CodeBuild console.) To instruct CodeBuild to use this
* connection, in the source
object, set the auth
object's type
value
* to OAUTH
.
*
* For source code in a Bitbucket repository, the HTTPS clone URL to the repository that contains the source
* and the buildspec file. You must connect your Amazon Web Services account to your Bitbucket account. Use
* the CodeBuild console to start creating a build project. When you use the console to connect (or
* reconnect) with Bitbucket, on the Bitbucket Confirm access to your account page, choose Grant
* access. (After you have connected to your Bitbucket account, you do not need to finish creating the
* build project. You can leave the CodeBuild console.) To instruct CodeBuild to use this connection, in the
* source
object, set the auth
object's type
value to
* OAUTH
.
*
* If you specify CODEPIPELINE
for the Type
property, don't specify this property.
* For all of the other types, you must specify Location
.
*/
public void setLocation(String location) {
this.location = location;
}
/**
*
* Information about the location of the source code to be built. Valid values include: *
*
* For source code settings that are specified in the source action of a pipeline in CodePipeline,
* location
should not be specified. If it is specified, CodePipeline ignores it. This is because
* CodePipeline uses the settings in a pipeline's source action instead of this value.
*
* For source code in an CodeCommit repository, the HTTPS clone URL to the repository that contains the source code
* and the buildspec file (for example,
* https://git-codecommit.<region-ID>.amazonaws.com/v1/repos/<repo-name>
).
*
* For source code in an Amazon S3 input bucket, one of the following. *
*
* The path to the ZIP file that contains the source code (for example,
* <bucket-name>/<path>/<object-name>.zip
).
*
* The path to the folder that contains the source code (for example,
* <bucket-name>/<path-to-source-code>/<folder>/
).
*
* For source code in a GitHub repository, the HTTPS clone URL to the repository that contains the source and the
* buildspec file. You must connect your Amazon Web Services account to your GitHub account. Use the CodeBuild
* console to start creating a build project. When you use the console to connect (or reconnect) with GitHub, on the
* GitHub Authorize application page, for Organization access, choose Request access next to
* each repository you want to allow CodeBuild to have access to, and then choose Authorize application.
* (After you have connected to your GitHub account, you do not need to finish creating the build project. You can
* leave the CodeBuild console.) To instruct CodeBuild to use this connection, in the source
object,
* set the auth
object's type
value to OAUTH
.
*
* For source code in a Bitbucket repository, the HTTPS clone URL to the repository that contains the source and the
* buildspec file. You must connect your Amazon Web Services account to your Bitbucket account. Use the CodeBuild
* console to start creating a build project. When you use the console to connect (or reconnect) with Bitbucket, on
* the Bitbucket Confirm access to your account page, choose Grant access. (After you have connected
* to your Bitbucket account, you do not need to finish creating the build project. You can leave the CodeBuild
* console.) To instruct CodeBuild to use this connection, in the source
object, set the
* auth
object's type
value to OAUTH
.
*
* If you specify CODEPIPELINE
for the Type
property, don't specify this property. For all
* of the other types, you must specify Location
.
*
* For source code settings that are specified in the source action of a pipeline in CodePipeline,
* location
should not be specified. If it is specified, CodePipeline ignores it. This is
* because CodePipeline uses the settings in a pipeline's source action instead of this value.
*
* For source code in an CodeCommit repository, the HTTPS clone URL to the repository that contains the
* source code and the buildspec file (for example,
* https://git-codecommit.<region-ID>.amazonaws.com/v1/repos/<repo-name>
).
*
* For source code in an Amazon S3 input bucket, one of the following. *
*
* The path to the ZIP file that contains the source code (for example,
* <bucket-name>/<path>/<object-name>.zip
).
*
* The path to the folder that contains the source code (for example,
* <bucket-name>/<path-to-source-code>/<folder>/
).
*
* For source code in a GitHub repository, the HTTPS clone URL to the repository that contains the source
* and the buildspec file. You must connect your Amazon Web Services account to your GitHub account. Use the
* CodeBuild console to start creating a build project. When you use the console to connect (or reconnect)
* with GitHub, on the GitHub Authorize application page, for Organization access, choose
* Request access next to each repository you want to allow CodeBuild to have access to, and then
* choose Authorize application. (After you have connected to your GitHub account, you do not need to
* finish creating the build project. You can leave the CodeBuild console.) To instruct CodeBuild to use
* this connection, in the source
object, set the auth
object's type
* value to OAUTH
.
*
* For source code in a Bitbucket repository, the HTTPS clone URL to the repository that contains the source
* and the buildspec file. You must connect your Amazon Web Services account to your Bitbucket account. Use
* the CodeBuild console to start creating a build project. When you use the console to connect (or
* reconnect) with Bitbucket, on the Bitbucket Confirm access to your account page, choose Grant
* access. (After you have connected to your Bitbucket account, you do not need to finish creating the
* build project. You can leave the CodeBuild console.) To instruct CodeBuild to use this connection, in the
* source
object, set the auth
object's type
value to
* OAUTH
.
*
* If you specify CODEPIPELINE
for the Type
property, don't specify this property.
* For all of the other types, you must specify Location
.
*/
public String getLocation() {
return this.location;
}
/**
*
* Information about the location of the source code to be built. Valid values include: *
*
* For source code settings that are specified in the source action of a pipeline in CodePipeline,
* location
should not be specified. If it is specified, CodePipeline ignores it. This is because
* CodePipeline uses the settings in a pipeline's source action instead of this value.
*
* For source code in an CodeCommit repository, the HTTPS clone URL to the repository that contains the source code
* and the buildspec file (for example,
* https://git-codecommit.<region-ID>.amazonaws.com/v1/repos/<repo-name>
).
*
* For source code in an Amazon S3 input bucket, one of the following. *
*
* The path to the ZIP file that contains the source code (for example,
* <bucket-name>/<path>/<object-name>.zip
).
*
* The path to the folder that contains the source code (for example,
* <bucket-name>/<path-to-source-code>/<folder>/
).
*
* For source code in a GitHub repository, the HTTPS clone URL to the repository that contains the source and the
* buildspec file. You must connect your Amazon Web Services account to your GitHub account. Use the CodeBuild
* console to start creating a build project. When you use the console to connect (or reconnect) with GitHub, on the
* GitHub Authorize application page, for Organization access, choose Request access next to
* each repository you want to allow CodeBuild to have access to, and then choose Authorize application.
* (After you have connected to your GitHub account, you do not need to finish creating the build project. You can
* leave the CodeBuild console.) To instruct CodeBuild to use this connection, in the source
object,
* set the auth
object's type
value to OAUTH
.
*
* For source code in a Bitbucket repository, the HTTPS clone URL to the repository that contains the source and the
* buildspec file. You must connect your Amazon Web Services account to your Bitbucket account. Use the CodeBuild
* console to start creating a build project. When you use the console to connect (or reconnect) with Bitbucket, on
* the Bitbucket Confirm access to your account page, choose Grant access. (After you have connected
* to your Bitbucket account, you do not need to finish creating the build project. You can leave the CodeBuild
* console.) To instruct CodeBuild to use this connection, in the source
object, set the
* auth
object's type
value to OAUTH
.
*
* If you specify CODEPIPELINE
for the Type
property, don't specify this property. For all
* of the other types, you must specify Location
.
*
* For source code settings that are specified in the source action of a pipeline in CodePipeline,
* location
should not be specified. If it is specified, CodePipeline ignores it. This is
* because CodePipeline uses the settings in a pipeline's source action instead of this value.
*
* For source code in an CodeCommit repository, the HTTPS clone URL to the repository that contains the
* source code and the buildspec file (for example,
* https://git-codecommit.<region-ID>.amazonaws.com/v1/repos/<repo-name>
).
*
* For source code in an Amazon S3 input bucket, one of the following. *
*
* The path to the ZIP file that contains the source code (for example,
* <bucket-name>/<path>/<object-name>.zip
).
*
* The path to the folder that contains the source code (for example,
* <bucket-name>/<path-to-source-code>/<folder>/
).
*
* For source code in a GitHub repository, the HTTPS clone URL to the repository that contains the source and
* the buildspec file. You must connect your Amazon Web Services account to your GitHub account. Use the
* CodeBuild console to start creating a build project. When you use the console to connect (or reconnect)
* with GitHub, on the GitHub Authorize application page, for Organization access, choose
* Request access next to each repository you want to allow CodeBuild to have access to, and then
* choose Authorize application. (After you have connected to your GitHub account, you do not need to
* finish creating the build project. You can leave the CodeBuild console.) To instruct CodeBuild to use this
* connection, in the source
object, set the auth
object's type
value
* to OAUTH
.
*
* For source code in a Bitbucket repository, the HTTPS clone URL to the repository that contains the source
* and the buildspec file. You must connect your Amazon Web Services account to your Bitbucket account. Use
* the CodeBuild console to start creating a build project. When you use the console to connect (or
* reconnect) with Bitbucket, on the Bitbucket Confirm access to your account page, choose Grant
* access. (After you have connected to your Bitbucket account, you do not need to finish creating the
* build project. You can leave the CodeBuild console.) To instruct CodeBuild to use this connection, in the
* source
object, set the auth
object's type
value to
* OAUTH
.
*
* If you specify CODEPIPELINE
for the Type
property, don't specify this property.
* For all of the other types, you must specify Location
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ProjectSource withLocation(String location) {
setLocation(location);
return this;
}
/**
*
* Information about the Git clone depth for the build project. *
* * @param gitCloneDepth * Information about the Git clone depth for the build project. */ public void setGitCloneDepth(Integer gitCloneDepth) { this.gitCloneDepth = gitCloneDepth; } /** ** Information about the Git clone depth for the build project. *
* * @return Information about the Git clone depth for the build project. */ public Integer getGitCloneDepth() { return this.gitCloneDepth; } /** ** Information about the Git clone depth for the build project. *
* * @param gitCloneDepth * Information about the Git clone depth for the build project. * @return Returns a reference to this object so that method calls can be chained together. */ public ProjectSource withGitCloneDepth(Integer gitCloneDepth) { setGitCloneDepth(gitCloneDepth); return this; } /** ** Information about the Git submodules configuration for the build project. *
* * @param gitSubmodulesConfig * Information about the Git submodules configuration for the build project. */ public void setGitSubmodulesConfig(GitSubmodulesConfig gitSubmodulesConfig) { this.gitSubmodulesConfig = gitSubmodulesConfig; } /** ** Information about the Git submodules configuration for the build project. *
* * @return Information about the Git submodules configuration for the build project. */ public GitSubmodulesConfig getGitSubmodulesConfig() { return this.gitSubmodulesConfig; } /** ** Information about the Git submodules configuration for the build project. *
* * @param gitSubmodulesConfig * Information about the Git submodules configuration for the build project. * @return Returns a reference to this object so that method calls can be chained together. */ public ProjectSource withGitSubmodulesConfig(GitSubmodulesConfig gitSubmodulesConfig) { setGitSubmodulesConfig(gitSubmodulesConfig); return this; } /** ** The buildspec file declaration to use for the builds in this build project. *
*
* If this value is set, it can be either an inline buildspec definition, the path to an alternate buildspec file
* relative to the value of the built-in CODEBUILD_SRC_DIR
environment variable, or the path to an S3
* bucket. The bucket must be in the same Amazon Web Services Region as the build project. Specify the buildspec
* file using its ARN (for example, arn:aws:s3:::my-codebuild-sample2/buildspec.yml
). If this value is
* not provided or is set to an empty string, the source code must contain a buildspec file in its root directory.
* For more information, see Buildspec File Name and Storage Location.
*
* If this value is set, it can be either an inline buildspec definition, the path to an alternate buildspec
* file relative to the value of the built-in CODEBUILD_SRC_DIR
environment variable, or the
* path to an S3 bucket. The bucket must be in the same Amazon Web Services Region as the build project.
* Specify the buildspec file using its ARN (for example,
* arn:aws:s3:::my-codebuild-sample2/buildspec.yml
). If this value is not provided or is set to
* an empty string, the source code must contain a buildspec file in its root directory. For more
* information, see Buildspec File Name and Storage Location.
*/
public void setBuildspec(String buildspec) {
this.buildspec = buildspec;
}
/**
*
* The buildspec file declaration to use for the builds in this build project. *
*
* If this value is set, it can be either an inline buildspec definition, the path to an alternate buildspec file
* relative to the value of the built-in CODEBUILD_SRC_DIR
environment variable, or the path to an S3
* bucket. The bucket must be in the same Amazon Web Services Region as the build project. Specify the buildspec
* file using its ARN (for example, arn:aws:s3:::my-codebuild-sample2/buildspec.yml
). If this value is
* not provided or is set to an empty string, the source code must contain a buildspec file in its root directory.
* For more information, see Buildspec File Name and Storage Location.
*
* If this value is set, it can be either an inline buildspec definition, the path to an alternate buildspec
* file relative to the value of the built-in CODEBUILD_SRC_DIR
environment variable, or the
* path to an S3 bucket. The bucket must be in the same Amazon Web Services Region as the build project.
* Specify the buildspec file using its ARN (for example,
* arn:aws:s3:::my-codebuild-sample2/buildspec.yml
). If this value is not provided or is set to
* an empty string, the source code must contain a buildspec file in its root directory. For more
* information, see Buildspec File Name and Storage Location.
*/
public String getBuildspec() {
return this.buildspec;
}
/**
*
* The buildspec file declaration to use for the builds in this build project. *
*
* If this value is set, it can be either an inline buildspec definition, the path to an alternate buildspec file
* relative to the value of the built-in CODEBUILD_SRC_DIR
environment variable, or the path to an S3
* bucket. The bucket must be in the same Amazon Web Services Region as the build project. Specify the buildspec
* file using its ARN (for example, arn:aws:s3:::my-codebuild-sample2/buildspec.yml
). If this value is
* not provided or is set to an empty string, the source code must contain a buildspec file in its root directory.
* For more information, see Buildspec File Name and Storage Location.
*
* If this value is set, it can be either an inline buildspec definition, the path to an alternate buildspec
* file relative to the value of the built-in CODEBUILD_SRC_DIR
environment variable, or the
* path to an S3 bucket. The bucket must be in the same Amazon Web Services Region as the build project.
* Specify the buildspec file using its ARN (for example,
* arn:aws:s3:::my-codebuild-sample2/buildspec.yml
). If this value is not provided or is set to
* an empty string, the source code must contain a buildspec file in its root directory. For more
* information, see Buildspec File Name and Storage Location.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ProjectSource withBuildspec(String buildspec) {
setBuildspec(buildspec);
return this;
}
/**
*
* Information about the authorization settings for CodeBuild to access the source code to be built. *
** This information is for the CodeBuild console's use only. Your code should not get or set this information * directly. *
* * @param auth * Information about the authorization settings for CodeBuild to access the source code to be built. ** This information is for the CodeBuild console's use only. Your code should not get or set this information * directly. */ public void setAuth(SourceAuth auth) { this.auth = auth; } /** *
* Information about the authorization settings for CodeBuild to access the source code to be built. *
** This information is for the CodeBuild console's use only. Your code should not get or set this information * directly. *
* * @return Information about the authorization settings for CodeBuild to access the source code to be built. ** This information is for the CodeBuild console's use only. Your code should not get or set this * information directly. */ public SourceAuth getAuth() { return this.auth; } /** *
* Information about the authorization settings for CodeBuild to access the source code to be built. *
** This information is for the CodeBuild console's use only. Your code should not get or set this information * directly. *
* * @param auth * Information about the authorization settings for CodeBuild to access the source code to be built. ** This information is for the CodeBuild console's use only. Your code should not get or set this information * directly. * @return Returns a reference to this object so that method calls can be chained together. */ public ProjectSource withAuth(SourceAuth auth) { setAuth(auth); return this; } /** *
* Set to true to report the status of a build's start and finish to your source provider. This option is valid only
* when your source provider is GitHub, GitHub Enterprise, or Bitbucket. If this is set and you use a different
* source provider, an invalidInputException
is thrown.
*
* To be able to report the build status to the source provider, the user associated with the source provider must * have write access to the repo. If the user does not have write access, the build status cannot be updated. For * more information, see Source * provider access in the CodeBuild User Guide. *
** The status of a build triggered by a webhook is always reported to your source provider. *
** If your project's builds are triggered by a webhook, you must push a new commit to the repo for a change to this * property to take effect. *
* * @param reportBuildStatus * Set to true to report the status of a build's start and finish to your source provider. This option is * valid only when your source provider is GitHub, GitHub Enterprise, or Bitbucket. If this is set and you * use a different source provider, aninvalidInputException
is thrown.
* * To be able to report the build status to the source provider, the user associated with the source provider * must have write access to the repo. If the user does not have write access, the build status cannot be * updated. For more information, see Source provider * access in the CodeBuild User Guide. *
** The status of a build triggered by a webhook is always reported to your source provider. *
** If your project's builds are triggered by a webhook, you must push a new commit to the repo for a change * to this property to take effect. */ public void setReportBuildStatus(Boolean reportBuildStatus) { this.reportBuildStatus = reportBuildStatus; } /** *
* Set to true to report the status of a build's start and finish to your source provider. This option is valid only
* when your source provider is GitHub, GitHub Enterprise, or Bitbucket. If this is set and you use a different
* source provider, an invalidInputException
is thrown.
*
* To be able to report the build status to the source provider, the user associated with the source provider must * have write access to the repo. If the user does not have write access, the build status cannot be updated. For * more information, see Source * provider access in the CodeBuild User Guide. *
** The status of a build triggered by a webhook is always reported to your source provider. *
** If your project's builds are triggered by a webhook, you must push a new commit to the repo for a change to this * property to take effect. *
* * @return Set to true to report the status of a build's start and finish to your source provider. This option is * valid only when your source provider is GitHub, GitHub Enterprise, or Bitbucket. If this is set and you * use a different source provider, aninvalidInputException
is thrown.
* * To be able to report the build status to the source provider, the user associated with the source * provider must have write access to the repo. If the user does not have write access, the build status * cannot be updated. For more information, see Source provider * access in the CodeBuild User Guide. *
** The status of a build triggered by a webhook is always reported to your source provider. *
** If your project's builds are triggered by a webhook, you must push a new commit to the repo for a change * to this property to take effect. */ public Boolean getReportBuildStatus() { return this.reportBuildStatus; } /** *
* Set to true to report the status of a build's start and finish to your source provider. This option is valid only
* when your source provider is GitHub, GitHub Enterprise, or Bitbucket. If this is set and you use a different
* source provider, an invalidInputException
is thrown.
*
* To be able to report the build status to the source provider, the user associated with the source provider must * have write access to the repo. If the user does not have write access, the build status cannot be updated. For * more information, see Source * provider access in the CodeBuild User Guide. *
** The status of a build triggered by a webhook is always reported to your source provider. *
** If your project's builds are triggered by a webhook, you must push a new commit to the repo for a change to this * property to take effect. *
* * @param reportBuildStatus * Set to true to report the status of a build's start and finish to your source provider. This option is * valid only when your source provider is GitHub, GitHub Enterprise, or Bitbucket. If this is set and you * use a different source provider, aninvalidInputException
is thrown.
* * To be able to report the build status to the source provider, the user associated with the source provider * must have write access to the repo. If the user does not have write access, the build status cannot be * updated. For more information, see Source provider * access in the CodeBuild User Guide. *
** The status of a build triggered by a webhook is always reported to your source provider. *
** If your project's builds are triggered by a webhook, you must push a new commit to the repo for a change * to this property to take effect. * @return Returns a reference to this object so that method calls can be chained together. */ public ProjectSource withReportBuildStatus(Boolean reportBuildStatus) { setReportBuildStatus(reportBuildStatus); return this; } /** *
* Set to true to report the status of a build's start and finish to your source provider. This option is valid only
* when your source provider is GitHub, GitHub Enterprise, or Bitbucket. If this is set and you use a different
* source provider, an invalidInputException
is thrown.
*
* To be able to report the build status to the source provider, the user associated with the source provider must * have write access to the repo. If the user does not have write access, the build status cannot be updated. For * more information, see Source * provider access in the CodeBuild User Guide. *
** The status of a build triggered by a webhook is always reported to your source provider. *
** If your project's builds are triggered by a webhook, you must push a new commit to the repo for a change to this * property to take effect. *
* * @return Set to true to report the status of a build's start and finish to your source provider. This option is * valid only when your source provider is GitHub, GitHub Enterprise, or Bitbucket. If this is set and you * use a different source provider, aninvalidInputException
is thrown.
* * To be able to report the build status to the source provider, the user associated with the source * provider must have write access to the repo. If the user does not have write access, the build status * cannot be updated. For more information, see Source provider * access in the CodeBuild User Guide. *
** The status of a build triggered by a webhook is always reported to your source provider. *
** If your project's builds are triggered by a webhook, you must push a new commit to the repo for a change * to this property to take effect. */ public Boolean isReportBuildStatus() { return this.reportBuildStatus; } /** *
* Contains information that defines how the build project reports the build status to the source provider. This
* option is only used when the source provider is GITHUB
, GITHUB_ENTERPRISE
, or
* BITBUCKET
.
*
GITHUB
, GITHUB_ENTERPRISE
,
* or BITBUCKET
.
*/
public void setBuildStatusConfig(BuildStatusConfig buildStatusConfig) {
this.buildStatusConfig = buildStatusConfig;
}
/**
*
* Contains information that defines how the build project reports the build status to the source provider. This
* option is only used when the source provider is GITHUB
, GITHUB_ENTERPRISE
, or
* BITBUCKET
.
*
GITHUB
, GITHUB_ENTERPRISE
,
* or BITBUCKET
.
*/
public BuildStatusConfig getBuildStatusConfig() {
return this.buildStatusConfig;
}
/**
*
* Contains information that defines how the build project reports the build status to the source provider. This
* option is only used when the source provider is GITHUB
, GITHUB_ENTERPRISE
, or
* BITBUCKET
.
*
GITHUB
, GITHUB_ENTERPRISE
,
* or BITBUCKET
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ProjectSource withBuildStatusConfig(BuildStatusConfig buildStatusConfig) {
setBuildStatusConfig(buildStatusConfig);
return this;
}
/**
* * Enable this flag to ignore SSL warnings while connecting to the project source code. *
* * @param insecureSsl * Enable this flag to ignore SSL warnings while connecting to the project source code. */ public void setInsecureSsl(Boolean insecureSsl) { this.insecureSsl = insecureSsl; } /** ** Enable this flag to ignore SSL warnings while connecting to the project source code. *
* * @return Enable this flag to ignore SSL warnings while connecting to the project source code. */ public Boolean getInsecureSsl() { return this.insecureSsl; } /** ** Enable this flag to ignore SSL warnings while connecting to the project source code. *
* * @param insecureSsl * Enable this flag to ignore SSL warnings while connecting to the project source code. * @return Returns a reference to this object so that method calls can be chained together. */ public ProjectSource withInsecureSsl(Boolean insecureSsl) { setInsecureSsl(insecureSsl); return this; } /** ** Enable this flag to ignore SSL warnings while connecting to the project source code. *
* * @return Enable this flag to ignore SSL warnings while connecting to the project source code. */ public Boolean isInsecureSsl() { return this.insecureSsl; } /** ** An identifier for this project source. The identifier can only contain alphanumeric characters and underscores, * and must be less than 128 characters in length. *
* * @param sourceIdentifier * An identifier for this project source. The identifier can only contain alphanumeric characters and * underscores, and must be less than 128 characters in length. */ public void setSourceIdentifier(String sourceIdentifier) { this.sourceIdentifier = sourceIdentifier; } /** ** An identifier for this project source. The identifier can only contain alphanumeric characters and underscores, * and must be less than 128 characters in length. *
* * @return An identifier for this project source. The identifier can only contain alphanumeric characters and * underscores, and must be less than 128 characters in length. */ public String getSourceIdentifier() { return this.sourceIdentifier; } /** ** An identifier for this project source. The identifier can only contain alphanumeric characters and underscores, * and must be less than 128 characters in length. *
* * @param sourceIdentifier * An identifier for this project source. The identifier can only contain alphanumeric characters and * underscores, and must be less than 128 characters in length. * @return Returns a reference to this object so that method calls can be chained together. */ public ProjectSource withSourceIdentifier(String sourceIdentifier) { setSourceIdentifier(sourceIdentifier); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getType() != null) sb.append("Type: ").append(getType()).append(","); if (getLocation() != null) sb.append("Location: ").append(getLocation()).append(","); if (getGitCloneDepth() != null) sb.append("GitCloneDepth: ").append(getGitCloneDepth()).append(","); if (getGitSubmodulesConfig() != null) sb.append("GitSubmodulesConfig: ").append(getGitSubmodulesConfig()).append(","); if (getBuildspec() != null) sb.append("Buildspec: ").append(getBuildspec()).append(","); if (getAuth() != null) sb.append("Auth: ").append(getAuth()).append(","); if (getReportBuildStatus() != null) sb.append("ReportBuildStatus: ").append(getReportBuildStatus()).append(","); if (getBuildStatusConfig() != null) sb.append("BuildStatusConfig: ").append(getBuildStatusConfig()).append(","); if (getInsecureSsl() != null) sb.append("InsecureSsl: ").append(getInsecureSsl()).append(","); if (getSourceIdentifier() != null) sb.append("SourceIdentifier: ").append(getSourceIdentifier()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ProjectSource == false) return false; ProjectSource other = (ProjectSource) obj; if (other.getType() == null ^ this.getType() == null) return false; if (other.getType() != null && other.getType().equals(this.getType()) == false) return false; if (other.getLocation() == null ^ this.getLocation() == null) return false; if (other.getLocation() != null && other.getLocation().equals(this.getLocation()) == false) return false; if (other.getGitCloneDepth() == null ^ this.getGitCloneDepth() == null) return false; if (other.getGitCloneDepth() != null && other.getGitCloneDepth().equals(this.getGitCloneDepth()) == false) return false; if (other.getGitSubmodulesConfig() == null ^ this.getGitSubmodulesConfig() == null) return false; if (other.getGitSubmodulesConfig() != null && other.getGitSubmodulesConfig().equals(this.getGitSubmodulesConfig()) == false) return false; if (other.getBuildspec() == null ^ this.getBuildspec() == null) return false; if (other.getBuildspec() != null && other.getBuildspec().equals(this.getBuildspec()) == false) return false; if (other.getAuth() == null ^ this.getAuth() == null) return false; if (other.getAuth() != null && other.getAuth().equals(this.getAuth()) == false) return false; if (other.getReportBuildStatus() == null ^ this.getReportBuildStatus() == null) return false; if (other.getReportBuildStatus() != null && other.getReportBuildStatus().equals(this.getReportBuildStatus()) == false) return false; if (other.getBuildStatusConfig() == null ^ this.getBuildStatusConfig() == null) return false; if (other.getBuildStatusConfig() != null && other.getBuildStatusConfig().equals(this.getBuildStatusConfig()) == false) return false; if (other.getInsecureSsl() == null ^ this.getInsecureSsl() == null) return false; if (other.getInsecureSsl() != null && other.getInsecureSsl().equals(this.getInsecureSsl()) == false) return false; if (other.getSourceIdentifier() == null ^ this.getSourceIdentifier() == null) return false; if (other.getSourceIdentifier() != null && other.getSourceIdentifier().equals(this.getSourceIdentifier()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode()); hashCode = prime * hashCode + ((getLocation() == null) ? 0 : getLocation().hashCode()); hashCode = prime * hashCode + ((getGitCloneDepth() == null) ? 0 : getGitCloneDepth().hashCode()); hashCode = prime * hashCode + ((getGitSubmodulesConfig() == null) ? 0 : getGitSubmodulesConfig().hashCode()); hashCode = prime * hashCode + ((getBuildspec() == null) ? 0 : getBuildspec().hashCode()); hashCode = prime * hashCode + ((getAuth() == null) ? 0 : getAuth().hashCode()); hashCode = prime * hashCode + ((getReportBuildStatus() == null) ? 0 : getReportBuildStatus().hashCode()); hashCode = prime * hashCode + ((getBuildStatusConfig() == null) ? 0 : getBuildStatusConfig().hashCode()); hashCode = prime * hashCode + ((getInsecureSsl() == null) ? 0 : getInsecureSsl().hashCode()); hashCode = prime * hashCode + ((getSourceIdentifier() == null) ? 0 : getSourceIdentifier().hashCode()); return hashCode; } @Override public ProjectSource clone() { try { return (ProjectSource) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.codebuild.model.transform.ProjectSourceMarshaller.getInstance().marshall(this, protocolMarshaller); } }