Class Project
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Project.Builder,Project>
Information about a build project.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal Stringarn()The Amazon Resource Name (ARN) of the build project.final ProjectArtifactsInformation about the build output artifacts for the build project.final IntegerThe maximum number of additional automatic retries after a failed build.final ProjectBadgebadge()Information about the build badge for the build project.final ProjectBuildBatchConfigA ProjectBuildBatchConfig object that defines the batch build options for the project.static Project.Builderbuilder()final ProjectCachecache()Information about the cache for the build project.final IntegerThe maximum number of concurrent builds that are allowed for this project.final Instantcreated()When the build project was created, expressed in Unix time format.final StringA description that makes the build project easy to identify.final StringThe Key Management Service customer master key (CMK) to be used for encrypting the build output artifacts.final ProjectEnvironmentInformation about the build environment for this build project.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final List<ProjectFileSystemLocation> An array ofProjectFileSystemLocationobjects for a CodeBuild build project.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final booleanFor responses, this returns true if the service returned a value for the FileSystemLocations property.final inthashCode()final booleanFor responses, this returns true if the service returned a value for the SecondaryArtifacts property.final booleanFor responses, this returns true if the service returned a value for the SecondarySources property.final booleanFor responses, this returns true if the service returned a value for the SecondarySourceVersions property.final booleanhasTags()For responses, this returns true if the service returned a value for the Tags property.final InstantWhen the build project's settings were last modified, expressed in Unix time format.final LogsConfigInformation about logs for the build project.final Stringname()The name of the build project.final ProjectVisibilityTypeReturns the value of the ProjectVisibility property for this object.final StringReturns the value of the ProjectVisibility property for this object.final StringContains the project identifier used with the public build APIs.final IntegerThe number of minutes a build is allowed to be queued before it times out.final StringThe ARN of the IAM role that enables CodeBuild to access the CloudWatch Logs and Amazon S3 artifacts for the project's builds.final List<ProjectArtifacts> An array ofProjectArtifactsobjects.final List<ProjectSource> An array ofProjectSourceobjects.final List<ProjectSourceVersion> An array ofProjectSourceVersionobjects.static Class<? extends Project.Builder> final StringThe ARN of the IAM role that enables CodeBuild to interact with dependent Amazon Web Services services on behalf of the Amazon Web Services account.final ProjectSourcesource()Information about the build input source code for this build project.final StringA version of the build input to be built for this project.tags()A list of tag key and value pairs associated with this build project.final IntegerHow long, in minutes, from 5 to 2160 (36 hours), for CodeBuild to wait before timing out any related build that did not get marked as completed.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.final VpcConfigInformation about the VPC configuration that CodeBuild accesses.final Webhookwebhook()Information about a webhook that connects repository events to a build project in CodeBuild.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
name
-
arn
The Amazon Resource Name (ARN) of the build project.
- Returns:
- The Amazon Resource Name (ARN) of the build project.
-
description
A description that makes the build project easy to identify.
- Returns:
- A description that makes the build project easy to identify.
-
source
Information about the build input source code for this build project.
- Returns:
- Information about the build input source code for this build project.
-
hasSecondarySources
public final boolean hasSecondarySources()For responses, this returns true if the service returned a value for the SecondarySources property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
secondarySources
An array of
ProjectSourceobjects.Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasSecondarySources()method.- Returns:
- An array of
ProjectSourceobjects.
-
sourceVersion
A version of the build input to be built for this project. If not specified, the latest version is used. If specified, it must be one of:
-
For CodeCommit: the commit ID, branch, or Git tag to use.
-
For GitHub: the commit ID, pull request ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a pull request ID is specified, it must use the format
pr/pull-request-ID(for examplepr/25). If a branch name is specified, the branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used. -
For GitLab: the commit ID, branch, or Git tag to use.
-
For Bitbucket: the commit ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a branch name is specified, the branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used.
-
For Amazon S3: the version ID of the object that represents the build input ZIP file to use.
If
sourceVersionis specified at the build level, then that version takes precedence over thissourceVersion(at the project level).For more information, see Source Version Sample with CodeBuild in the CodeBuild User Guide.
- Returns:
- A version of the build input to be built for this project. If not specified, the latest version is used.
If specified, it must be one of:
-
For CodeCommit: the commit ID, branch, or Git tag to use.
-
For GitHub: the commit ID, pull request ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a pull request ID is specified, it must use the format
pr/pull-request-ID(for examplepr/25). If a branch name is specified, the branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used. -
For GitLab: the commit ID, branch, or Git tag to use.
-
For Bitbucket: the commit ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a branch name is specified, the branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used.
-
For Amazon S3: the version ID of the object that represents the build input ZIP file to use.
If
sourceVersionis specified at the build level, then that version takes precedence over thissourceVersion(at the project level).For more information, see Source Version Sample with CodeBuild in the CodeBuild User Guide.
-
-
-
hasSecondarySourceVersions
public final boolean hasSecondarySourceVersions()For responses, this returns true if the service returned a value for the SecondarySourceVersions property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
secondarySourceVersions
An array of
ProjectSourceVersionobjects. IfsecondarySourceVersionsis specified at the build level, then they take over thesesecondarySourceVersions(at the project level).Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasSecondarySourceVersions()method.- Returns:
- An array of
ProjectSourceVersionobjects. IfsecondarySourceVersionsis specified at the build level, then they take over thesesecondarySourceVersions(at the project level).
-
artifacts
Information about the build output artifacts for the build project.
- Returns:
- Information about the build output artifacts for the build project.
-
hasSecondaryArtifacts
public final boolean hasSecondaryArtifacts()For responses, this returns true if the service returned a value for the SecondaryArtifacts property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
secondaryArtifacts
An array of
ProjectArtifactsobjects.Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasSecondaryArtifacts()method.- Returns:
- An array of
ProjectArtifactsobjects.
-
cache
Information about the cache for the build project.
- Returns:
- Information about the cache for the build project.
-
environment
Information about the build environment for this build project.
- Returns:
- Information about the build environment for this build project.
-
serviceRole
The ARN of the IAM role that enables CodeBuild to interact with dependent Amazon Web Services services on behalf of the Amazon Web Services account.
- Returns:
- The ARN of the IAM role that enables CodeBuild to interact with dependent Amazon Web Services services on behalf of the Amazon Web Services account.
-
timeoutInMinutes
How long, in minutes, from 5 to 2160 (36 hours), for CodeBuild to wait before timing out any related build that did not get marked as completed. The default is 60 minutes.
- Returns:
- How long, in minutes, from 5 to 2160 (36 hours), for CodeBuild to wait before timing out any related build that did not get marked as completed. The default is 60 minutes.
-
queuedTimeoutInMinutes
The number of minutes a build is allowed to be queued before it times out.
- Returns:
- The number of minutes a build is allowed to be queued before it times out.
-
encryptionKey
The Key Management Service customer master key (CMK) to be used for encrypting the build output artifacts.
You can use a cross-account KMS key to encrypt the build output artifacts if your service role has permission to that key.
You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using the format
alias/<alias-name>). If you don't specify a value, CodeBuild uses the managed CMK for Amazon Simple Storage Service (Amazon S3).- Returns:
- The Key Management Service customer master key (CMK) to be used for encrypting the build output
artifacts.
You can use a cross-account KMS key to encrypt the build output artifacts if your service role has permission to that key.
You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using the format
alias/<alias-name>). If you don't specify a value, CodeBuild uses the managed CMK for Amazon Simple Storage Service (Amazon S3).
-
hasTags
public final boolean hasTags()For responses, this returns true if the service returned a value for the Tags property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
tags
A list of tag key and value pairs associated with this build project.
These tags are available for use by Amazon Web Services services that support CodeBuild build project tags.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasTags()method.- Returns:
- A list of tag key and value pairs associated with this build project.
These tags are available for use by Amazon Web Services services that support CodeBuild build project tags.
-
created
When the build project was created, expressed in Unix time format.
- Returns:
- When the build project was created, expressed in Unix time format.
-
lastModified
When the build project's settings were last modified, expressed in Unix time format.
- Returns:
- When the build project's settings were last modified, expressed in Unix time format.
-
webhook
Information about a webhook that connects repository events to a build project in CodeBuild.
- Returns:
- Information about a webhook that connects repository events to a build project in CodeBuild.
-
vpcConfig
Information about the VPC configuration that CodeBuild accesses.
- Returns:
- Information about the VPC configuration that CodeBuild accesses.
-
badge
Information about the build badge for the build project.
- Returns:
- Information about the build badge for the build project.
-
logsConfig
Information about logs for the build project. A project can create logs in CloudWatch Logs, an S3 bucket, or both.
- Returns:
- Information about logs for the build project. A project can create logs in CloudWatch Logs, an S3 bucket, or both.
-
hasFileSystemLocations
public final boolean hasFileSystemLocations()For responses, this returns true if the service returned a value for the FileSystemLocations property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
fileSystemLocations
An array of
ProjectFileSystemLocationobjects for a CodeBuild build project. AProjectFileSystemLocationobject specifies theidentifier,location,mountOptions,mountPoint, andtypeof a file system created using Amazon Elastic File System.Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasFileSystemLocations()method.- Returns:
- An array of
ProjectFileSystemLocationobjects for a CodeBuild build project. AProjectFileSystemLocationobject specifies theidentifier,location,mountOptions,mountPoint, andtypeof a file system created using Amazon Elastic File System.
-
buildBatchConfig
A ProjectBuildBatchConfig object that defines the batch build options for the project.
- Returns:
- A ProjectBuildBatchConfig object that defines the batch build options for the project.
-
concurrentBuildLimit
The maximum number of concurrent builds that are allowed for this project.
New builds are only started if the current number of builds is less than or equal to this limit. If the current build count meets this limit, new builds are throttled and are not run.
- Returns:
- The maximum number of concurrent builds that are allowed for this project.
New builds are only started if the current number of builds is less than or equal to this limit. If the current build count meets this limit, new builds are throttled and are not run.
-
projectVisibility
Returns the value of the ProjectVisibility property for this object.If the service returns an enum value that is not available in the current SDK version,
projectVisibilitywill returnProjectVisibilityType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromprojectVisibilityAsString().- Returns:
- The value of the ProjectVisibility property for this object.
- See Also:
-
projectVisibilityAsString
Returns the value of the ProjectVisibility property for this object.If the service returns an enum value that is not available in the current SDK version,
projectVisibilitywill returnProjectVisibilityType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromprojectVisibilityAsString().- Returns:
- The value of the ProjectVisibility property for this object.
- See Also:
-
publicProjectAlias
Contains the project identifier used with the public build APIs.
- Returns:
- Contains the project identifier used with the public build APIs.
-
resourceAccessRole
The ARN of the IAM role that enables CodeBuild to access the CloudWatch Logs and Amazon S3 artifacts for the project's builds.
- Returns:
- The ARN of the IAM role that enables CodeBuild to access the CloudWatch Logs and Amazon S3 artifacts for the project's builds.
-
autoRetryLimit
The maximum number of additional automatic retries after a failed build. For example, if the auto-retry limit is set to 2, CodeBuild will call the
RetryBuildAPI to automatically retry your build for up to 2 additional times.- Returns:
- The maximum number of additional automatic retries after a failed build. For example, if the auto-retry
limit is set to 2, CodeBuild will call the
RetryBuildAPI to automatically retry your build for up to 2 additional times.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<Project.Builder,Project> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-