Interface CodeBuildAsyncClient
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
builder()
method.The asynchronous client performs non-blocking I/O when configured with any SdkAsyncHttpClient
supported in the SDK. However, full non-blocking is not guaranteed as the async client may perform blocking calls in
some cases such as credentials retrieval and endpoint discovery as part of the async API call.
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
FieldsModifier and TypeFieldDescriptionstatic final StringValue 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 CodeBuildAsyncClientBuilderbuilder()Create a builder that can be used to configure and create aCodeBuildAsyncClient.static CodeBuildAsyncClientcreate()Create aCodeBuildAsyncClientwith the region loaded from theDefaultAwsRegionProviderChainand 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 DescribeCodeCoveragesPublisherdescribeCodeCoveragesPaginator(Consumer<DescribeCodeCoveragesRequest.Builder> describeCodeCoveragesRequest) This is a variant ofdescribeCodeCoverages(software.amazon.awssdk.services.codebuild.model.DescribeCodeCoveragesRequest)operation.default DescribeCodeCoveragesPublisherdescribeCodeCoveragesPaginator(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 DescribeTestCasesPublisherdescribeTestCasesPaginator(Consumer<DescribeTestCasesRequest.Builder> describeTestCasesRequest) This is a variant ofdescribeTestCases(software.amazon.awssdk.services.codebuild.model.DescribeTestCasesRequest)operation.default DescribeTestCasesPublisherdescribeTestCasesPaginator(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, GitLab, GitLab Self Managed, 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, GitLab, GitLab Self Managed, 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 ListBuildBatchesPublisherlistBuildBatchesPaginator(Consumer<ListBuildBatchesRequest.Builder> listBuildBatchesRequest) This is a variant oflistBuildBatches(software.amazon.awssdk.services.codebuild.model.ListBuildBatchesRequest)operation.default ListBuildBatchesPublisherlistBuildBatchesPaginator(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 ListBuildsForProjectPublisherlistBuildsForProjectPaginator(Consumer<ListBuildsForProjectRequest.Builder> listBuildsForProjectRequest) This is a variant oflistBuildsForProject(software.amazon.awssdk.services.codebuild.model.ListBuildsForProjectRequest)operation.default ListBuildsForProjectPublisherlistBuildsForProjectPaginator(ListBuildsForProjectRequest listBuildsForProjectRequest) This is a variant oflistBuildsForProject(software.amazon.awssdk.services.codebuild.model.ListBuildsForProjectRequest)operation.default ListBuildsPublisherThis is a variant oflistBuilds(software.amazon.awssdk.services.codebuild.model.ListBuildsRequest)operation.default ListBuildsPublisherlistBuildsPaginator(Consumer<ListBuildsRequest.Builder> listBuildsRequest) This is a variant oflistBuilds(software.amazon.awssdk.services.codebuild.model.ListBuildsRequest)operation.default ListBuildsPublisherlistBuildsPaginator(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 ListFleetsPublisherlistFleetsPaginator(Consumer<ListFleetsRequest.Builder> listFleetsRequest) This is a variant oflistFleets(software.amazon.awssdk.services.codebuild.model.ListFleetsRequest)operation.default ListFleetsPublisherlistFleetsPaginator(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 ListProjectsPublisherThis is a variant oflistProjects(software.amazon.awssdk.services.codebuild.model.ListProjectsRequest)operation.default ListProjectsPublisherlistProjectsPaginator(Consumer<ListProjectsRequest.Builder> listProjectsRequest) This is a variant oflistProjects(software.amazon.awssdk.services.codebuild.model.ListProjectsRequest)operation.default ListProjectsPublisherlistProjectsPaginator(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 ListReportGroupsPublisherlistReportGroupsPaginator(Consumer<ListReportGroupsRequest.Builder> listReportGroupsRequest) This is a variant oflistReportGroups(software.amazon.awssdk.services.codebuild.model.ListReportGroupsRequest)operation.default ListReportGroupsPublisherlistReportGroupsPaginator(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 ListReportsPublisherlistReportsPaginator(Consumer<ListReportsRequest.Builder> listReportsRequest) This is a variant oflistReports(software.amazon.awssdk.services.codebuild.model.ListReportsRequest)operation.default ListReportsPublisherlistReportsPaginator(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 ListSharedProjectsPublisherlistSharedProjectsPaginator(Consumer<ListSharedProjectsRequest.Builder> listSharedProjectsRequest) This is a variant oflistSharedProjects(software.amazon.awssdk.services.codebuild.model.ListSharedProjectsRequest)operation.default ListSharedProjectsPublisherlistSharedProjectsPaginator(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 ListSharedReportGroupsPublisherlistSharedReportGroupsPaginator(Consumer<ListSharedReportGroupsRequest.Builder> listSharedReportGroupsRequest) This is a variant oflistSharedReportGroups(software.amazon.awssdk.services.codebuild.model.ListSharedReportGroupsRequest)operation.default ListSharedReportGroupsPublisherlistSharedReportGroupsPaginator(ListSharedReportGroupsRequest listSharedReportGroupsRequest) This is a variant oflistSharedReportGroups(software.amazon.awssdk.services.codebuild.model.ListSharedReportGroupsRequest)operation.Returns a list ofSourceCredentialsInfoobjects.listSourceCredentials(Consumer<ListSourceCredentialsRequest.Builder> listSourceCredentialsRequest) Returns a list ofSourceCredentialsInfoobjects.listSourceCredentials(ListSourceCredentialsRequest listSourceCredentialsRequest) Returns a list ofSourceCredentialsInfoobjects.putResourcePolicy(Consumer<PutResourcePolicyRequest.Builder> putResourcePolicyRequest) Stores a resource policy for the ARN of aProjectorReportGroupobject.putResourcePolicy(PutResourcePolicyRequest putResourcePolicyRequest) Stores a resource policy for the ARN of aProjectorReportGroupobject.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
closeMethods 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.Builderavoiding the need to create one manually viaBatchDeleteBuildsRequest.builder()- Parameters:
batchDeleteBuildsRequest- AConsumerthat will call methods onBatchDeleteBuildsRequest.Builderto 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.Builderavoiding the need to create one manually viaBatchGetBuildBatchesRequest.builder()- Parameters:
batchGetBuildBatchesRequest- AConsumerthat will call methods onBatchGetBuildBatchesRequest.Builderto 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.Builderavoiding the need to create one manually viaBatchGetBuildsRequest.builder()- Parameters:
batchGetBuildsRequest- AConsumerthat will call methods onBatchGetBuildsRequest.Builderto 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.Builderavoiding the need to create one manually viaBatchGetFleetsRequest.builder()- Parameters:
batchGetFleetsRequest- AConsumerthat will call methods onBatchGetFleetsRequest.Builderto 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.Builderavoiding the need to create one manually viaBatchGetProjectsRequest.builder()- Parameters:
batchGetProjectsRequest- AConsumerthat will call methods onBatchGetProjectsRequest.Builderto 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.Builderavoiding the need to create one manually viaBatchGetReportGroupsRequest.builder()- Parameters:
batchGetReportGroupsRequest- AConsumerthat will call methods onBatchGetReportGroupsRequest.Builderto 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.Builderavoiding the need to create one manually viaBatchGetReportsRequest.builder()- Parameters:
batchGetReportsRequest- AConsumerthat will call methods onBatchGetReportsRequest.Builderto 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.Builderavoiding the need to create one manually viaCreateFleetRequest.builder()- Parameters:
createFleetRequest- AConsumerthat will call methods onCreateFleetRequest.Builderto 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.Builderavoiding the need to create one manually viaCreateProjectRequest.builder()- Parameters:
createProjectRequest- AConsumerthat will call methods onCreateProjectRequest.Builderto 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.Builderavoiding the need to create one manually viaCreateReportGroupRequest.builder()- Parameters:
createReportGroupRequest- AConsumerthat will call methods onCreateReportGroupRequest.Builderto 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.Builderavoiding the need to create one manually viaCreateWebhookRequest.builder()- Parameters:
createWebhookRequest- AConsumerthat will call methods onCreateWebhookRequest.Builderto 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.Builderavoiding the need to create one manually viaDeleteBuildBatchRequest.builder()- Parameters:
deleteBuildBatchRequest- AConsumerthat will call methods onDeleteBuildBatchRequest.Builderto 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.Builderavoiding the need to create one manually viaDeleteFleetRequest.builder()- Parameters:
deleteFleetRequest- AConsumerthat will call methods onDeleteFleetRequest.Builderto 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.Builderavoiding the need to create one manually viaDeleteProjectRequest.builder()- Parameters:
deleteProjectRequest- AConsumerthat will call methods onDeleteProjectRequest.Builderto 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.Builderavoiding the need to create one manually viaDeleteReportRequest.builder()- Parameters:
deleteReportRequest- AConsumerthat will call methods onDeleteReportRequest.Builderto 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.Builderavoiding the need to create one manually viaDeleteReportGroupRequest.builder()- Parameters:
deleteReportGroupRequest- AConsumerthat will call methods onDeleteReportGroupRequest.Builderto 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.Builderavoiding the need to create one manually viaDeleteResourcePolicyRequest.builder()- Parameters:
deleteResourcePolicyRequest- AConsumerthat will call methods onDeleteResourcePolicyRequest.Builderto 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.Builderavoiding the need to create one manually viaDeleteSourceCredentialsRequest.builder()- Parameters:
deleteSourceCredentialsRequest- AConsumerthat will call methods onDeleteSourceCredentialsRequest.Builderto 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.Builderavoiding the need to create one manually viaDeleteWebhookRequest.builder()- Parameters:
deleteWebhookRequest- AConsumerthat will call methods onDeleteWebhookRequest.Builderto 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.Builderavoiding the need to create one manually viaDescribeCodeCoveragesRequest.builder()- Parameters:
describeCodeCoveragesRequest- AConsumerthat will call methods onDescribeCodeCoveragesRequest.Builderto 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 newSubscriptioni.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 method
2) Using a custom subscribersoftware.amazon.awssdk.services.codebuild.paginators.DescribeCodeCoveragesPublisher publisher = client.describeCodeCoveragesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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 newSubscriptioni.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 method
2) Using a custom subscribersoftware.amazon.awssdk.services.codebuild.paginators.DescribeCodeCoveragesPublisher publisher = client.describeCodeCoveragesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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.Builderavoiding the need to create one manually viaDescribeCodeCoveragesRequest.builder()- Parameters:
describeCodeCoveragesRequest- AConsumerthat will call methods onDescribeCodeCoveragesRequest.Builderto 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.Builderavoiding the need to create one manually viaDescribeTestCasesRequest.builder()- Parameters:
describeTestCasesRequest- AConsumerthat will call methods onDescribeTestCasesRequest.Builderto 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 newSubscriptioni.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 method
2) Using a custom subscribersoftware.amazon.awssdk.services.codebuild.paginators.DescribeTestCasesPublisher publisher = client.describeTestCasesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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 newSubscriptioni.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 method
2) Using a custom subscribersoftware.amazon.awssdk.services.codebuild.paginators.DescribeTestCasesPublisher publisher = client.describeTestCasesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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.Builderavoiding the need to create one manually viaDescribeTestCasesRequest.builder()- Parameters:
describeTestCasesRequest- AConsumerthat will call methods onDescribeTestCasesRequest.Builderto 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.Builderavoiding the need to create one manually viaGetReportGroupTrendRequest.builder()- Parameters:
getReportGroupTrendRequest- AConsumerthat will call methods onGetReportGroupTrendRequest.Builderto 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.Builderavoiding the need to create one manually viaGetResourcePolicyRequest.builder()- Parameters:
getResourcePolicyRequest- AConsumerthat will call methods onGetResourcePolicyRequest.Builderto 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, GitLab, GitLab Self Managed, 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, GitLab, GitLab Self Managed, or Bitbucket repository.
This is a convenience which creates an instance of the
ImportSourceCredentialsRequest.Builderavoiding the need to create one manually viaImportSourceCredentialsRequest.builder()- Parameters:
importSourceCredentialsRequest- AConsumerthat will call methods onImportSourceCredentialsRequest.Builderto 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.Builderavoiding the need to create one manually viaInvalidateProjectCacheRequest.builder()- Parameters:
invalidateProjectCacheRequest- AConsumerthat will call methods onInvalidateProjectCacheRequest.Builderto 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.Builderavoiding the need to create one manually viaListBuildBatchesRequest.builder()- Parameters:
listBuildBatchesRequest- AConsumerthat will call methods onListBuildBatchesRequest.Builderto 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.Builderavoiding the need to create one manually viaListBuildBatchesForProjectRequest.builder()- Parameters:
listBuildBatchesForProjectRequest- AConsumerthat will call methods onListBuildBatchesForProjectRequest.Builderto 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 newSubscriptioni.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 method
2) Using a custom subscribersoftware.amazon.awssdk.services.codebuild.paginators.ListBuildBatchesForProjectPublisher publisher = client.listBuildBatchesForProjectPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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 newSubscriptioni.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 method
2) Using a custom subscribersoftware.amazon.awssdk.services.codebuild.paginators.ListBuildBatchesForProjectPublisher publisher = client.listBuildBatchesForProjectPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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.Builderavoiding the need to create one manually viaListBuildBatchesForProjectRequest.builder()- Parameters:
listBuildBatchesForProjectRequest- AConsumerthat will call methods onListBuildBatchesForProjectRequest.Builderto 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 newSubscriptioni.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 method
2) Using a custom subscribersoftware.amazon.awssdk.services.codebuild.paginators.ListBuildBatchesPublisher publisher = client.listBuildBatchesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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 newSubscriptioni.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 method
2) Using a custom subscribersoftware.amazon.awssdk.services.codebuild.paginators.ListBuildBatchesPublisher publisher = client.listBuildBatchesPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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.Builderavoiding the need to create one manually viaListBuildBatchesRequest.builder()- Parameters:
listBuildBatchesRequest- AConsumerthat will call methods onListBuildBatchesRequest.Builderto 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.Builderavoiding the need to create one manually viaListBuildsRequest.builder()- Parameters:
listBuildsRequest- AConsumerthat will call methods onListBuildsRequest.Builderto 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.Builderavoiding the need to create one manually viaListBuildsForProjectRequest.builder()- Parameters:
listBuildsForProjectRequest- AConsumerthat will call methods onListBuildsForProjectRequest.Builderto 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 newSubscriptioni.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 method
2) Using a custom subscribersoftware.amazon.awssdk.services.codebuild.paginators.ListBuildsForProjectPublisher publisher = client.listBuildsForProjectPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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 newSubscriptioni.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 method
2) Using a custom subscribersoftware.amazon.awssdk.services.codebuild.paginators.ListBuildsForProjectPublisher publisher = client.listBuildsForProjectPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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.Builderavoiding the need to create one manually viaListBuildsForProjectRequest.builder()- Parameters:
listBuildsForProjectRequest- AConsumerthat will call methods onListBuildsForProjectRequest.Builderto 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 newSubscriptioni.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 method
2) Using a custom subscribersoftware.amazon.awssdk.services.codebuild.paginators.ListBuildsPublisher publisher = client.listBuildsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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 newSubscriptioni.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 method
2) Using a custom subscribersoftware.amazon.awssdk.services.codebuild.paginators.ListBuildsPublisher publisher = client.listBuildsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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 newSubscriptioni.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 method
2) Using a custom subscribersoftware.amazon.awssdk.services.codebuild.paginators.ListBuildsPublisher publisher = client.listBuildsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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.Builderavoiding the need to create one manually viaListBuildsRequest.builder()- Parameters:
listBuildsRequest- AConsumerthat will call methods onListBuildsRequest.Builderto 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.Builderavoiding the need to create one manually viaListCuratedEnvironmentImagesRequest.builder()- Parameters:
listCuratedEnvironmentImagesRequest- AConsumerthat will call methods onListCuratedEnvironmentImagesRequest.Builderto 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.Builderavoiding the need to create one manually viaListFleetsRequest.builder()- Parameters:
listFleetsRequest- AConsumerthat will call methods onListFleetsRequest.Builderto 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 newSubscriptioni.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 method
2) Using a custom subscribersoftware.amazon.awssdk.services.codebuild.paginators.ListFleetsPublisher publisher = client.listFleetsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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 newSubscriptioni.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 method
2) Using a custom subscribersoftware.amazon.awssdk.services.codebuild.paginators.ListFleetsPublisher publisher = client.listFleetsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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.Builderavoiding the need to create one manually viaListFleetsRequest.builder()- Parameters:
listFleetsRequest- AConsumerthat will call methods onListFleetsRequest.Builderto 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.Builderavoiding the need to create one manually viaListProjectsRequest.builder()- Parameters:
listProjectsRequest- AConsumerthat will call methods onListProjectsRequest.Builderto 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 newSubscriptioni.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 method
2) Using a custom subscribersoftware.amazon.awssdk.services.codebuild.paginators.ListProjectsPublisher publisher = client.listProjectsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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 newSubscriptioni.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 method
2) Using a custom subscribersoftware.amazon.awssdk.services.codebuild.paginators.ListProjectsPublisher publisher = client.listProjectsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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 newSubscriptioni.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 method
2) Using a custom subscribersoftware.amazon.awssdk.services.codebuild.paginators.ListProjectsPublisher publisher = client.listProjectsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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.Builderavoiding the need to create one manually viaListProjectsRequest.builder()- Parameters:
listProjectsRequest- AConsumerthat will call methods onListProjectsRequest.Builderto 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.Builderavoiding the need to create one manually viaListReportGroupsRequest.builder()- Parameters:
listReportGroupsRequest- AConsumerthat will call methods onListReportGroupsRequest.Builderto 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 newSubscriptioni.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 method
2) Using a custom subscribersoftware.amazon.awssdk.services.codebuild.paginators.ListReportGroupsPublisher publisher = client.listReportGroupsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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 newSubscriptioni.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 method
2) Using a custom subscribersoftware.amazon.awssdk.services.codebuild.paginators.ListReportGroupsPublisher publisher = client.listReportGroupsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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.Builderavoiding the need to create one manually viaListReportGroupsRequest.builder()- Parameters:
listReportGroupsRequest- AConsumerthat will call methods onListReportGroupsRequest.Builderto 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.Builderavoiding the need to create one manually viaListReportsRequest.builder()- Parameters:
listReportsRequest- AConsumerthat will call methods onListReportsRequest.Builderto 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.Builderavoiding the need to create one manually viaListReportsForReportGroupRequest.builder()- Parameters:
listReportsForReportGroupRequest- AConsumerthat will call methods onListReportsForReportGroupRequest.Builderto 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 newSubscriptioni.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 method
2) Using a custom subscribersoftware.amazon.awssdk.services.codebuild.paginators.ListReportsForReportGroupPublisher publisher = client.listReportsForReportGroupPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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 newSubscriptioni.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 method
2) Using a custom subscribersoftware.amazon.awssdk.services.codebuild.paginators.ListReportsForReportGroupPublisher publisher = client.listReportsForReportGroupPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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.Builderavoiding the need to create one manually viaListReportsForReportGroupRequest.builder()- Parameters:
listReportsForReportGroupRequest- AConsumerthat will call methods onListReportsForReportGroupRequest.Builderto 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 newSubscriptioni.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 method
2) Using a custom subscribersoftware.amazon.awssdk.services.codebuild.paginators.ListReportsPublisher publisher = client.listReportsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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 newSubscriptioni.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 method
2) Using a custom subscribersoftware.amazon.awssdk.services.codebuild.paginators.ListReportsPublisher publisher = client.listReportsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.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.Builderavoiding the need to create one manually viaListReportsRequest.builder()- Parameters:
listReportsRequest- AConsumerthat will call methods onListReportsRequest.Builderto 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
SourceCredentialsInfoobjects.- 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
SourceCredentialsInfoobjects.
This is a convenience which creates an instance of the
ListSourceCredentialsRequest.Builderavoiding the need to create one manually viaListSourceCredentialsRequest.builder()- Parameters:
listSourceCredentialsRequest- AConsumerthat will call methods onListSourceCredentialsRequest.Builderto 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
SourceCredentialsInfoobjects.- 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
ProjectorReportGroupobject.- 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
ProjectorReportGroupobject.
This is a convenience which creates an instance of the
PutResourcePolicyRequest.Builderavoiding the need to create one manually viaPutResourcePolicyRequest.builder()- Parameters:
putResourcePolicyRequest- AConsumerthat will call methods onPutResourcePolicyRequest.Builderto 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.Builderavoiding the need to create one manually viaRetryBuildRequest.builder()- Parameters:
retryBuildRequest- AConsumerthat will call methods onRetryBuildRequest.Builderto 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.Builderavoiding the need to create one manually viaRetryBuildBatchRequest.builder()- Parameters:
retryBuildBatchRequest- AConsumerthat will call methods onRetryBuildBatchRequest.Builderto 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.Builderavoiding the need to create one manually viaStartBuildRequest.builder()- Parameters:
startBuildRequest- AConsumerthat will call methods onStartBuildRequest.Builderto 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.Builderavoiding the need to create one manually viaStartBuildBatchRequest.builder()- Parameters:
startBuildBatchRequest- AConsumerthat will call methods onStartBuildBatchRequest.Builderto 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.Builderavoiding the need to create one manually viaStopBuildRequest.builder()- Parameters:
stopBuildRequest- AConsumerthat will call methods onStopBuildRequest.Builderto 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.Builderavoiding the need to create one manually viaStopBuildBatchRequest.builder()- Parameters:
stopBuildBatchRequest- AConsumerthat will call methods onStopBuildBatchRequest.Builderto 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.Builderavoiding the need to create one manually viaUpdateFleetRequest.builder()- Parameters:
updateFleetRequest- AConsumerthat will call methods onUpdateFleetRequest.Builderto 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.Builderavoiding the need to create one manually viaUpdateProjectRequest.builder()- Parameters:
updateProjectRequest- AConsumerthat will call methods onUpdateProjectRequest.Builderto 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.Builderavoiding the need to create one manually viaUpdateProjectVisibilityRequest.builder()- Parameters:
updateProjectVisibilityRequest- AConsumerthat will call methods onUpdateProjectVisibilityRequest.Builderto 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.Builderavoiding the need to create one manually viaUpdateReportGroupRequest.builder()- Parameters:
updateReportGroupRequest- AConsumerthat will call methods onUpdateReportGroupRequest.Builderto 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,
rotateSecretis 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,
rotateSecretis ignored.
This is a convenience which creates an instance of the
UpdateWebhookRequest.Builderavoiding the need to create one manually viaUpdateWebhookRequest.builder()- Parameters:
updateWebhookRequest- AConsumerthat will call methods onUpdateWebhookRequest.Builderto 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:SdkClientThe SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient- Returns:
- SdkServiceClientConfiguration
-
create
Create aCodeBuildAsyncClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aCodeBuildAsyncClient.
-