All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.codebuild.model.ProjectSource Maven / Gradle / Ivy

/*
 * Copyright 2014-2019 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 AWS CodeCommit repository. *

    *
  • *
  • *

    * CODEPIPELINE: The source code settings are specified in the source action of a pipeline in AWS * CodePipeline. *

    *
  • *
  • *

    * GITHUB: The source code is in a GitHub repository. *

    *
  • *
  • *

    * NO_SOURCE: The project does not have input source code. *

    *
  • *
  • *

    * S3: The source code is in an Amazon Simple Storage Service (Amazon S3) input bucket. *

    *
  • *
*/ private String type; /** *

* 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 AWS CodePipeline, * location should not be specified. If it is specified, AWS CodePipeline ignores it. This is because * AWS CodePipeline uses the settings in a pipeline's source action instead of this value. *

    *
  • *
  • *

    * For source code in an AWS CodeCommit repository, the HTTPS clone URL to the repository that contains the source * code and the build spec (for example, * https://git-codecommit.region-ID.amazonaws.com/v1/repos/repo-name ). *

    *
  • *
  • *

    * For source code in an Amazon Simple Storage Service (Amazon S3) input bucket, one of the following. *

    *
      *
    • *

      * The path to the ZIP file that contains the source code (for example, * bucket-name/path/to/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 * build spec. You must connect your AWS account to your GitHub account. Use the AWS 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 AWS 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 AWS CodeBuild console.) To instruct AWS 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 * build spec. You must connect your AWS account to your Bitbucket account. Use the AWS 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 AWS CodeBuild * console.) To instruct AWS CodeBuild to use this connection, in the source object, set the * auth object's type value to OAUTH. *

    *
  • *
*/ private String 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 build spec declaration to use for the builds in this build project. *

*

* If this value is not specified, a build spec must be included along with the source code to be built. *

*/ private String buildspec; /** *

* Information about the authorization settings for AWS CodeBuild to access the source code to be built. *

*

* This information is for the AWS 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. *

*/ private Boolean reportBuildStatus; /** *

* Enable this flag to ignore SSL warnings while connecting to the project source code. *

*/ private Boolean insecureSsl; /** *

* An identifier for this project source. *

*/ 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 AWS CodeCommit repository. *

    *
  • *
  • *

    * CODEPIPELINE: The source code settings are specified in the source action of a pipeline in AWS * CodePipeline. *

    *
  • *
  • *

    * GITHUB: The source code is in a GitHub repository. *

    *
  • *
  • *

    * NO_SOURCE: The project does not have input source code. *

    *
  • *
  • *

    * S3: The source code is in an Amazon Simple Storage Service (Amazon S3) input bucket. *

    *
  • *
