Interface CodeBuildAsyncClient
- All Superinterfaces:
AutoCloseable
,AwsClient
,SdkAutoCloseable
,SdkClient
builder()
method.The asynchronous client performs non-blocking I/O when configured with any
invalid reference
SdkAsyncHttpClient
CodeBuild is a fully managed build service in the cloud. CodeBuild compiles your source code, runs unit tests, and produces artifacts that are ready to deploy. CodeBuild eliminates the need to provision, manage, and scale your own build servers. It provides prepackaged build environments for the most popular programming languages and build tools, such as Apache Maven, Gradle, and more. You can also fully customize build environments in CodeBuild to use your own build tools. CodeBuild scales automatically to meet peak build requests. You pay only for the build time you consume. For more information about CodeBuild, see the CodeBuild User Guide.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Value for looking up the service's metadata from theServiceMetadataProvider
.static final String
-
Method Summary
Modifier and TypeMethodDescriptionbatchDeleteBuilds
(Consumer<BatchDeleteBuildsRequest.Builder> batchDeleteBuildsRequest) Deletes one or more builds.batchDeleteBuilds
(BatchDeleteBuildsRequest batchDeleteBuildsRequest) Deletes one or more builds.batchGetBuildBatches
(Consumer<BatchGetBuildBatchesRequest.Builder> batchGetBuildBatchesRequest) Retrieves information about one or more batch builds.batchGetBuildBatches
(BatchGetBuildBatchesRequest batchGetBuildBatchesRequest) Retrieves information about one or more batch builds.default CompletableFuture
<BatchGetBuildsResponse> batchGetBuilds
(Consumer<BatchGetBuildsRequest.Builder> batchGetBuildsRequest) Gets information about one or more builds.default CompletableFuture
<BatchGetBuildsResponse> batchGetBuilds
(BatchGetBuildsRequest batchGetBuildsRequest) Gets information about one or more builds.default CompletableFuture
<BatchGetFleetsResponse> batchGetFleets
(Consumer<BatchGetFleetsRequest.Builder> batchGetFleetsRequest) Gets information about one or more compute fleets.default CompletableFuture
<BatchGetFleetsResponse> batchGetFleets
(BatchGetFleetsRequest batchGetFleetsRequest) Gets information about one or more compute fleets.batchGetProjects
(Consumer<BatchGetProjectsRequest.Builder> batchGetProjectsRequest) Gets information about one or more build projects.batchGetProjects
(BatchGetProjectsRequest batchGetProjectsRequest) Gets information about one or more build projects.batchGetReportGroups
(Consumer<BatchGetReportGroupsRequest.Builder> batchGetReportGroupsRequest) Returns an array of report groups.batchGetReportGroups
(BatchGetReportGroupsRequest batchGetReportGroupsRequest) Returns an array of report groups.default CompletableFuture
<BatchGetReportsResponse> batchGetReports
(Consumer<BatchGetReportsRequest.Builder> batchGetReportsRequest) Returns an array of reports.default CompletableFuture
<BatchGetReportsResponse> batchGetReports
(BatchGetReportsRequest batchGetReportsRequest) Returns an array of reports.static CodeBuildAsyncClientBuilder
builder()
Create a builder that can be used to configure and create aCodeBuildAsyncClient
.static CodeBuildAsyncClient
create()
Create aCodeBuildAsyncClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
.default CompletableFuture
<CreateFleetResponse> createFleet
(Consumer<CreateFleetRequest.Builder> createFleetRequest) Creates a compute fleet.default CompletableFuture
<CreateFleetResponse> createFleet
(CreateFleetRequest createFleetRequest) Creates a compute fleet.default CompletableFuture
<CreateProjectResponse> createProject
(Consumer<CreateProjectRequest.Builder> createProjectRequest) Creates a build project.default CompletableFuture
<CreateProjectResponse> createProject
(CreateProjectRequest createProjectRequest) Creates a build project.createReportGroup
(Consumer<CreateReportGroupRequest.Builder> createReportGroupRequest) Creates a report group.createReportGroup
(CreateReportGroupRequest createReportGroupRequest) Creates a report group.default CompletableFuture
<CreateWebhookResponse> createWebhook
(Consumer<CreateWebhookRequest.Builder> createWebhookRequest) For an existing CodeBuild build project that has its source code stored in a GitHub or Bitbucket repository, enables CodeBuild to start rebuilding the source code every time a code change is pushed to the repository.default CompletableFuture
<CreateWebhookResponse> createWebhook
(CreateWebhookRequest createWebhookRequest) For an existing CodeBuild build project that has its source code stored in a GitHub or Bitbucket repository, enables CodeBuild to start rebuilding the source code every time a code change is pushed to the repository.deleteBuildBatch
(Consumer<DeleteBuildBatchRequest.Builder> deleteBuildBatchRequest) Deletes a batch build.deleteBuildBatch
(DeleteBuildBatchRequest deleteBuildBatchRequest) Deletes a batch build.default CompletableFuture
<DeleteFleetResponse> deleteFleet
(Consumer<DeleteFleetRequest.Builder> deleteFleetRequest) Deletes a compute fleet.default CompletableFuture
<DeleteFleetResponse> deleteFleet
(DeleteFleetRequest deleteFleetRequest) Deletes a compute fleet.default CompletableFuture
<DeleteProjectResponse> deleteProject
(Consumer<DeleteProjectRequest.Builder> deleteProjectRequest) Deletes a build project.default CompletableFuture
<DeleteProjectResponse> deleteProject
(DeleteProjectRequest deleteProjectRequest) Deletes a build project.default CompletableFuture
<DeleteReportResponse> deleteReport
(Consumer<DeleteReportRequest.Builder> deleteReportRequest) Deletes a report.default CompletableFuture
<DeleteReportResponse> deleteReport
(DeleteReportRequest deleteReportRequest) Deletes a report.deleteReportGroup
(Consumer<DeleteReportGroupRequest.Builder> deleteReportGroupRequest) Deletes a report group.deleteReportGroup
(DeleteReportGroupRequest deleteReportGroupRequest) Deletes a report group.deleteResourcePolicy
(Consumer<DeleteResourcePolicyRequest.Builder> deleteResourcePolicyRequest) Deletes a resource policy that is identified by its resource ARN.deleteResourcePolicy
(DeleteResourcePolicyRequest deleteResourcePolicyRequest) Deletes a resource policy that is identified by its resource ARN.deleteSourceCredentials
(Consumer<DeleteSourceCredentialsRequest.Builder> deleteSourceCredentialsRequest) Deletes a set of GitHub, GitHub Enterprise, or Bitbucket source credentials.deleteSourceCredentials
(DeleteSourceCredentialsRequest deleteSourceCredentialsRequest) Deletes a set of GitHub, GitHub Enterprise, or Bitbucket source credentials.default CompletableFuture
<DeleteWebhookResponse> deleteWebhook
(Consumer<DeleteWebhookRequest.Builder> deleteWebhookRequest) For an existing CodeBuild build project that has its source code stored in a GitHub or Bitbucket repository, stops CodeBuild from rebuilding the source code every time a code change is pushed to the repository.default CompletableFuture
<DeleteWebhookResponse> deleteWebhook
(DeleteWebhookRequest deleteWebhookRequest) For an existing CodeBuild build project that has its source code stored in a GitHub or Bitbucket repository, stops CodeBuild from rebuilding the source code every time a code change is pushed to the repository.describeCodeCoverages
(Consumer<DescribeCodeCoveragesRequest.Builder> describeCodeCoveragesRequest) Retrieves one or more code coverage reports.describeCodeCoverages
(DescribeCodeCoveragesRequest describeCodeCoveragesRequest) Retrieves one or more code coverage reports.default DescribeCodeCoveragesPublisher
describeCodeCoveragesPaginator
(Consumer<DescribeCodeCoveragesRequest.Builder> describeCodeCoveragesRequest) This is a variant ofdescribeCodeCoverages(software.amazon.awssdk.services.codebuild.model.DescribeCodeCoveragesRequest)
operation.default DescribeCodeCoveragesPublisher
describeCodeCoveragesPaginator
(DescribeCodeCoveragesRequest describeCodeCoveragesRequest) This is a variant ofdescribeCodeCoverages(software.amazon.awssdk.services.codebuild.model.DescribeCodeCoveragesRequest)
operation.describeTestCases
(Consumer<DescribeTestCasesRequest.Builder> describeTestCasesRequest) Returns a list of details about test cases for a report.describeTestCases
(DescribeTestCasesRequest describeTestCasesRequest) Returns a list of details about test cases for a report.default DescribeTestCasesPublisher
describeTestCasesPaginator
(Consumer<DescribeTestCasesRequest.Builder> describeTestCasesRequest) This is a variant ofdescribeTestCases(software.amazon.awssdk.services.codebuild.model.DescribeTestCasesRequest)
operation.default DescribeTestCasesPublisher
describeTestCasesPaginator
(DescribeTestCasesRequest describeTestCasesRequest) This is a variant ofdescribeTestCases(software.amazon.awssdk.services.codebuild.model.DescribeTestCasesRequest)
operation.getReportGroupTrend
(Consumer<GetReportGroupTrendRequest.Builder> getReportGroupTrendRequest) Analyzes and accumulates test report values for the specified test reports.getReportGroupTrend
(GetReportGroupTrendRequest getReportGroupTrendRequest) Analyzes and accumulates test report values for the specified test reports.getResourcePolicy
(Consumer<GetResourcePolicyRequest.Builder> getResourcePolicyRequest) Gets a resource policy that is identified by its resource ARN.getResourcePolicy
(GetResourcePolicyRequest getResourcePolicyRequest) Gets a resource policy that is identified by its resource ARN.importSourceCredentials
(Consumer<ImportSourceCredentialsRequest.Builder> importSourceCredentialsRequest) Imports the source repository credentials for an CodeBuild project that has its source code stored in a GitHub, GitHub Enterprise, or Bitbucket repository.importSourceCredentials
(ImportSourceCredentialsRequest importSourceCredentialsRequest) Imports the source repository credentials for an CodeBuild project that has its source code stored in a GitHub, GitHub Enterprise, or Bitbucket repository.invalidateProjectCache
(Consumer<InvalidateProjectCacheRequest.Builder> invalidateProjectCacheRequest) Resets the cache for a project.invalidateProjectCache
(InvalidateProjectCacheRequest invalidateProjectCacheRequest) Resets the cache for a project.listBuildBatches
(Consumer<ListBuildBatchesRequest.Builder> listBuildBatchesRequest) Retrieves the identifiers of your build batches in the current region.listBuildBatches
(ListBuildBatchesRequest listBuildBatchesRequest) Retrieves the identifiers of your build batches in the current region.listBuildBatchesForProject
(Consumer<ListBuildBatchesForProjectRequest.Builder> listBuildBatchesForProjectRequest) Retrieves the identifiers of the build batches for a specific project.listBuildBatchesForProject
(ListBuildBatchesForProjectRequest listBuildBatchesForProjectRequest) Retrieves the identifiers of the build batches for a specific project.listBuildBatchesForProjectPaginator
(Consumer<ListBuildBatchesForProjectRequest.Builder> listBuildBatchesForProjectRequest) This is a variant oflistBuildBatchesForProject(software.amazon.awssdk.services.codebuild.model.ListBuildBatchesForProjectRequest)
operation.listBuildBatchesForProjectPaginator
(ListBuildBatchesForProjectRequest listBuildBatchesForProjectRequest) This is a variant oflistBuildBatchesForProject(software.amazon.awssdk.services.codebuild.model.ListBuildBatchesForProjectRequest)
operation.default ListBuildBatchesPublisher
listBuildBatchesPaginator
(Consumer<ListBuildBatchesRequest.Builder> listBuildBatchesRequest) This is a variant oflistBuildBatches(software.amazon.awssdk.services.codebuild.model.ListBuildBatchesRequest)
operation.default ListBuildBatchesPublisher
listBuildBatchesPaginator
(ListBuildBatchesRequest listBuildBatchesRequest) This is a variant oflistBuildBatches(software.amazon.awssdk.services.codebuild.model.ListBuildBatchesRequest)
operation.default CompletableFuture
<ListBuildsResponse> Gets a list of build IDs, with each build ID representing a single build.default CompletableFuture
<ListBuildsResponse> listBuilds
(Consumer<ListBuildsRequest.Builder> listBuildsRequest) Gets a list of build IDs, with each build ID representing a single build.default CompletableFuture
<ListBuildsResponse> listBuilds
(ListBuildsRequest listBuildsRequest) Gets a list of build IDs, with each build ID representing a single build.listBuildsForProject
(Consumer<ListBuildsForProjectRequest.Builder> listBuildsForProjectRequest) Gets a list of build identifiers for the specified build project, with each build identifier representing a single build.listBuildsForProject
(ListBuildsForProjectRequest listBuildsForProjectRequest) Gets a list of build identifiers for the specified build project, with each build identifier representing a single build.default ListBuildsForProjectPublisher
listBuildsForProjectPaginator
(Consumer<ListBuildsForProjectRequest.Builder> listBuildsForProjectRequest) This is a variant oflistBuildsForProject(software.amazon.awssdk.services.codebuild.model.ListBuildsForProjectRequest)
operation.default ListBuildsForProjectPublisher
listBuildsForProjectPaginator
(ListBuildsForProjectRequest listBuildsForProjectRequest) This is a variant oflistBuildsForProject(software.amazon.awssdk.services.codebuild.model.ListBuildsForProjectRequest)
operation.default ListBuildsPublisher
This is a variant oflistBuilds(software.amazon.awssdk.services.codebuild.model.ListBuildsRequest)
operation.default ListBuildsPublisher
listBuildsPaginator
(Consumer<ListBuildsRequest.Builder> listBuildsRequest) This is a variant oflistBuilds(software.amazon.awssdk.services.codebuild.model.ListBuildsRequest)
operation.default ListBuildsPublisher
listBuildsPaginator
(ListBuildsRequest listBuildsRequest) This is a variant oflistBuilds(software.amazon.awssdk.services.codebuild.model.ListBuildsRequest)
operation.Gets information about Docker images that are managed by CodeBuild.listCuratedEnvironmentImages
(Consumer<ListCuratedEnvironmentImagesRequest.Builder> listCuratedEnvironmentImagesRequest) Gets information about Docker images that are managed by CodeBuild.listCuratedEnvironmentImages
(ListCuratedEnvironmentImagesRequest listCuratedEnvironmentImagesRequest) Gets information about Docker images that are managed by CodeBuild.default CompletableFuture
<ListFleetsResponse> listFleets
(Consumer<ListFleetsRequest.Builder> listFleetsRequest) Gets a list of compute fleet names with each compute fleet name representing a single compute fleet.default CompletableFuture
<ListFleetsResponse> listFleets
(ListFleetsRequest listFleetsRequest) Gets a list of compute fleet names with each compute fleet name representing a single compute fleet.default ListFleetsPublisher
listFleetsPaginator
(Consumer<ListFleetsRequest.Builder> listFleetsRequest) This is a variant oflistFleets(software.amazon.awssdk.services.codebuild.model.ListFleetsRequest)
operation.default ListFleetsPublisher
listFleetsPaginator
(ListFleetsRequest listFleetsRequest) This is a variant oflistFleets(software.amazon.awssdk.services.codebuild.model.ListFleetsRequest)
operation.default CompletableFuture
<ListProjectsResponse> Gets a list of build project names, with each build project name representing a single build project.default CompletableFuture
<ListProjectsResponse> listProjects
(Consumer<ListProjectsRequest.Builder> listProjectsRequest) Gets a list of build project names, with each build project name representing a single build project.default CompletableFuture
<ListProjectsResponse> listProjects
(ListProjectsRequest listProjectsRequest) Gets a list of build project names, with each build project name representing a single build project.default ListProjectsPublisher
This is a variant oflistProjects(software.amazon.awssdk.services.codebuild.model.ListProjectsRequest)
operation.default ListProjectsPublisher
listProjectsPaginator
(Consumer<ListProjectsRequest.Builder> listProjectsRequest) This is a variant oflistProjects(software.amazon.awssdk.services.codebuild.model.ListProjectsRequest)
operation.default ListProjectsPublisher
listProjectsPaginator
(ListProjectsRequest listProjectsRequest) This is a variant oflistProjects(software.amazon.awssdk.services.codebuild.model.ListProjectsRequest)
operation.listReportGroups
(Consumer<ListReportGroupsRequest.Builder> listReportGroupsRequest) Gets a list ARNs for the report groups in the current Amazon Web Services account.listReportGroups
(ListReportGroupsRequest listReportGroupsRequest) Gets a list ARNs for the report groups in the current Amazon Web Services account.default ListReportGroupsPublisher
listReportGroupsPaginator
(Consumer<ListReportGroupsRequest.Builder> listReportGroupsRequest) This is a variant oflistReportGroups(software.amazon.awssdk.services.codebuild.model.ListReportGroupsRequest)
operation.default ListReportGroupsPublisher
listReportGroupsPaginator
(ListReportGroupsRequest listReportGroupsRequest) This is a variant oflistReportGroups(software.amazon.awssdk.services.codebuild.model.ListReportGroupsRequest)
operation.default CompletableFuture
<ListReportsResponse> listReports
(Consumer<ListReportsRequest.Builder> listReportsRequest) Returns a list of ARNs for the reports in the current Amazon Web Services account.default CompletableFuture
<ListReportsResponse> listReports
(ListReportsRequest listReportsRequest) Returns a list of ARNs for the reports in the current Amazon Web Services account.listReportsForReportGroup
(Consumer<ListReportsForReportGroupRequest.Builder> listReportsForReportGroupRequest) Returns a list of ARNs for the reports that belong to aReportGroup
.listReportsForReportGroup
(ListReportsForReportGroupRequest listReportsForReportGroupRequest) Returns a list of ARNs for the reports that belong to aReportGroup
.listReportsForReportGroupPaginator
(Consumer<ListReportsForReportGroupRequest.Builder> listReportsForReportGroupRequest) This is a variant oflistReportsForReportGroup(software.amazon.awssdk.services.codebuild.model.ListReportsForReportGroupRequest)
operation.listReportsForReportGroupPaginator
(ListReportsForReportGroupRequest listReportsForReportGroupRequest) This is a variant oflistReportsForReportGroup(software.amazon.awssdk.services.codebuild.model.ListReportsForReportGroupRequest)
operation.default ListReportsPublisher
listReportsPaginator
(Consumer<ListReportsRequest.Builder> listReportsRequest) This is a variant oflistReports(software.amazon.awssdk.services.codebuild.model.ListReportsRequest)
operation.default ListReportsPublisher
listReportsPaginator
(ListReportsRequest listReportsRequest) This is a variant oflistReports(software.amazon.awssdk.services.codebuild.model.ListReportsRequest)
operation.listSharedProjects
(Consumer<ListSharedProjectsRequest.Builder> listSharedProjectsRequest) Gets a list of projects that are shared with other Amazon Web Services accounts or users.listSharedProjects
(ListSharedProjectsRequest listSharedProjectsRequest) Gets a list of projects that are shared with other Amazon Web Services accounts or users.default ListSharedProjectsPublisher
listSharedProjectsPaginator
(Consumer<ListSharedProjectsRequest.Builder> listSharedProjectsRequest) This is a variant oflistSharedProjects(software.amazon.awssdk.services.codebuild.model.ListSharedProjectsRequest)
operation.default ListSharedProjectsPublisher
listSharedProjectsPaginator
(ListSharedProjectsRequest listSharedProjectsRequest) This is a variant oflistSharedProjects(software.amazon.awssdk.services.codebuild.model.ListSharedProjectsRequest)
operation.listSharedReportGroups
(Consumer<ListSharedReportGroupsRequest.Builder> listSharedReportGroupsRequest) Gets a list of report groups that are shared with other Amazon Web Services accounts or users.listSharedReportGroups
(ListSharedReportGroupsRequest listSharedReportGroupsRequest) Gets a list of report groups that are shared with other Amazon Web Services accounts or users.default ListSharedReportGroupsPublisher
listSharedReportGroupsPaginator
(Consumer<ListSharedReportGroupsRequest.Builder> listSharedReportGroupsRequest) This is a variant oflistSharedReportGroups(software.amazon.awssdk.services.codebuild.model.ListSharedReportGroupsRequest)
operation.default ListSharedReportGroupsPublisher
listSharedReportGroupsPaginator
(ListSharedReportGroupsRequest listSharedReportGroupsRequest) This is a variant oflistSharedReportGroups(software.amazon.awssdk.services.codebuild.model.ListSharedReportGroupsRequest)
operation.Returns a list ofSourceCredentialsInfo
objects.listSourceCredentials
(Consumer<ListSourceCredentialsRequest.Builder> listSourceCredentialsRequest) Returns a list ofSourceCredentialsInfo
objects.listSourceCredentials
(ListSourceCredentialsRequest listSourceCredentialsRequest) Returns a list ofSourceCredentialsInfo
objects.putResourcePolicy
(Consumer<PutResourcePolicyRequest.Builder> putResourcePolicyRequest) Stores a resource policy for the ARN of aProject
orReportGroup
object.putResourcePolicy
(PutResourcePolicyRequest putResourcePolicyRequest) Stores a resource policy for the ARN of aProject
orReportGroup
object.default CompletableFuture
<RetryBuildResponse> retryBuild
(Consumer<RetryBuildRequest.Builder> retryBuildRequest) Restarts a build.default CompletableFuture
<RetryBuildResponse> retryBuild
(RetryBuildRequest retryBuildRequest) Restarts a build.default CompletableFuture
<RetryBuildBatchResponse> retryBuildBatch
(Consumer<RetryBuildBatchRequest.Builder> retryBuildBatchRequest) Restarts a failed batch build.default CompletableFuture
<RetryBuildBatchResponse> retryBuildBatch
(RetryBuildBatchRequest retryBuildBatchRequest) Restarts a failed batch build.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationdefault CompletableFuture
<StartBuildResponse> startBuild
(Consumer<StartBuildRequest.Builder> startBuildRequest) Starts running a build with the settings defined in the project.default CompletableFuture
<StartBuildResponse> startBuild
(StartBuildRequest startBuildRequest) Starts running a build with the settings defined in the project.default CompletableFuture
<StartBuildBatchResponse> startBuildBatch
(Consumer<StartBuildBatchRequest.Builder> startBuildBatchRequest) Starts a batch build for a project.default CompletableFuture
<StartBuildBatchResponse> startBuildBatch
(StartBuildBatchRequest startBuildBatchRequest) Starts a batch build for a project.default CompletableFuture
<StopBuildResponse> stopBuild
(Consumer<StopBuildRequest.Builder> stopBuildRequest) Attempts to stop running a build.default CompletableFuture
<StopBuildResponse> stopBuild
(StopBuildRequest stopBuildRequest) Attempts to stop running a build.default CompletableFuture
<StopBuildBatchResponse> stopBuildBatch
(Consumer<StopBuildBatchRequest.Builder> stopBuildBatchRequest) Stops a running batch build.default CompletableFuture
<StopBuildBatchResponse> stopBuildBatch
(StopBuildBatchRequest stopBuildBatchRequest) Stops a running batch build.default CompletableFuture
<UpdateFleetResponse> updateFleet
(Consumer<UpdateFleetRequest.Builder> updateFleetRequest) Updates a compute fleet.default CompletableFuture
<UpdateFleetResponse> updateFleet
(UpdateFleetRequest updateFleetRequest) Updates a compute fleet.default CompletableFuture
<UpdateProjectResponse> updateProject
(Consumer<UpdateProjectRequest.Builder> updateProjectRequest) Changes the settings of a build project.default CompletableFuture
<UpdateProjectResponse> updateProject
(UpdateProjectRequest updateProjectRequest) Changes the settings of a build project.updateProjectVisibility
(Consumer<UpdateProjectVisibilityRequest.Builder> updateProjectVisibilityRequest) Changes the public visibility for a project.updateProjectVisibility
(UpdateProjectVisibilityRequest updateProjectVisibilityRequest) Changes the public visibility for a project.updateReportGroup
(Consumer<UpdateReportGroupRequest.Builder> updateReportGroupRequest) Updates a report group.updateReportGroup
(UpdateReportGroupRequest updateReportGroupRequest) Updates a report group.default CompletableFuture
<UpdateWebhookResponse> updateWebhook
(Consumer<UpdateWebhookRequest.Builder> updateWebhookRequest) Updates the webhook associated with an CodeBuild build project.default CompletableFuture
<UpdateWebhookResponse> updateWebhook
(UpdateWebhookRequest updateWebhookRequest) Updates the webhook associated with an CodeBuild build project.Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
Methods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
Field Details
-
SERVICE_NAME
- See Also:
-
SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider
.- See Also:
-
-
Method Details
-
batchDeleteBuilds
default CompletableFuture<BatchDeleteBuildsResponse> batchDeleteBuilds(BatchDeleteBuildsRequest batchDeleteBuildsRequest) Deletes one or more builds.
- Parameters:
batchDeleteBuildsRequest
-- Returns:
- A Java Future containing the result of the BatchDeleteBuilds operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
batchDeleteBuilds
default CompletableFuture<BatchDeleteBuildsResponse> batchDeleteBuilds(Consumer<BatchDeleteBuildsRequest.Builder> batchDeleteBuildsRequest) Deletes one or more builds.
This is a convenience which creates an instance of the
BatchDeleteBuildsRequest.Builder
avoiding the need to create one manually viaBatchDeleteBuildsRequest.builder()
- Parameters:
batchDeleteBuildsRequest
- AConsumer
that will call methods onBatchDeleteBuildsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the BatchDeleteBuilds operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
batchGetBuildBatches
default CompletableFuture<BatchGetBuildBatchesResponse> batchGetBuildBatches(BatchGetBuildBatchesRequest batchGetBuildBatchesRequest) Retrieves information about one or more batch builds.
- Parameters:
batchGetBuildBatchesRequest
-- Returns:
- A Java Future containing the result of the BatchGetBuildBatches operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
batchGetBuildBatches
default CompletableFuture<BatchGetBuildBatchesResponse> batchGetBuildBatches(Consumer<BatchGetBuildBatchesRequest.Builder> batchGetBuildBatchesRequest) Retrieves information about one or more batch builds.
This is a convenience which creates an instance of the
BatchGetBuildBatchesRequest.Builder
avoiding the need to create one manually viaBatchGetBuildBatchesRequest.builder()
- Parameters:
batchGetBuildBatchesRequest
- AConsumer
that will call methods onBatchGetBuildBatchesRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the BatchGetBuildBatches operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
batchGetBuilds
default CompletableFuture<BatchGetBuildsResponse> batchGetBuilds(BatchGetBuildsRequest batchGetBuildsRequest) Gets information about one or more builds.
- Parameters:
batchGetBuildsRequest
-- Returns:
- A Java Future containing the result of the BatchGetBuilds operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
batchGetBuilds
default CompletableFuture<BatchGetBuildsResponse> batchGetBuilds(Consumer<BatchGetBuildsRequest.Builder> batchGetBuildsRequest) Gets information about one or more builds.
This is a convenience which creates an instance of the
BatchGetBuildsRequest.Builder
avoiding the need to create one manually viaBatchGetBuildsRequest.builder()
- Parameters:
batchGetBuildsRequest
- AConsumer
that will call methods onBatchGetBuildsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the BatchGetBuilds operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
batchGetFleets
default CompletableFuture<BatchGetFleetsResponse> batchGetFleets(BatchGetFleetsRequest batchGetFleetsRequest) Gets information about one or more compute fleets.
- Parameters:
batchGetFleetsRequest
-- Returns:
- A Java Future containing the result of the BatchGetFleets operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
batchGetFleets
default CompletableFuture<BatchGetFleetsResponse> batchGetFleets(Consumer<BatchGetFleetsRequest.Builder> batchGetFleetsRequest) Gets information about one or more compute fleets.
This is a convenience which creates an instance of the
BatchGetFleetsRequest.Builder
avoiding the need to create one manually viaBatchGetFleetsRequest.builder()
- Parameters:
batchGetFleetsRequest
- AConsumer
that will call methods onBatchGetFleetsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the BatchGetFleets operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
batchGetProjects
default CompletableFuture<BatchGetProjectsResponse> batchGetProjects(BatchGetProjectsRequest batchGetProjectsRequest) Gets information about one or more build projects.
- Parameters:
batchGetProjectsRequest
-- Returns:
- A Java Future containing the result of the BatchGetProjects operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
batchGetProjects
default CompletableFuture<BatchGetProjectsResponse> batchGetProjects(Consumer<BatchGetProjectsRequest.Builder> batchGetProjectsRequest) Gets information about one or more build projects.
This is a convenience which creates an instance of the
BatchGetProjectsRequest.Builder
avoiding the need to create one manually viaBatchGetProjectsRequest.builder()
- Parameters:
batchGetProjectsRequest
- AConsumer
that will call methods onBatchGetProjectsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the BatchGetProjects operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
batchGetReportGroups
default CompletableFuture<BatchGetReportGroupsResponse> batchGetReportGroups(BatchGetReportGroupsRequest batchGetReportGroupsRequest) Returns an array of report groups.
- Parameters:
batchGetReportGroupsRequest
-- Returns:
- A Java Future containing the result of the BatchGetReportGroups operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
batchGetReportGroups
default CompletableFuture<BatchGetReportGroupsResponse> batchGetReportGroups(Consumer<BatchGetReportGroupsRequest.Builder> batchGetReportGroupsRequest) Returns an array of report groups.
This is a convenience which creates an instance of the
BatchGetReportGroupsRequest.Builder
avoiding the need to create one manually viaBatchGetReportGroupsRequest.builder()
- Parameters:
batchGetReportGroupsRequest
- AConsumer
that will call methods onBatchGetReportGroupsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the BatchGetReportGroups operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
batchGetReports
default CompletableFuture<BatchGetReportsResponse> batchGetReports(BatchGetReportsRequest batchGetReportsRequest) Returns an array of reports.
- Parameters:
batchGetReportsRequest
-- Returns:
- A Java Future containing the result of the BatchGetReports operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
batchGetReports
default CompletableFuture<BatchGetReportsResponse> batchGetReports(Consumer<BatchGetReportsRequest.Builder> batchGetReportsRequest) Returns an array of reports.
This is a convenience which creates an instance of the
BatchGetReportsRequest.Builder
avoiding the need to create one manually viaBatchGetReportsRequest.builder()
- Parameters:
batchGetReportsRequest
- AConsumer
that will call methods onBatchGetReportsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the BatchGetReports operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createFleet
Creates a compute fleet.
- Parameters:
createFleetRequest
-- Returns:
- A Java Future containing the result of the CreateFleet operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- ResourceAlreadyExistsException The specified Amazon Web Services resource cannot be created, because an Amazon Web Services resource with the same settings already exists.
- AccountLimitExceededException An Amazon Web Services service limit was exceeded for the calling Amazon Web Services account.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createFleet
default CompletableFuture<CreateFleetResponse> createFleet(Consumer<CreateFleetRequest.Builder> createFleetRequest) Creates a compute fleet.
This is a convenience which creates an instance of the
CreateFleetRequest.Builder
avoiding the need to create one manually viaCreateFleetRequest.builder()
- Parameters:
createFleetRequest
- AConsumer
that will call methods onCreateFleetRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the CreateFleet operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- ResourceAlreadyExistsException The specified Amazon Web Services resource cannot be created, because an Amazon Web Services resource with the same settings already exists.
- AccountLimitExceededException An Amazon Web Services service limit was exceeded for the calling Amazon Web Services account.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createProject
default CompletableFuture<CreateProjectResponse> createProject(CreateProjectRequest createProjectRequest) Creates a build project.
- Parameters:
createProjectRequest
-- Returns:
- A Java Future containing the result of the CreateProject operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- ResourceAlreadyExistsException The specified Amazon Web Services resource cannot be created, because an Amazon Web Services resource with the same settings already exists.
- AccountLimitExceededException An Amazon Web Services service limit was exceeded for the calling Amazon Web Services account.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createProject
default CompletableFuture<CreateProjectResponse> createProject(Consumer<CreateProjectRequest.Builder> createProjectRequest) Creates a build project.
This is a convenience which creates an instance of the
CreateProjectRequest.Builder
avoiding the need to create one manually viaCreateProjectRequest.builder()
- Parameters:
createProjectRequest
- AConsumer
that will call methods onCreateProjectRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the CreateProject operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- ResourceAlreadyExistsException The specified Amazon Web Services resource cannot be created, because an Amazon Web Services resource with the same settings already exists.
- AccountLimitExceededException An Amazon Web Services service limit was exceeded for the calling Amazon Web Services account.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createReportGroup
default CompletableFuture<CreateReportGroupResponse> createReportGroup(CreateReportGroupRequest createReportGroupRequest) Creates a report group. A report group contains a collection of reports.
- Parameters:
createReportGroupRequest
-- Returns:
- A Java Future containing the result of the CreateReportGroup operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- ResourceAlreadyExistsException The specified Amazon Web Services resource cannot be created, because an Amazon Web Services resource with the same settings already exists.
- AccountLimitExceededException An Amazon Web Services service limit was exceeded for the calling Amazon Web Services account.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createReportGroup
default CompletableFuture<CreateReportGroupResponse> createReportGroup(Consumer<CreateReportGroupRequest.Builder> createReportGroupRequest) Creates a report group. A report group contains a collection of reports.
This is a convenience which creates an instance of the
CreateReportGroupRequest.Builder
avoiding the need to create one manually viaCreateReportGroupRequest.builder()
- Parameters:
createReportGroupRequest
- AConsumer
that will call methods onCreateReportGroupRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the CreateReportGroup operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- ResourceAlreadyExistsException The specified Amazon Web Services resource cannot be created, because an Amazon Web Services resource with the same settings already exists.
- AccountLimitExceededException An Amazon Web Services service limit was exceeded for the calling Amazon Web Services account.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createWebhook
default CompletableFuture<CreateWebhookResponse> createWebhook(CreateWebhookRequest createWebhookRequest) For an existing CodeBuild build project that has its source code stored in a GitHub or Bitbucket repository, enables CodeBuild to start rebuilding the source code every time a code change is pushed to the repository.
If you enable webhooks for an CodeBuild project, and the project is used as a build step in CodePipeline, then two identical builds are created for each commit. One build is triggered through webhooks, and one through CodePipeline. Because billing is on a per-build basis, you are billed for both builds. Therefore, if you are using CodePipeline, we recommend that you disable webhooks in CodeBuild. In the CodeBuild console, clear the Webhook box. For more information, see step 5 in Change a Build Project's Settings.
- Parameters:
createWebhookRequest
-- Returns:
- A Java Future containing the result of the CreateWebhook operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- OAuthProviderException There was a problem with the underlying OAuth provider.
- ResourceAlreadyExistsException The specified Amazon Web Services resource cannot be created, because an Amazon Web Services resource with the same settings already exists.
- ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createWebhook
default CompletableFuture<CreateWebhookResponse> createWebhook(Consumer<CreateWebhookRequest.Builder> createWebhookRequest) For an existing CodeBuild build project that has its source code stored in a GitHub or Bitbucket repository, enables CodeBuild to start rebuilding the source code every time a code change is pushed to the repository.
If you enable webhooks for an CodeBuild project, and the project is used as a build step in CodePipeline, then two identical builds are created for each commit. One build is triggered through webhooks, and one through CodePipeline. Because billing is on a per-build basis, you are billed for both builds. Therefore, if you are using CodePipeline, we recommend that you disable webhooks in CodeBuild. In the CodeBuild console, clear the Webhook box. For more information, see step 5 in Change a Build Project's Settings.
This is a convenience which creates an instance of the
CreateWebhookRequest.Builder
avoiding the need to create one manually viaCreateWebhookRequest.builder()
- Parameters:
createWebhookRequest
- AConsumer
that will call methods onCreateWebhookRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the CreateWebhook operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- OAuthProviderException There was a problem with the underlying OAuth provider.
- ResourceAlreadyExistsException The specified Amazon Web Services resource cannot be created, because an Amazon Web Services resource with the same settings already exists.
- ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteBuildBatch
default CompletableFuture<DeleteBuildBatchResponse> deleteBuildBatch(DeleteBuildBatchRequest deleteBuildBatchRequest) Deletes a batch build.
- Parameters:
deleteBuildBatchRequest
-- Returns:
- A Java Future containing the result of the DeleteBuildBatch operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteBuildBatch
default CompletableFuture<DeleteBuildBatchResponse> deleteBuildBatch(Consumer<DeleteBuildBatchRequest.Builder> deleteBuildBatchRequest) Deletes a batch build.
This is a convenience which creates an instance of the
DeleteBuildBatchRequest.Builder
avoiding the need to create one manually viaDeleteBuildBatchRequest.builder()
- Parameters:
deleteBuildBatchRequest
- AConsumer
that will call methods onDeleteBuildBatchRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DeleteBuildBatch operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteFleet
Deletes a compute fleet. When you delete a compute fleet, its builds are not deleted.
- Parameters:
deleteFleetRequest
-- Returns:
- A Java Future containing the result of the DeleteFleet operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteFleet
default CompletableFuture<DeleteFleetResponse> deleteFleet(Consumer<DeleteFleetRequest.Builder> deleteFleetRequest) Deletes a compute fleet. When you delete a compute fleet, its builds are not deleted.
This is a convenience which creates an instance of the
DeleteFleetRequest.Builder
avoiding the need to create one manually viaDeleteFleetRequest.builder()
- Parameters:
deleteFleetRequest
- AConsumer
that will call methods onDeleteFleetRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DeleteFleet operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteProject
default CompletableFuture<DeleteProjectResponse> deleteProject(DeleteProjectRequest deleteProjectRequest) Deletes a build project. When you delete a project, its builds are not deleted.
- Parameters:
deleteProjectRequest
-- Returns:
- A Java Future containing the result of the DeleteProject operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteProject
default CompletableFuture<DeleteProjectResponse> deleteProject(Consumer<DeleteProjectRequest.Builder> deleteProjectRequest) Deletes a build project. When you delete a project, its builds are not deleted.
This is a convenience which creates an instance of the
DeleteProjectRequest.Builder
avoiding the need to create one manually viaDeleteProjectRequest.builder()
- Parameters:
deleteProjectRequest
- AConsumer
that will call methods onDeleteProjectRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DeleteProject operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteReport
default CompletableFuture<DeleteReportResponse> deleteReport(DeleteReportRequest deleteReportRequest) Deletes a report.
- Parameters:
deleteReportRequest
-- Returns:
- A Java Future containing the result of the DeleteReport operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteReport
default CompletableFuture<DeleteReportResponse> deleteReport(Consumer<DeleteReportRequest.Builder> deleteReportRequest) Deletes a report.
This is a convenience which creates an instance of the
DeleteReportRequest.Builder
avoiding the need to create one manually viaDeleteReportRequest.builder()
- Parameters:
deleteReportRequest
- AConsumer
that will call methods onDeleteReportRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DeleteReport operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteReportGroup
default CompletableFuture<DeleteReportGroupResponse> deleteReportGroup(DeleteReportGroupRequest deleteReportGroupRequest) Deletes a report group. Before you delete a report group, you must delete its reports.
- Parameters:
deleteReportGroupRequest
-- Returns:
- A Java Future containing the result of the DeleteReportGroup operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteReportGroup
default CompletableFuture<DeleteReportGroupResponse> deleteReportGroup(Consumer<DeleteReportGroupRequest.Builder> deleteReportGroupRequest) Deletes a report group. Before you delete a report group, you must delete its reports.
This is a convenience which creates an instance of the
DeleteReportGroupRequest.Builder
avoiding the need to create one manually viaDeleteReportGroupRequest.builder()
- Parameters:
deleteReportGroupRequest
- AConsumer
that will call methods onDeleteReportGroupRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DeleteReportGroup operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteResourcePolicy
default CompletableFuture<DeleteResourcePolicyResponse> deleteResourcePolicy(DeleteResourcePolicyRequest deleteResourcePolicyRequest) Deletes a resource policy that is identified by its resource ARN.
- Parameters:
deleteResourcePolicyRequest
-- Returns:
- A Java Future containing the result of the DeleteResourcePolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteResourcePolicy
default CompletableFuture<DeleteResourcePolicyResponse> deleteResourcePolicy(Consumer<DeleteResourcePolicyRequest.Builder> deleteResourcePolicyRequest) Deletes a resource policy that is identified by its resource ARN.
This is a convenience which creates an instance of the
DeleteResourcePolicyRequest.Builder
avoiding the need to create one manually viaDeleteResourcePolicyRequest.builder()
- Parameters:
deleteResourcePolicyRequest
- AConsumer
that will call methods onDeleteResourcePolicyRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DeleteResourcePolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteSourceCredentials
default CompletableFuture<DeleteSourceCredentialsResponse> deleteSourceCredentials(DeleteSourceCredentialsRequest deleteSourceCredentialsRequest) Deletes a set of GitHub, GitHub Enterprise, or Bitbucket source credentials.
- Parameters:
deleteSourceCredentialsRequest
-- Returns:
- A Java Future containing the result of the DeleteSourceCredentials operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteSourceCredentials
default CompletableFuture<DeleteSourceCredentialsResponse> deleteSourceCredentials(Consumer<DeleteSourceCredentialsRequest.Builder> deleteSourceCredentialsRequest) Deletes a set of GitHub, GitHub Enterprise, or Bitbucket source credentials.
This is a convenience which creates an instance of the
DeleteSourceCredentialsRequest.Builder
avoiding the need to create one manually viaDeleteSourceCredentialsRequest.builder()
- Parameters:
deleteSourceCredentialsRequest
- AConsumer
that will call methods onDeleteSourceCredentialsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DeleteSourceCredentials operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteWebhook
default CompletableFuture<DeleteWebhookResponse> deleteWebhook(DeleteWebhookRequest deleteWebhookRequest) For an existing CodeBuild build project that has its source code stored in a GitHub or Bitbucket repository, stops CodeBuild from rebuilding the source code every time a code change is pushed to the repository.
- Parameters:
deleteWebhookRequest
-- Returns:
- A Java Future containing the result of the DeleteWebhook operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
- OAuthProviderException There was a problem with the underlying OAuth provider.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteWebhook
default CompletableFuture<DeleteWebhookResponse> deleteWebhook(Consumer<DeleteWebhookRequest.Builder> deleteWebhookRequest) For an existing CodeBuild build project that has its source code stored in a GitHub or Bitbucket repository, stops CodeBuild from rebuilding the source code every time a code change is pushed to the repository.
This is a convenience which creates an instance of the
DeleteWebhookRequest.Builder
avoiding the need to create one manually viaDeleteWebhookRequest.builder()
- Parameters:
deleteWebhookRequest
- AConsumer
that will call methods onDeleteWebhookRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DeleteWebhook operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
- OAuthProviderException There was a problem with the underlying OAuth provider.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
describeCodeCoverages
default CompletableFuture<DescribeCodeCoveragesResponse> describeCodeCoverages(DescribeCodeCoveragesRequest describeCodeCoveragesRequest) Retrieves one or more code coverage reports.
- Parameters:
describeCodeCoveragesRequest
-- Returns:
- A Java Future containing the result of the DescribeCodeCoverages operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
describeCodeCoverages
default CompletableFuture<DescribeCodeCoveragesResponse> describeCodeCoverages(Consumer<DescribeCodeCoveragesRequest.Builder> describeCodeCoveragesRequest) Retrieves one or more code coverage reports.
This is a convenience which creates an instance of the
DescribeCodeCoveragesRequest.Builder
avoiding the need to create one manually viaDescribeCodeCoveragesRequest.builder()
- Parameters:
describeCodeCoveragesRequest
- AConsumer
that will call methods onDescribeCodeCoveragesRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DescribeCodeCoverages operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
describeCodeCoveragesPaginator
default DescribeCodeCoveragesPublisher describeCodeCoveragesPaginator(DescribeCodeCoveragesRequest describeCodeCoveragesRequest) This is a variant of
describeCodeCoverages(software.amazon.awssdk.services.codebuild.model.DescribeCodeCoveragesRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.codebuild.paginators.DescribeCodeCoveragesPublisher publisher = client.describeCodeCoveragesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.codebuild.paginators.DescribeCodeCoveragesPublisher publisher = client.describeCodeCoveragesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.codebuild.model.DescribeCodeCoveragesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.codebuild.model.DescribeCodeCoveragesResponse response) { //... }; });
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
describeCodeCoverages(software.amazon.awssdk.services.codebuild.model.DescribeCodeCoveragesRequest)
operation.- Parameters:
describeCodeCoveragesRequest
-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
describeCodeCoveragesPaginator
default DescribeCodeCoveragesPublisher describeCodeCoveragesPaginator(Consumer<DescribeCodeCoveragesRequest.Builder> describeCodeCoveragesRequest) This is a variant of
describeCodeCoverages(software.amazon.awssdk.services.codebuild.model.DescribeCodeCoveragesRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.codebuild.paginators.DescribeCodeCoveragesPublisher publisher = client.describeCodeCoveragesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.codebuild.paginators.DescribeCodeCoveragesPublisher publisher = client.describeCodeCoveragesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.codebuild.model.DescribeCodeCoveragesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.codebuild.model.DescribeCodeCoveragesResponse response) { //... }; });
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
describeCodeCoverages(software.amazon.awssdk.services.codebuild.model.DescribeCodeCoveragesRequest)
operation.
This is a convenience which creates an instance of the
DescribeCodeCoveragesRequest.Builder
avoiding the need to create one manually viaDescribeCodeCoveragesRequest.builder()
- Parameters:
describeCodeCoveragesRequest
- AConsumer
that will call methods onDescribeCodeCoveragesRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
describeTestCases
default CompletableFuture<DescribeTestCasesResponse> describeTestCases(DescribeTestCasesRequest describeTestCasesRequest) Returns a list of details about test cases for a report.
- Parameters:
describeTestCasesRequest
-- Returns:
- A Java Future containing the result of the DescribeTestCases operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
describeTestCases
default CompletableFuture<DescribeTestCasesResponse> describeTestCases(Consumer<DescribeTestCasesRequest.Builder> describeTestCasesRequest) Returns a list of details about test cases for a report.
This is a convenience which creates an instance of the
DescribeTestCasesRequest.Builder
avoiding the need to create one manually viaDescribeTestCasesRequest.builder()
- Parameters:
describeTestCasesRequest
- AConsumer
that will call methods onDescribeTestCasesRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DescribeTestCases operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
describeTestCasesPaginator
default DescribeTestCasesPublisher describeTestCasesPaginator(DescribeTestCasesRequest describeTestCasesRequest) This is a variant of
describeTestCases(software.amazon.awssdk.services.codebuild.model.DescribeTestCasesRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.codebuild.paginators.DescribeTestCasesPublisher publisher = client.describeTestCasesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.codebuild.paginators.DescribeTestCasesPublisher publisher = client.describeTestCasesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.codebuild.model.DescribeTestCasesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.codebuild.model.DescribeTestCasesResponse response) { //... }; });
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
describeTestCases(software.amazon.awssdk.services.codebuild.model.DescribeTestCasesRequest)
operation.- Parameters:
describeTestCasesRequest
-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
describeTestCasesPaginator
default DescribeTestCasesPublisher describeTestCasesPaginator(Consumer<DescribeTestCasesRequest.Builder> describeTestCasesRequest) This is a variant of
describeTestCases(software.amazon.awssdk.services.codebuild.model.DescribeTestCasesRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.codebuild.paginators.DescribeTestCasesPublisher publisher = client.describeTestCasesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.codebuild.paginators.DescribeTestCasesPublisher publisher = client.describeTestCasesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.codebuild.model.DescribeTestCasesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.codebuild.model.DescribeTestCasesResponse response) { //... }; });
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
describeTestCases(software.amazon.awssdk.services.codebuild.model.DescribeTestCasesRequest)
operation.
This is a convenience which creates an instance of the
DescribeTestCasesRequest.Builder
avoiding the need to create one manually viaDescribeTestCasesRequest.builder()
- Parameters:
describeTestCasesRequest
- AConsumer
that will call methods onDescribeTestCasesRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getReportGroupTrend
default CompletableFuture<GetReportGroupTrendResponse> getReportGroupTrend(GetReportGroupTrendRequest getReportGroupTrendRequest) Analyzes and accumulates test report values for the specified test reports.
- Parameters:
getReportGroupTrendRequest
-- Returns:
- A Java Future containing the result of the GetReportGroupTrend operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getReportGroupTrend
default CompletableFuture<GetReportGroupTrendResponse> getReportGroupTrend(Consumer<GetReportGroupTrendRequest.Builder> getReportGroupTrendRequest) Analyzes and accumulates test report values for the specified test reports.
This is a convenience which creates an instance of the
GetReportGroupTrendRequest.Builder
avoiding the need to create one manually viaGetReportGroupTrendRequest.builder()
- Parameters:
getReportGroupTrendRequest
- AConsumer
that will call methods onGetReportGroupTrendRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the GetReportGroupTrend operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getResourcePolicy
default CompletableFuture<GetResourcePolicyResponse> getResourcePolicy(GetResourcePolicyRequest getResourcePolicyRequest) Gets a resource policy that is identified by its resource ARN.
- Parameters:
getResourcePolicyRequest
-- Returns:
- A Java Future containing the result of the GetResourcePolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
- InvalidInputException The input value that was provided is not valid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getResourcePolicy
default CompletableFuture<GetResourcePolicyResponse> getResourcePolicy(Consumer<GetResourcePolicyRequest.Builder> getResourcePolicyRequest) Gets a resource policy that is identified by its resource ARN.
This is a convenience which creates an instance of the
GetResourcePolicyRequest.Builder
avoiding the need to create one manually viaGetResourcePolicyRequest.builder()
- Parameters:
getResourcePolicyRequest
- AConsumer
that will call methods onGetResourcePolicyRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the GetResourcePolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
- InvalidInputException The input value that was provided is not valid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
importSourceCredentials
default CompletableFuture<ImportSourceCredentialsResponse> importSourceCredentials(ImportSourceCredentialsRequest importSourceCredentialsRequest) Imports the source repository credentials for an CodeBuild project that has its source code stored in a GitHub, GitHub Enterprise, or Bitbucket repository.
- Parameters:
importSourceCredentialsRequest
-- Returns:
- A Java Future containing the result of the ImportSourceCredentials operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- AccountLimitExceededException An Amazon Web Services service limit was exceeded for the calling Amazon Web Services account.
- ResourceAlreadyExistsException The specified Amazon Web Services resource cannot be created, because an Amazon Web Services resource with the same settings already exists.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
importSourceCredentials
default CompletableFuture<ImportSourceCredentialsResponse> importSourceCredentials(Consumer<ImportSourceCredentialsRequest.Builder> importSourceCredentialsRequest) Imports the source repository credentials for an CodeBuild project that has its source code stored in a GitHub, GitHub Enterprise, or Bitbucket repository.
This is a convenience which creates an instance of the
ImportSourceCredentialsRequest.Builder
avoiding the need to create one manually viaImportSourceCredentialsRequest.builder()
- Parameters:
importSourceCredentialsRequest
- AConsumer
that will call methods onImportSourceCredentialsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ImportSourceCredentials operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- AccountLimitExceededException An Amazon Web Services service limit was exceeded for the calling Amazon Web Services account.
- ResourceAlreadyExistsException The specified Amazon Web Services resource cannot be created, because an Amazon Web Services resource with the same settings already exists.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
invalidateProjectCache
default CompletableFuture<InvalidateProjectCacheResponse> invalidateProjectCache(InvalidateProjectCacheRequest invalidateProjectCacheRequest) Resets the cache for a project.
- Parameters:
invalidateProjectCacheRequest
-- Returns:
- A Java Future containing the result of the InvalidateProjectCache operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
invalidateProjectCache
default CompletableFuture<InvalidateProjectCacheResponse> invalidateProjectCache(Consumer<InvalidateProjectCacheRequest.Builder> invalidateProjectCacheRequest) Resets the cache for a project.
This is a convenience which creates an instance of the
InvalidateProjectCacheRequest.Builder
avoiding the need to create one manually viaInvalidateProjectCacheRequest.builder()
- Parameters:
invalidateProjectCacheRequest
- AConsumer
that will call methods onInvalidateProjectCacheRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the InvalidateProjectCache operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listBuildBatches
default CompletableFuture<ListBuildBatchesResponse> listBuildBatches(ListBuildBatchesRequest listBuildBatchesRequest) Retrieves the identifiers of your build batches in the current region.
- Parameters:
listBuildBatchesRequest
-- Returns:
- A Java Future containing the result of the ListBuildBatches operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listBuildBatches
default CompletableFuture<ListBuildBatchesResponse> listBuildBatches(Consumer<ListBuildBatchesRequest.Builder> listBuildBatchesRequest) Retrieves the identifiers of your build batches in the current region.
This is a convenience which creates an instance of the
ListBuildBatchesRequest.Builder
avoiding the need to create one manually viaListBuildBatchesRequest.builder()
- Parameters:
listBuildBatchesRequest
- AConsumer
that will call methods onListBuildBatchesRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListBuildBatches operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listBuildBatchesForProject
default CompletableFuture<ListBuildBatchesForProjectResponse> listBuildBatchesForProject(ListBuildBatchesForProjectRequest listBuildBatchesForProjectRequest) Retrieves the identifiers of the build batches for a specific project.
- Parameters:
listBuildBatchesForProjectRequest
-- Returns:
- A Java Future containing the result of the ListBuildBatchesForProject operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listBuildBatchesForProject
default CompletableFuture<ListBuildBatchesForProjectResponse> listBuildBatchesForProject(Consumer<ListBuildBatchesForProjectRequest.Builder> listBuildBatchesForProjectRequest) Retrieves the identifiers of the build batches for a specific project.
This is a convenience which creates an instance of the
ListBuildBatchesForProjectRequest.Builder
avoiding the need to create one manually viaListBuildBatchesForProjectRequest.builder()
- Parameters:
listBuildBatchesForProjectRequest
- AConsumer
that will call methods onListBuildBatchesForProjectRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListBuildBatchesForProject operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listBuildBatchesForProjectPaginator
default ListBuildBatchesForProjectPublisher listBuildBatchesForProjectPaginator(ListBuildBatchesForProjectRequest listBuildBatchesForProjectRequest) This is a variant of
listBuildBatchesForProject(software.amazon.awssdk.services.codebuild.model.ListBuildBatchesForProjectRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.codebuild.paginators.ListBuildBatchesForProjectPublisher publisher = client.listBuildBatchesForProjectPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.codebuild.paginators.ListBuildBatchesForProjectPublisher publisher = client.listBuildBatchesForProjectPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.codebuild.model.ListBuildBatchesForProjectResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.codebuild.model.ListBuildBatchesForProjectResponse response) { //... }; });
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listBuildBatchesForProject(software.amazon.awssdk.services.codebuild.model.ListBuildBatchesForProjectRequest)
operation.- Parameters:
listBuildBatchesForProjectRequest
-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listBuildBatchesForProjectPaginator
default ListBuildBatchesForProjectPublisher listBuildBatchesForProjectPaginator(Consumer<ListBuildBatchesForProjectRequest.Builder> listBuildBatchesForProjectRequest) This is a variant of
listBuildBatchesForProject(software.amazon.awssdk.services.codebuild.model.ListBuildBatchesForProjectRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.codebuild.paginators.ListBuildBatchesForProjectPublisher publisher = client.listBuildBatchesForProjectPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.codebuild.paginators.ListBuildBatchesForProjectPublisher publisher = client.listBuildBatchesForProjectPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.codebuild.model.ListBuildBatchesForProjectResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.codebuild.model.ListBuildBatchesForProjectResponse response) { //... }; });
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listBuildBatchesForProject(software.amazon.awssdk.services.codebuild.model.ListBuildBatchesForProjectRequest)
operation.
This is a convenience which creates an instance of the
ListBuildBatchesForProjectRequest.Builder
avoiding the need to create one manually viaListBuildBatchesForProjectRequest.builder()
- Parameters:
listBuildBatchesForProjectRequest
- AConsumer
that will call methods onListBuildBatchesForProjectRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listBuildBatchesPaginator
default ListBuildBatchesPublisher listBuildBatchesPaginator(ListBuildBatchesRequest listBuildBatchesRequest) This is a variant of
listBuildBatches(software.amazon.awssdk.services.codebuild.model.ListBuildBatchesRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.codebuild.paginators.ListBuildBatchesPublisher publisher = client.listBuildBatchesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.codebuild.paginators.ListBuildBatchesPublisher publisher = client.listBuildBatchesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.codebuild.model.ListBuildBatchesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.codebuild.model.ListBuildBatchesResponse response) { //... }; });
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listBuildBatches(software.amazon.awssdk.services.codebuild.model.ListBuildBatchesRequest)
operation.- Parameters:
listBuildBatchesRequest
-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listBuildBatchesPaginator
default ListBuildBatchesPublisher listBuildBatchesPaginator(Consumer<ListBuildBatchesRequest.Builder> listBuildBatchesRequest) This is a variant of
listBuildBatches(software.amazon.awssdk.services.codebuild.model.ListBuildBatchesRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.codebuild.paginators.ListBuildBatchesPublisher publisher = client.listBuildBatchesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.codebuild.paginators.ListBuildBatchesPublisher publisher = client.listBuildBatchesPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.codebuild.model.ListBuildBatchesResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.codebuild.model.ListBuildBatchesResponse response) { //... }; });
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listBuildBatches(software.amazon.awssdk.services.codebuild.model.ListBuildBatchesRequest)
operation.
This is a convenience which creates an instance of the
ListBuildBatchesRequest.Builder
avoiding the need to create one manually viaListBuildBatchesRequest.builder()
- Parameters:
listBuildBatchesRequest
- AConsumer
that will call methods onListBuildBatchesRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listBuilds
Gets a list of build IDs, with each build ID representing a single build.
- Parameters:
listBuildsRequest
-- Returns:
- A Java Future containing the result of the ListBuilds operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listBuilds
default CompletableFuture<ListBuildsResponse> listBuilds(Consumer<ListBuildsRequest.Builder> listBuildsRequest) Gets a list of build IDs, with each build ID representing a single build.
This is a convenience which creates an instance of the
ListBuildsRequest.Builder
avoiding the need to create one manually viaListBuildsRequest.builder()
- Parameters:
listBuildsRequest
- AConsumer
that will call methods onListBuildsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListBuilds operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listBuilds
Gets a list of build IDs, with each build ID representing a single build.
- Returns:
- A Java Future containing the result of the ListBuilds operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listBuildsForProject
default CompletableFuture<ListBuildsForProjectResponse> listBuildsForProject(ListBuildsForProjectRequest listBuildsForProjectRequest) Gets a list of build identifiers for the specified build project, with each build identifier representing a single build.
- Parameters:
listBuildsForProjectRequest
-- Returns:
- A Java Future containing the result of the ListBuildsForProject operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listBuildsForProject
default CompletableFuture<ListBuildsForProjectResponse> listBuildsForProject(Consumer<ListBuildsForProjectRequest.Builder> listBuildsForProjectRequest) Gets a list of build identifiers for the specified build project, with each build identifier representing a single build.
This is a convenience which creates an instance of the
ListBuildsForProjectRequest.Builder
avoiding the need to create one manually viaListBuildsForProjectRequest.builder()
- Parameters:
listBuildsForProjectRequest
- AConsumer
that will call methods onListBuildsForProjectRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListBuildsForProject operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listBuildsForProjectPaginator
default ListBuildsForProjectPublisher listBuildsForProjectPaginator(ListBuildsForProjectRequest listBuildsForProjectRequest) This is a variant of
listBuildsForProject(software.amazon.awssdk.services.codebuild.model.ListBuildsForProjectRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.codebuild.paginators.ListBuildsForProjectPublisher publisher = client.listBuildsForProjectPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.codebuild.paginators.ListBuildsForProjectPublisher publisher = client.listBuildsForProjectPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.codebuild.model.ListBuildsForProjectResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.codebuild.model.ListBuildsForProjectResponse response) { //... }; });
Please notice that the configuration of null won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listBuildsForProject(software.amazon.awssdk.services.codebuild.model.ListBuildsForProjectRequest)
operation.- Parameters:
listBuildsForProjectRequest
-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listBuildsForProjectPaginator
default ListBuildsForProjectPublisher listBuildsForProjectPaginator(Consumer<ListBuildsForProjectRequest.Builder> listBuildsForProjectRequest) This is a variant of
listBuildsForProject(software.amazon.awssdk.services.codebuild.model.ListBuildsForProjectRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.codebuild.paginators.ListBuildsForProjectPublisher publisher = client.listBuildsForProjectPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.codebuild.paginators.ListBuildsForProjectPublisher publisher = client.listBuildsForProjectPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.codebuild.model.ListBuildsForProjectResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.codebuild.model.ListBuildsForProjectResponse response) { //... }; });
Please notice that the configuration of null won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listBuildsForProject(software.amazon.awssdk.services.codebuild.model.ListBuildsForProjectRequest)
operation.
This is a convenience which creates an instance of the
ListBuildsForProjectRequest.Builder
avoiding the need to create one manually viaListBuildsForProjectRequest.builder()
- Parameters:
listBuildsForProjectRequest
- AConsumer
that will call methods onListBuildsForProjectRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listBuildsPaginator
This is a variant of
listBuilds(software.amazon.awssdk.services.codebuild.model.ListBuildsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.codebuild.paginators.ListBuildsPublisher publisher = client.listBuildsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.codebuild.paginators.ListBuildsPublisher publisher = client.listBuildsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.codebuild.model.ListBuildsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.codebuild.model.ListBuildsResponse response) { //... }; });
Please notice that the configuration of null won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listBuilds(software.amazon.awssdk.services.codebuild.model.ListBuildsRequest)
operation.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listBuildsPaginator
This is a variant of
listBuilds(software.amazon.awssdk.services.codebuild.model.ListBuildsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.codebuild.paginators.ListBuildsPublisher publisher = client.listBuildsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.codebuild.paginators.ListBuildsPublisher publisher = client.listBuildsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.codebuild.model.ListBuildsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.codebuild.model.ListBuildsResponse response) { //... }; });
Please notice that the configuration of null won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listBuilds(software.amazon.awssdk.services.codebuild.model.ListBuildsRequest)
operation.- Parameters:
listBuildsRequest
-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listBuildsPaginator
default ListBuildsPublisher listBuildsPaginator(Consumer<ListBuildsRequest.Builder> listBuildsRequest) This is a variant of
listBuilds(software.amazon.awssdk.services.codebuild.model.ListBuildsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.codebuild.paginators.ListBuildsPublisher publisher = client.listBuildsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.codebuild.paginators.ListBuildsPublisher publisher = client.listBuildsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.codebuild.model.ListBuildsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.codebuild.model.ListBuildsResponse response) { //... }; });
Please notice that the configuration of null won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listBuilds(software.amazon.awssdk.services.codebuild.model.ListBuildsRequest)
operation.
This is a convenience which creates an instance of the
ListBuildsRequest.Builder
avoiding the need to create one manually viaListBuildsRequest.builder()
- Parameters:
listBuildsRequest
- AConsumer
that will call methods onListBuildsRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listCuratedEnvironmentImages
default CompletableFuture<ListCuratedEnvironmentImagesResponse> listCuratedEnvironmentImages(ListCuratedEnvironmentImagesRequest listCuratedEnvironmentImagesRequest) Gets information about Docker images that are managed by CodeBuild.
- Parameters:
listCuratedEnvironmentImagesRequest
-- Returns:
- A Java Future containing the result of the ListCuratedEnvironmentImages operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listCuratedEnvironmentImages
default CompletableFuture<ListCuratedEnvironmentImagesResponse> listCuratedEnvironmentImages(Consumer<ListCuratedEnvironmentImagesRequest.Builder> listCuratedEnvironmentImagesRequest) Gets information about Docker images that are managed by CodeBuild.
This is a convenience which creates an instance of the
ListCuratedEnvironmentImagesRequest.Builder
avoiding the need to create one manually viaListCuratedEnvironmentImagesRequest.builder()
- Parameters:
listCuratedEnvironmentImagesRequest
- AConsumer
that will call methods onListCuratedEnvironmentImagesRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListCuratedEnvironmentImages operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listCuratedEnvironmentImages
Gets information about Docker images that are managed by CodeBuild.
- Returns:
- A Java Future containing the result of the ListCuratedEnvironmentImages operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listFleets
Gets a list of compute fleet names with each compute fleet name representing a single compute fleet.
- Parameters:
listFleetsRequest
-- Returns:
- A Java Future containing the result of the ListFleets operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listFleets
default CompletableFuture<ListFleetsResponse> listFleets(Consumer<ListFleetsRequest.Builder> listFleetsRequest) Gets a list of compute fleet names with each compute fleet name representing a single compute fleet.
This is a convenience which creates an instance of the
ListFleetsRequest.Builder
avoiding the need to create one manually viaListFleetsRequest.builder()
- Parameters:
listFleetsRequest
- AConsumer
that will call methods onListFleetsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListFleets operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listFleetsPaginator
This is a variant of
listFleets(software.amazon.awssdk.services.codebuild.model.ListFleetsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.codebuild.paginators.ListFleetsPublisher publisher = client.listFleetsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.codebuild.paginators.ListFleetsPublisher publisher = client.listFleetsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.codebuild.model.ListFleetsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.codebuild.model.ListFleetsResponse response) { //... }; });
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listFleets(software.amazon.awssdk.services.codebuild.model.ListFleetsRequest)
operation.- Parameters:
listFleetsRequest
-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listFleetsPaginator
default ListFleetsPublisher listFleetsPaginator(Consumer<ListFleetsRequest.Builder> listFleetsRequest) This is a variant of
listFleets(software.amazon.awssdk.services.codebuild.model.ListFleetsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.codebuild.paginators.ListFleetsPublisher publisher = client.listFleetsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.codebuild.paginators.ListFleetsPublisher publisher = client.listFleetsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.codebuild.model.ListFleetsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.codebuild.model.ListFleetsResponse response) { //... }; });
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listFleets(software.amazon.awssdk.services.codebuild.model.ListFleetsRequest)
operation.
This is a convenience which creates an instance of the
ListFleetsRequest.Builder
avoiding the need to create one manually viaListFleetsRequest.builder()
- Parameters:
listFleetsRequest
- AConsumer
that will call methods onListFleetsRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listProjects
default CompletableFuture<ListProjectsResponse> listProjects(ListProjectsRequest listProjectsRequest) Gets a list of build project names, with each build project name representing a single build project.
- Parameters:
listProjectsRequest
-- Returns:
- A Java Future containing the result of the ListProjects operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listProjects
default CompletableFuture<ListProjectsResponse> listProjects(Consumer<ListProjectsRequest.Builder> listProjectsRequest) Gets a list of build project names, with each build project name representing a single build project.
This is a convenience which creates an instance of the
ListProjectsRequest.Builder
avoiding the need to create one manually viaListProjectsRequest.builder()
- Parameters:
listProjectsRequest
- AConsumer
that will call methods onListProjectsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListProjects operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listProjects
Gets a list of build project names, with each build project name representing a single build project.
- Returns:
- A Java Future containing the result of the ListProjects operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listProjectsPaginator
This is a variant of
listProjects(software.amazon.awssdk.services.codebuild.model.ListProjectsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.codebuild.paginators.ListProjectsPublisher publisher = client.listProjectsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.codebuild.paginators.ListProjectsPublisher publisher = client.listProjectsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.codebuild.model.ListProjectsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.codebuild.model.ListProjectsResponse response) { //... }; });
Please notice that the configuration of null won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listProjects(software.amazon.awssdk.services.codebuild.model.ListProjectsRequest)
operation.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listProjectsPaginator
This is a variant of
listProjects(software.amazon.awssdk.services.codebuild.model.ListProjectsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.codebuild.paginators.ListProjectsPublisher publisher = client.listProjectsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.codebuild.paginators.ListProjectsPublisher publisher = client.listProjectsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.codebuild.model.ListProjectsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.codebuild.model.ListProjectsResponse response) { //... }; });
Please notice that the configuration of null won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listProjects(software.amazon.awssdk.services.codebuild.model.ListProjectsRequest)
operation.- Parameters:
listProjectsRequest
-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listProjectsPaginator
default ListProjectsPublisher listProjectsPaginator(Consumer<ListProjectsRequest.Builder> listProjectsRequest) This is a variant of
listProjects(software.amazon.awssdk.services.codebuild.model.ListProjectsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.codebuild.paginators.ListProjectsPublisher publisher = client.listProjectsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.codebuild.paginators.ListProjectsPublisher publisher = client.listProjectsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.codebuild.model.ListProjectsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.codebuild.model.ListProjectsResponse response) { //... }; });
Please notice that the configuration of null won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listProjects(software.amazon.awssdk.services.codebuild.model.ListProjectsRequest)
operation.
This is a convenience which creates an instance of the
ListProjectsRequest.Builder
avoiding the need to create one manually viaListProjectsRequest.builder()
- Parameters:
listProjectsRequest
- AConsumer
that will call methods onListProjectsRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listReportGroups
default CompletableFuture<ListReportGroupsResponse> listReportGroups(ListReportGroupsRequest listReportGroupsRequest) Gets a list ARNs for the report groups in the current Amazon Web Services account.
- Parameters:
listReportGroupsRequest
-- Returns:
- A Java Future containing the result of the ListReportGroups operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listReportGroups
default CompletableFuture<ListReportGroupsResponse> listReportGroups(Consumer<ListReportGroupsRequest.Builder> listReportGroupsRequest) Gets a list ARNs for the report groups in the current Amazon Web Services account.
This is a convenience which creates an instance of the
ListReportGroupsRequest.Builder
avoiding the need to create one manually viaListReportGroupsRequest.builder()
- Parameters:
listReportGroupsRequest
- AConsumer
that will call methods onListReportGroupsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListReportGroups operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listReportGroupsPaginator
default ListReportGroupsPublisher listReportGroupsPaginator(ListReportGroupsRequest listReportGroupsRequest) This is a variant of
listReportGroups(software.amazon.awssdk.services.codebuild.model.ListReportGroupsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.codebuild.paginators.ListReportGroupsPublisher publisher = client.listReportGroupsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.codebuild.paginators.ListReportGroupsPublisher publisher = client.listReportGroupsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.codebuild.model.ListReportGroupsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.codebuild.model.ListReportGroupsResponse response) { //... }; });
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listReportGroups(software.amazon.awssdk.services.codebuild.model.ListReportGroupsRequest)
operation.- Parameters:
listReportGroupsRequest
-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listReportGroupsPaginator
default ListReportGroupsPublisher listReportGroupsPaginator(Consumer<ListReportGroupsRequest.Builder> listReportGroupsRequest) This is a variant of
listReportGroups(software.amazon.awssdk.services.codebuild.model.ListReportGroupsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.codebuild.paginators.ListReportGroupsPublisher publisher = client.listReportGroupsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.codebuild.paginators.ListReportGroupsPublisher publisher = client.listReportGroupsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.codebuild.model.ListReportGroupsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.codebuild.model.ListReportGroupsResponse response) { //... }; });
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listReportGroups(software.amazon.awssdk.services.codebuild.model.ListReportGroupsRequest)
operation.
This is a convenience which creates an instance of the
ListReportGroupsRequest.Builder
avoiding the need to create one manually viaListReportGroupsRequest.builder()
- Parameters:
listReportGroupsRequest
- AConsumer
that will call methods onListReportGroupsRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listReports
Returns a list of ARNs for the reports in the current Amazon Web Services account.
- Parameters:
listReportsRequest
-- Returns:
- A Java Future containing the result of the ListReports operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listReports
default CompletableFuture<ListReportsResponse> listReports(Consumer<ListReportsRequest.Builder> listReportsRequest) Returns a list of ARNs for the reports in the current Amazon Web Services account.
This is a convenience which creates an instance of the
ListReportsRequest.Builder
avoiding the need to create one manually viaListReportsRequest.builder()
- Parameters:
listReportsRequest
- AConsumer
that will call methods onListReportsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListReports operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listReportsForReportGroup
default CompletableFuture<ListReportsForReportGroupResponse> listReportsForReportGroup(ListReportsForReportGroupRequest listReportsForReportGroupRequest) Returns a list of ARNs for the reports that belong to a
ReportGroup
.- Parameters:
listReportsForReportGroupRequest
-- Returns:
- A Java Future containing the result of the ListReportsForReportGroup operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listReportsForReportGroup
default CompletableFuture<ListReportsForReportGroupResponse> listReportsForReportGroup(Consumer<ListReportsForReportGroupRequest.Builder> listReportsForReportGroupRequest) Returns a list of ARNs for the reports that belong to a
ReportGroup
.
This is a convenience which creates an instance of the
ListReportsForReportGroupRequest.Builder
avoiding the need to create one manually viaListReportsForReportGroupRequest.builder()
- Parameters:
listReportsForReportGroupRequest
- AConsumer
that will call methods onListReportsForReportGroupRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListReportsForReportGroup operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listReportsForReportGroupPaginator
default ListReportsForReportGroupPublisher listReportsForReportGroupPaginator(ListReportsForReportGroupRequest listReportsForReportGroupRequest) This is a variant of
listReportsForReportGroup(software.amazon.awssdk.services.codebuild.model.ListReportsForReportGroupRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.codebuild.paginators.ListReportsForReportGroupPublisher publisher = client.listReportsForReportGroupPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.codebuild.paginators.ListReportsForReportGroupPublisher publisher = client.listReportsForReportGroupPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.codebuild.model.ListReportsForReportGroupResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.codebuild.model.ListReportsForReportGroupResponse response) { //... }; });
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listReportsForReportGroup(software.amazon.awssdk.services.codebuild.model.ListReportsForReportGroupRequest)
operation.- Parameters:
listReportsForReportGroupRequest
-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listReportsForReportGroupPaginator
default ListReportsForReportGroupPublisher listReportsForReportGroupPaginator(Consumer<ListReportsForReportGroupRequest.Builder> listReportsForReportGroupRequest) This is a variant of
listReportsForReportGroup(software.amazon.awssdk.services.codebuild.model.ListReportsForReportGroupRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.codebuild.paginators.ListReportsForReportGroupPublisher publisher = client.listReportsForReportGroupPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.codebuild.paginators.ListReportsForReportGroupPublisher publisher = client.listReportsForReportGroupPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.codebuild.model.ListReportsForReportGroupResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.codebuild.model.ListReportsForReportGroupResponse response) { //... }; });
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listReportsForReportGroup(software.amazon.awssdk.services.codebuild.model.ListReportsForReportGroupRequest)
operation.
This is a convenience which creates an instance of the
ListReportsForReportGroupRequest.Builder
avoiding the need to create one manually viaListReportsForReportGroupRequest.builder()
- Parameters:
listReportsForReportGroupRequest
- AConsumer
that will call methods onListReportsForReportGroupRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listReportsPaginator
This is a variant of
listReports(software.amazon.awssdk.services.codebuild.model.ListReportsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.codebuild.paginators.ListReportsPublisher publisher = client.listReportsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.codebuild.paginators.ListReportsPublisher publisher = client.listReportsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.codebuild.model.ListReportsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.codebuild.model.ListReportsResponse response) { //... }; });
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listReports(software.amazon.awssdk.services.codebuild.model.ListReportsRequest)
operation.- Parameters:
listReportsRequest
-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listReportsPaginator
default ListReportsPublisher listReportsPaginator(Consumer<ListReportsRequest.Builder> listReportsRequest) This is a variant of
listReports(software.amazon.awssdk.services.codebuild.model.ListReportsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.codebuild.paginators.ListReportsPublisher publisher = client.listReportsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.codebuild.paginators.ListReportsPublisher publisher = client.listReportsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.codebuild.model.ListReportsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.codebuild.model.ListReportsResponse response) { //... }; });
Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listReports(software.amazon.awssdk.services.codebuild.model.ListReportsRequest)
operation.
This is a convenience which creates an instance of the
ListReportsRequest.Builder
avoiding the need to create one manually viaListReportsRequest.builder()
- Parameters:
listReportsRequest
- AConsumer
that will call methods onListReportsRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listSourceCredentials
default CompletableFuture<ListSourceCredentialsResponse> listSourceCredentials(ListSourceCredentialsRequest listSourceCredentialsRequest) Returns a list of
SourceCredentialsInfo
objects.- Parameters:
listSourceCredentialsRequest
-- Returns:
- A Java Future containing the result of the ListSourceCredentials operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listSourceCredentials
default CompletableFuture<ListSourceCredentialsResponse> listSourceCredentials(Consumer<ListSourceCredentialsRequest.Builder> listSourceCredentialsRequest) Returns a list of
SourceCredentialsInfo
objects.
This is a convenience which creates an instance of the
ListSourceCredentialsRequest.Builder
avoiding the need to create one manually viaListSourceCredentialsRequest.builder()
- Parameters:
listSourceCredentialsRequest
- AConsumer
that will call methods onListSourceCredentialsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListSourceCredentials operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listSourceCredentials
Returns a list of
SourceCredentialsInfo
objects.- Returns:
- A Java Future containing the result of the ListSourceCredentials operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
putResourcePolicy
default CompletableFuture<PutResourcePolicyResponse> putResourcePolicy(PutResourcePolicyRequest putResourcePolicyRequest) Stores a resource policy for the ARN of a
Project
orReportGroup
object.- Parameters:
putResourcePolicyRequest
-- Returns:
- A Java Future containing the result of the PutResourcePolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
- InvalidInputException The input value that was provided is not valid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
putResourcePolicy
default CompletableFuture<PutResourcePolicyResponse> putResourcePolicy(Consumer<PutResourcePolicyRequest.Builder> putResourcePolicyRequest) Stores a resource policy for the ARN of a
Project
orReportGroup
object.
This is a convenience which creates an instance of the
PutResourcePolicyRequest.Builder
avoiding the need to create one manually viaPutResourcePolicyRequest.builder()
- Parameters:
putResourcePolicyRequest
- AConsumer
that will call methods onPutResourcePolicyRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the PutResourcePolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
- InvalidInputException The input value that was provided is not valid.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
retryBuild
Restarts a build.
- Parameters:
retryBuildRequest
-- Returns:
- A Java Future containing the result of the RetryBuild operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
- AccountLimitExceededException An Amazon Web Services service limit was exceeded for the calling Amazon Web Services account.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
retryBuild
default CompletableFuture<RetryBuildResponse> retryBuild(Consumer<RetryBuildRequest.Builder> retryBuildRequest) Restarts a build.
This is a convenience which creates an instance of the
RetryBuildRequest.Builder
avoiding the need to create one manually viaRetryBuildRequest.builder()
- Parameters:
retryBuildRequest
- AConsumer
that will call methods onRetryBuildRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the RetryBuild operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
- AccountLimitExceededException An Amazon Web Services service limit was exceeded for the calling Amazon Web Services account.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
retryBuildBatch
default CompletableFuture<RetryBuildBatchResponse> retryBuildBatch(RetryBuildBatchRequest retryBuildBatchRequest) Restarts a failed batch build. Only batch builds that have failed can be retried.
- Parameters:
retryBuildBatchRequest
-- Returns:
- A Java Future containing the result of the RetryBuildBatch operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
retryBuildBatch
default CompletableFuture<RetryBuildBatchResponse> retryBuildBatch(Consumer<RetryBuildBatchRequest.Builder> retryBuildBatchRequest) Restarts a failed batch build. Only batch builds that have failed can be retried.
This is a convenience which creates an instance of the
RetryBuildBatchRequest.Builder
avoiding the need to create one manually viaRetryBuildBatchRequest.builder()
- Parameters:
retryBuildBatchRequest
- AConsumer
that will call methods onRetryBuildBatchRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the RetryBuildBatch operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
startBuild
Starts running a build with the settings defined in the project. These setting include: how to run a build, where to get the source code, which build environment to use, which build commands to run, and where to store the build output.
You can also start a build run by overriding some of the build settings in the project. The overrides only apply for that specific start build request. The settings in the project are unaltered.
- Parameters:
startBuildRequest
-- Returns:
- A Java Future containing the result of the StartBuild operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
- AccountLimitExceededException An Amazon Web Services service limit was exceeded for the calling Amazon Web Services account.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
startBuild
default CompletableFuture<StartBuildResponse> startBuild(Consumer<StartBuildRequest.Builder> startBuildRequest) Starts running a build with the settings defined in the project. These setting include: how to run a build, where to get the source code, which build environment to use, which build commands to run, and where to store the build output.
You can also start a build run by overriding some of the build settings in the project. The overrides only apply for that specific start build request. The settings in the project are unaltered.
This is a convenience which creates an instance of the
StartBuildRequest.Builder
avoiding the need to create one manually viaStartBuildRequest.builder()
- Parameters:
startBuildRequest
- AConsumer
that will call methods onStartBuildRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the StartBuild operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
- AccountLimitExceededException An Amazon Web Services service limit was exceeded for the calling Amazon Web Services account.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
startBuildBatch
default CompletableFuture<StartBuildBatchResponse> startBuildBatch(StartBuildBatchRequest startBuildBatchRequest) Starts a batch build for a project.
- Parameters:
startBuildBatchRequest
-- Returns:
- A Java Future containing the result of the StartBuildBatch operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
startBuildBatch
default CompletableFuture<StartBuildBatchResponse> startBuildBatch(Consumer<StartBuildBatchRequest.Builder> startBuildBatchRequest) Starts a batch build for a project.
This is a convenience which creates an instance of the
StartBuildBatchRequest.Builder
avoiding the need to create one manually viaStartBuildBatchRequest.builder()
- Parameters:
startBuildBatchRequest
- AConsumer
that will call methods onStartBuildBatchRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the StartBuildBatch operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
stopBuild
Attempts to stop running a build.
- Parameters:
stopBuildRequest
-- Returns:
- A Java Future containing the result of the StopBuild operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
stopBuild
default CompletableFuture<StopBuildResponse> stopBuild(Consumer<StopBuildRequest.Builder> stopBuildRequest) Attempts to stop running a build.
This is a convenience which creates an instance of the
StopBuildRequest.Builder
avoiding the need to create one manually viaStopBuildRequest.builder()
- Parameters:
stopBuildRequest
- AConsumer
that will call methods onStopBuildRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the StopBuild operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
stopBuildBatch
default CompletableFuture<StopBuildBatchResponse> stopBuildBatch(StopBuildBatchRequest stopBuildBatchRequest) Stops a running batch build.
- Parameters:
stopBuildBatchRequest
-- Returns:
- A Java Future containing the result of the StopBuildBatch operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
stopBuildBatch
default CompletableFuture<StopBuildBatchResponse> stopBuildBatch(Consumer<StopBuildBatchRequest.Builder> stopBuildBatchRequest) Stops a running batch build.
This is a convenience which creates an instance of the
StopBuildBatchRequest.Builder
avoiding the need to create one manually viaStopBuildBatchRequest.builder()
- Parameters:
stopBuildBatchRequest
- AConsumer
that will call methods onStopBuildBatchRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the StopBuildBatch operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateFleet
Updates a compute fleet.
- Parameters:
updateFleetRequest
-- Returns:
- A Java Future containing the result of the UpdateFleet operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
- AccountLimitExceededException An Amazon Web Services service limit was exceeded for the calling Amazon Web Services account.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateFleet
default CompletableFuture<UpdateFleetResponse> updateFleet(Consumer<UpdateFleetRequest.Builder> updateFleetRequest) Updates a compute fleet.
This is a convenience which creates an instance of the
UpdateFleetRequest.Builder
avoiding the need to create one manually viaUpdateFleetRequest.builder()
- Parameters:
updateFleetRequest
- AConsumer
that will call methods onUpdateFleetRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the UpdateFleet operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
- AccountLimitExceededException An Amazon Web Services service limit was exceeded for the calling Amazon Web Services account.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateProject
default CompletableFuture<UpdateProjectResponse> updateProject(UpdateProjectRequest updateProjectRequest) Changes the settings of a build project.
- Parameters:
updateProjectRequest
-- Returns:
- A Java Future containing the result of the UpdateProject operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateProject
default CompletableFuture<UpdateProjectResponse> updateProject(Consumer<UpdateProjectRequest.Builder> updateProjectRequest) Changes the settings of a build project.
This is a convenience which creates an instance of the
UpdateProjectRequest.Builder
avoiding the need to create one manually viaUpdateProjectRequest.builder()
- Parameters:
updateProjectRequest
- AConsumer
that will call methods onUpdateProjectRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the UpdateProject operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateProjectVisibility
default CompletableFuture<UpdateProjectVisibilityResponse> updateProjectVisibility(UpdateProjectVisibilityRequest updateProjectVisibilityRequest) Changes the public visibility for a project. The project's build results, logs, and artifacts are available to the general public. For more information, see Public build projects in the CodeBuild User Guide.
The following should be kept in mind when making your projects public:
-
All of a project's build results, logs, and artifacts, including builds that were run when the project was private, are available to the general public.
-
All build logs and artifacts are available to the public. Environment variables, source code, and other sensitive information may have been output to the build logs and artifacts. You must be careful about what information is output to the build logs. Some best practice are:
-
Do not store sensitive values in environment variables. We recommend that you use an Amazon EC2 Systems Manager Parameter Store or Secrets Manager to store sensitive values.
-
Follow Best practices for using webhooks in the CodeBuild User Guide to limit which entities can trigger a build, and do not store the buildspec in the project itself, to ensure that your webhooks are as secure as possible.
-
-
A malicious user can use public builds to distribute malicious artifacts. We recommend that you review all pull requests to verify that the pull request is a legitimate change. We also recommend that you validate any artifacts with their checksums to make sure that the correct artifacts are being downloaded.
- Parameters:
updateProjectVisibilityRequest
-- Returns:
- A Java Future containing the result of the UpdateProjectVisibility operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
-
updateProjectVisibility
default CompletableFuture<UpdateProjectVisibilityResponse> updateProjectVisibility(Consumer<UpdateProjectVisibilityRequest.Builder> updateProjectVisibilityRequest) Changes the public visibility for a project. The project's build results, logs, and artifacts are available to the general public. For more information, see Public build projects in the CodeBuild User Guide.
The following should be kept in mind when making your projects public:
-
All of a project's build results, logs, and artifacts, including builds that were run when the project was private, are available to the general public.
-
All build logs and artifacts are available to the public. Environment variables, source code, and other sensitive information may have been output to the build logs and artifacts. You must be careful about what information is output to the build logs. Some best practice are:
-
Do not store sensitive values in environment variables. We recommend that you use an Amazon EC2 Systems Manager Parameter Store or Secrets Manager to store sensitive values.
-
Follow Best practices for using webhooks in the CodeBuild User Guide to limit which entities can trigger a build, and do not store the buildspec in the project itself, to ensure that your webhooks are as secure as possible.
-
-
A malicious user can use public builds to distribute malicious artifacts. We recommend that you review all pull requests to verify that the pull request is a legitimate change. We also recommend that you validate any artifacts with their checksums to make sure that the correct artifacts are being downloaded.
This is a convenience which creates an instance of the
UpdateProjectVisibilityRequest.Builder
avoiding the need to create one manually viaUpdateProjectVisibilityRequest.builder()
- Parameters:
updateProjectVisibilityRequest
- AConsumer
that will call methods onUpdateProjectVisibilityRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the UpdateProjectVisibility operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
-
updateReportGroup
default CompletableFuture<UpdateReportGroupResponse> updateReportGroup(UpdateReportGroupRequest updateReportGroupRequest) Updates a report group.
- Parameters:
updateReportGroupRequest
-- Returns:
- A Java Future containing the result of the UpdateReportGroup operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateReportGroup
default CompletableFuture<UpdateReportGroupResponse> updateReportGroup(Consumer<UpdateReportGroupRequest.Builder> updateReportGroupRequest) Updates a report group.
This is a convenience which creates an instance of the
UpdateReportGroupRequest.Builder
avoiding the need to create one manually viaUpdateReportGroupRequest.builder()
- Parameters:
updateReportGroupRequest
- AConsumer
that will call methods onUpdateReportGroupRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the UpdateReportGroup operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateWebhook
default CompletableFuture<UpdateWebhookResponse> updateWebhook(UpdateWebhookRequest updateWebhookRequest) Updates the webhook associated with an CodeBuild build project.
If you use Bitbucket for your repository,
rotateSecret
is ignored.- Parameters:
updateWebhookRequest
-- Returns:
- A Java Future containing the result of the UpdateWebhook operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
- OAuthProviderException There was a problem with the underlying OAuth provider.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
updateWebhook
default CompletableFuture<UpdateWebhookResponse> updateWebhook(Consumer<UpdateWebhookRequest.Builder> updateWebhookRequest) Updates the webhook associated with an CodeBuild build project.
If you use Bitbucket for your repository,
rotateSecret
is ignored.
This is a convenience which creates an instance of the
UpdateWebhookRequest.Builder
avoiding the need to create one manually viaUpdateWebhookRequest.builder()
- Parameters:
updateWebhookRequest
- AConsumer
that will call methods onUpdateWebhookRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the UpdateWebhook operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()
to retrieve the underlying exception.- InvalidInputException The input value that was provided is not valid.
- ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
- OAuthProviderException There was a problem with the underlying OAuth provider.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
serviceClientConfiguration
Description copied from interface:SdkClient
The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfiguration
in interfaceAwsClient
- Specified by:
serviceClientConfiguration
in interfaceSdkClient
- Returns:
- SdkServiceClientConfiguration
-
create
Create aCodeBuildAsyncClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
. -
builder
Create a builder that can be used to configure and create aCodeBuildAsyncClient
.
-