Class AwsCodeBuildProjectSource

java.lang.Object
software.amazon.awssdk.services.securityhub.model.AwsCodeBuildProjectSource
All Implemented Interfaces:
Serializable, SdkPojo, ToCopyableBuilder<AwsCodeBuildProjectSource.Builder,AwsCodeBuildProjectSource>

@Generated("software.amazon.awssdk:codegen") public final class AwsCodeBuildProjectSource extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AwsCodeBuildProjectSource.Builder,AwsCodeBuildProjectSource>

Information about the build input source code for this build project.

See Also:
  • Method Details

    • type

      public final String type()

      The type of repository that contains the source code to be built. Valid values are:

      • 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 repository.

      • GITHUB_ENTERPRISE - The source code is in a GitHub Enterprise repository.

      • NO_SOURCE - The project does not have input source code.

      • S3 - The source code is in an S3 input bucket.

      Returns:
      The type of repository that contains the source code to be built. Valid values are:

      • 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 repository.

      • GITHUB_ENTERPRISE - The source code is in a GitHub Enterprise repository.

      • NO_SOURCE - The project does not have input source code.

      • S3 - The source code is in an S3 input bucket.

    • location

      public final String 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 build spec file (for example, https://git-codecommit.region-ID.amazonaws.com/v1/repos/repo-name ).

      • For source code in an 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 file.

      • For source code in a Bitbucket repository, the HTTPS clone URL to the repository that contains the source and the build spec file.

      Returns:
      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 build spec file (for example, https://git-codecommit.region-ID.amazonaws.com/v1/repos/repo-name ).

      • For source code in an 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 file.

      • For source code in a Bitbucket repository, the HTTPS clone URL to the repository that contains the source and the build spec file.

    • gitCloneDepth

      public final Integer gitCloneDepth()

      Information about the Git clone depth for the build project.

      Returns:
      Information about the Git clone depth for the build project.
    • insecureSsl

      public final Boolean insecureSsl()

      Whether to ignore SSL warnings while connecting to the project source code.

      Returns:
      Whether to ignore SSL warnings while connecting to the project source code.
    • toBuilder

      Description copied from interface: ToCopyableBuilder
      Take this object and create a builder that contains all of the current property values of this object.
      Specified by:
      toBuilder in interface ToCopyableBuilder<AwsCodeBuildProjectSource.Builder,AwsCodeBuildProjectSource>
      Returns:
      a builder for type T
    • builder

      public static AwsCodeBuildProjectSource.Builder builder()
    • serializableBuilderClass

      public static Class<? extends AwsCodeBuildProjectSource.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      Description copied from interface: SdkPojo
      Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in an SdkPojo class, and is generated based on a service model.

      If an SdkPojo class does not have any inherited fields, equalsBySdkFields and equals are essentially the same.

      Specified by:
      equalsBySdkFields in interface SdkPojo
      Parameters:
      obj - the object to be compared with
      Returns:
      true if the other object equals to this object by sdk fields, false otherwise.
    • toString

      public final String toString()
      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.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
      Returns:
      List of SdkField in this POJO. May be empty list but should never be null.