* * @param type * 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 AWS CodeCommit repository. *

    *
  • *
  • *

    * CODEPIPELINE: The source code settings are specified in the source action of a pipeline in * AWS CodePipeline. *

    *
  • *
  • *

    * GITHUB: The source code is in a GitHub repository. *

    *
  • *
  • *

    * NO_SOURCE: The project does not have input source code. *

    *
  • *
  • *

    * S3: The source code is in an Amazon Simple Storage Service (Amazon S3) input bucket. *

    *
  • * @see SourceType */ public void setType(String type) { this.type = type; } /** *

    * 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 AWS CodeCommit repository. *

      *
    • *
    • *

      * CODEPIPELINE: The source code settings are specified in the source action of a pipeline in AWS * CodePipeline. *

      *
    • *
    • *

      * GITHUB: The source code is in a GitHub repository. *

      *
    • *
    • *

      * NO_SOURCE: The project does not have input source code. *

      *
    • *
    • *

      * S3: The source code is in an Amazon Simple Storage Service (Amazon S3) input bucket. *

      *
    • *
    * * @return 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 AWS CodeCommit repository. *

      *
    • *
    • *

      * CODEPIPELINE: The source code settings are specified in the source action of a pipeline in * AWS CodePipeline. *

      *
    • *
    • *

      * GITHUB: The source code is in a GitHub repository. *

      *
    • *
    • *

      * NO_SOURCE: The project does not have input source code. *

      *
    • *
    • *

      * S3: The source code is in an Amazon Simple Storage Service (Amazon S3) input bucket. *

      *
    • * @see SourceType */ public String getType() { return this.type; } /** *

      * 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 AWS CodeCommit repository. *

        *
      • *
      • *

        * CODEPIPELINE: The source code settings are specified in the source action of a pipeline in AWS * CodePipeline. *

        *
      • *
      • *

        * GITHUB: The source code is in a GitHub repository. *

        *
      • *
      • *

        * NO_SOURCE: The project does not have input source code. *

        *
      • *
      • *

        * S3: The source code is in an Amazon Simple Storage Service (Amazon S3) input bucket. *

        *
      • *
      * * @param type * 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 AWS CodeCommit repository. *

        *
      • *
      • *

        * CODEPIPELINE: The source code settings are specified in the source action of a pipeline in * AWS CodePipeline. *

        *
      • *
      • *

        * GITHUB: The source code is in a GitHub repository. *

        *
      • *
      • *

        * NO_SOURCE: The project does not have input source code. *

        *
      • *
      • *

        * S3: The source code is in an Amazon Simple Storage Service (Amazon S3) input bucket. *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. * @see SourceType */ public ProjectSource withType(String type) { setType(type); return this; } /** *

        * 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 AWS CodeCommit repository. *

          *
        • *
        • *

          * CODEPIPELINE: The source code settings are specified in the source action of a pipeline in AWS * CodePipeline. *

          *
        • *
        • *

          * GITHUB: The source code is in a GitHub repository. *

          *
        • *
        • *

          * NO_SOURCE: The project does not have input source code. *

          *
        • *
        • *

          * S3: The source code is in an Amazon Simple Storage Service (Amazon S3) input bucket. *

          *
        • *
        * * @param type * 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 AWS CodeCommit repository. *

          *
        • *
        • *

          * CODEPIPELINE: The source code settings are specified in the source action of a pipeline in * AWS CodePipeline. *

          *
        • *
        • *

          * GITHUB: The source code is in a GitHub repository. *

          *
        • *
        • *

          * NO_SOURCE: The project does not have input source code. *

          *
        • *
        • *

          * S3: The source code is in an Amazon Simple Storage Service (Amazon S3) input bucket. *

          *
        • * @see SourceType */ public void setType(SourceType type) { withType(type); } /** *

          * 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 AWS CodeCommit repository. *

            *
          • *
          • *

            * CODEPIPELINE: The source code settings are specified in the source action of a pipeline in AWS * CodePipeline. *

            *
          • *
          • *

            * GITHUB: The source code is in a GitHub repository. *

            *
          • *
          • *

            * NO_SOURCE: The project does not have input source code. *

            *
          • *
          • *

            * S3: The source code is in an Amazon Simple Storage Service (Amazon S3) input bucket. *

            *
          • *
          * * @param type * 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 AWS CodeCommit repository. *

            *
          • *
          • *

            * CODEPIPELINE: The source code settings are specified in the source action of a pipeline in * AWS CodePipeline. *

            *
          • *
          • *

            * GITHUB: The source code is in a GitHub repository. *

            *
          • *
          • *

            * NO_SOURCE: The project does not have input source code. *

            *
          • *
          • *

            * S3: The source code is in an Amazon Simple Storage Service (Amazon S3) input bucket. *

            *
          • * @return Returns a reference to this object so that method calls can be chained together. * @see SourceType */ public ProjectSource withType(SourceType type) { this.type = type.toString(); return this; } /** *

            * 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 AWS CodePipeline, * location should not be specified. If it is specified, AWS CodePipeline ignores it. This is because * AWS CodePipeline uses the settings in a pipeline's source action instead of this value. *

              *
            • *
            • *

              * For source code in an AWS CodeCommit repository, the HTTPS clone URL to the repository that contains the source * code and the build spec (for example, * https://git-codecommit.region-ID.amazonaws.com/v1/repos/repo-name ). *

              *
            • *
            • *

              * For source code in an Amazon Simple Storage Service (Amazon S3) input bucket, one of the following. *

              *
                *
              • *

                * The path to the ZIP file that contains the source code (for example, * bucket-name/path/to/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 * build spec. You must connect your AWS account to your GitHub account. Use the AWS 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 AWS 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 AWS CodeBuild console.) To instruct AWS 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 * build spec. You must connect your AWS account to your Bitbucket account. Use the AWS 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 AWS CodeBuild * console.) To instruct AWS CodeBuild to use this connection, in the source object, set the * auth object's type value to OAUTH. *

              *
            • *
            * * @param 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 AWS CodePipeline, * location should not be specified. If it is specified, AWS CodePipeline ignores it. This is * because AWS CodePipeline uses the settings in a pipeline's source action instead of this value. *

              *
            • *
            • *

              * For source code in an AWS CodeCommit repository, the HTTPS clone URL to the repository that contains the * source code and the build spec (for example, * https://git-codecommit.region-ID.amazonaws.com/v1/repos/repo-name ). *

              *
            • *
            • *

              * For source code in an Amazon Simple Storage Service (Amazon S3) input bucket, one of the following. *

              *
                *
              • *

                * The path to the ZIP file that contains the source code (for example, * bucket-name/path/to/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 build spec. You must connect your AWS account to your GitHub account. Use the AWS 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 AWS 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 AWS CodeBuild console.) To instruct AWS 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 build spec. You must connect your AWS account to your Bitbucket account. Use the AWS 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 AWS CodeBuild console.) To instruct AWS CodeBuild to use this connection, in the * source object, set the auth object's type value to * OAUTH. *

              *
            • */ 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 AWS CodePipeline, * location should not be specified. If it is specified, AWS CodePipeline ignores it. This is because * AWS CodePipeline uses the settings in a pipeline's source action instead of this value. *

                *
              • *
              • *

                * For source code in an AWS CodeCommit repository, the HTTPS clone URL to the repository that contains the source * code and the build spec (for example, * https://git-codecommit.region-ID.amazonaws.com/v1/repos/repo-name ). *

                *
              • *
              • *

                * For source code in an Amazon Simple Storage Service (Amazon S3) input bucket, one of the following. *

                *
                  *
                • *

                  * The path to the ZIP file that contains the source code (for example, * bucket-name/path/to/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 * build spec. You must connect your AWS account to your GitHub account. Use the AWS 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 AWS 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 AWS CodeBuild console.) To instruct AWS 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 * build spec. You must connect your AWS account to your Bitbucket account. Use the AWS 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 AWS CodeBuild * console.) To instruct AWS CodeBuild to use this connection, in the source object, set the * auth object's type value to OAUTH. *

                *
              • *
              * * @return 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 AWS CodePipeline, * location should not be specified. If it is specified, AWS CodePipeline ignores it. This is * because AWS CodePipeline uses the settings in a pipeline's source action instead of this value. *

                *
              • *
              • *

                * For source code in an AWS CodeCommit repository, the HTTPS clone URL to the repository that contains the * source code and the build spec (for example, * https://git-codecommit.region-ID.amazonaws.com/v1/repos/repo-name ). *

                *
              • *
              • *

                * For source code in an Amazon Simple Storage Service (Amazon S3) input bucket, one of the following. *

                *
                  *
                • *

                  * The path to the ZIP file that contains the source code (for example, * bucket-name/path/to/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 build spec. You must connect your AWS account to your GitHub account. Use the AWS 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 AWS 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 AWS CodeBuild console.) To instruct AWS 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 build spec. You must connect your AWS account to your Bitbucket account. Use the AWS 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 AWS CodeBuild console.) To instruct AWS CodeBuild to use this connection, in * the source object, set the auth object's type value to * OAUTH. *

                *
              • */ 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 AWS CodePipeline, * location should not be specified. If it is specified, AWS CodePipeline ignores it. This is because * AWS CodePipeline uses the settings in a pipeline's source action instead of this value. *

                  *
                • *
                • *

                  * For source code in an AWS CodeCommit repository, the HTTPS clone URL to the repository that contains the source * code and the build spec (for example, * https://git-codecommit.region-ID.amazonaws.com/v1/repos/repo-name ). *

                  *
                • *
                • *

                  * For source code in an Amazon Simple Storage Service (Amazon S3) input bucket, one of the following. *

                  *
                    *
                  • *

                    * The path to the ZIP file that contains the source code (for example, * bucket-name/path/to/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 * build spec. You must connect your AWS account to your GitHub account. Use the AWS 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 AWS 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 AWS CodeBuild console.) To instruct AWS 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 * build spec. You must connect your AWS account to your Bitbucket account. Use the AWS 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 AWS CodeBuild * console.) To instruct AWS CodeBuild to use this connection, in the source object, set the * auth object's type value to OAUTH. *

                  *
                • *
                * * @param 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 AWS CodePipeline, * location should not be specified. If it is specified, AWS CodePipeline ignores it. This is * because AWS CodePipeline uses the settings in a pipeline's source action instead of this value. *

                  *
                • *
                • *

                  * For source code in an AWS CodeCommit repository, the HTTPS clone URL to the repository that contains the * source code and the build spec (for example, * https://git-codecommit.region-ID.amazonaws.com/v1/repos/repo-name ). *

                  *
                • *
                • *

                  * For source code in an Amazon Simple Storage Service (Amazon S3) input bucket, one of the following. *

                  *
                    *
                  • *

                    * The path to the ZIP file that contains the source code (for example, * bucket-name/path/to/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 build spec. You must connect your AWS account to your GitHub account. Use the AWS 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 AWS 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 AWS CodeBuild console.) To instruct AWS 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 build spec. You must connect your AWS account to your Bitbucket account. Use the AWS 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 AWS CodeBuild console.) To instruct AWS CodeBuild to use this connection, in the * source object, set the auth object's type value to * OAUTH. *

                  *
                • * @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 build spec declaration to use for the builds in this build project. *

                  *

                  * If this value is not specified, a build spec must be included along with the source code to be built. *

                  * * @param buildspec * The build spec declaration to use for the builds in this build project.

                  *

                  * If this value is not specified, a build spec must be included along with the source code to be built. */ public void setBuildspec(String buildspec) { this.buildspec = buildspec; } /** *

                  * The build spec declaration to use for the builds in this build project. *

                  *

                  * If this value is not specified, a build spec must be included along with the source code to be built. *

                  * * @return The build spec declaration to use for the builds in this build project.

                  *

                  * If this value is not specified, a build spec must be included along with the source code to be built. */ public String getBuildspec() { return this.buildspec; } /** *

                  * The build spec declaration to use for the builds in this build project. *

                  *

                  * If this value is not specified, a build spec must be included along with the source code to be built. *

                  * * @param buildspec * The build spec declaration to use for the builds in this build project.

                  *

                  * If this value is not specified, a build spec must be included along with the source code to be built. * @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 AWS CodeBuild to access the source code to be built. *

                  *

                  * This information is for the AWS CodeBuild console's use only. Your code should not get or set this information * directly. *

                  * * @param auth * Information about the authorization settings for AWS CodeBuild to access the source code to be built.

                  *

                  * This information is for the AWS 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 AWS CodeBuild to access the source code to be built. *

                  *

                  * This information is for the AWS CodeBuild console's use only. Your code should not get or set this information * directly. *

                  * * @return Information about the authorization settings for AWS CodeBuild to access the source code to be built.

                  *

                  * This information is for the AWS 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 AWS CodeBuild to access the source code to be built. *

                  *

                  * This information is for the AWS CodeBuild console's use only. Your code should not get or set this information * directly. *

                  * * @param auth * Information about the authorization settings for AWS CodeBuild to access the source code to be built.

                  *

                  * This information is for the AWS 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. *

                  * * @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, an invalidInputException is thrown. */ 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. *

                  * * @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, an invalidInputException is thrown. */ 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. *

                  * * @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, an invalidInputException is thrown. * @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. *

                  * * @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, an invalidInputException is thrown. */ public Boolean isReportBuildStatus() { return this.reportBuildStatus; } /** *

                  * 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. *

                  * * @param sourceIdentifier * An identifier for this project source. */ public void setSourceIdentifier(String sourceIdentifier) { this.sourceIdentifier = sourceIdentifier; } /** *

                  * An identifier for this project source. *

                  * * @return An identifier for this project source. */ public String getSourceIdentifier() { return this.sourceIdentifier; } /** *

                  * An identifier for this project source. *

                  * * @param sourceIdentifier * An identifier for this project source. * @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 (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.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 + ((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); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy