Interface CodeBuildAsyncClient

All Superinterfaces:
AutoCloseable, AwsClient, SdkAutoCloseable, SdkClient

@Generated("software.amazon.awssdk:codegen") @ThreadSafe public interface CodeBuildAsyncClient extends AwsClient
Service client for accessing AWS CodeBuild asynchronously. This can be created using the static builder() method.The asynchronous client performs non-blocking I/O when configured with any
invalid reference
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

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 Details

  • 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 invoke Throwable.getCause() to retrieve the underlying exception.
      • InvalidInputException The input value that was provided is not valid.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • batchDeleteBuilds

      default CompletableFuture<BatchDeleteBuildsResponse> batchDeleteBuilds(Consumer<BatchDeleteBuildsRequest.Builder> batchDeleteBuildsRequest)

      Deletes one or more builds.


      This is a convenience which creates an instance of the BatchDeleteBuildsRequest.Builder avoiding the need to create one manually via BatchDeleteBuildsRequest.builder()

      Parameters:
      batchDeleteBuildsRequest - A Consumer that will call methods on BatchDeleteBuildsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the BatchDeleteBuilds operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.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 invoke Throwable.getCause() to retrieve the underlying exception.
      • InvalidInputException The input value that was provided is not valid.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • batchGetBuildBatches

      default CompletableFuture<BatchGetBuildBatchesResponse> batchGetBuildBatches(Consumer<BatchGetBuildBatchesRequest.Builder> batchGetBuildBatchesRequest)

      Retrieves information about one or more batch builds.


      This is a convenience which creates an instance of the BatchGetBuildBatchesRequest.Builder avoiding the need to create one manually via BatchGetBuildBatchesRequest.builder()

      Parameters:
      batchGetBuildBatchesRequest - A Consumer that will call methods on BatchGetBuildBatchesRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the BatchGetBuildBatches operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.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 invoke Throwable.getCause() to retrieve the underlying exception.
      • InvalidInputException The input value that was provided is not valid.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • batchGetBuilds

      default CompletableFuture<BatchGetBuildsResponse> batchGetBuilds(Consumer<BatchGetBuildsRequest.Builder> batchGetBuildsRequest)

      Gets information about one or more builds.


      This is a convenience which creates an instance of the BatchGetBuildsRequest.Builder avoiding the need to create one manually via BatchGetBuildsRequest.builder()

      Parameters:
      batchGetBuildsRequest - A Consumer that will call methods on BatchGetBuildsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the BatchGetBuilds operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.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 invoke Throwable.getCause() to retrieve the underlying exception.
      • InvalidInputException The input value that was provided is not valid.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • batchGetFleets

      default CompletableFuture<BatchGetFleetsResponse> batchGetFleets(Consumer<BatchGetFleetsRequest.Builder> batchGetFleetsRequest)

      Gets information about one or more compute fleets.


      This is a convenience which creates an instance of the BatchGetFleetsRequest.Builder avoiding the need to create one manually via BatchGetFleetsRequest.builder()

      Parameters:
      batchGetFleetsRequest - A Consumer that will call methods on BatchGetFleetsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the BatchGetFleets operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.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 invoke Throwable.getCause() to retrieve the underlying exception.
      • InvalidInputException The input value that was provided is not valid.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • batchGetProjects

      default CompletableFuture<BatchGetProjectsResponse> batchGetProjects(Consumer<BatchGetProjectsRequest.Builder> batchGetProjectsRequest)

      Gets information about one or more build projects.


      This is a convenience which creates an instance of the BatchGetProjectsRequest.Builder avoiding the need to create one manually via BatchGetProjectsRequest.builder()

      Parameters:
      batchGetProjectsRequest - A Consumer that will call methods on BatchGetProjectsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the BatchGetProjects operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.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 invoke Throwable.getCause() to retrieve the underlying exception.
      • InvalidInputException The input value that was provided is not valid.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • batchGetReportGroups

      default CompletableFuture<BatchGetReportGroupsResponse> batchGetReportGroups(Consumer<BatchGetReportGroupsRequest.Builder> batchGetReportGroupsRequest)

      Returns an array of report groups.


      This is a convenience which creates an instance of the BatchGetReportGroupsRequest.Builder avoiding the need to create one manually via BatchGetReportGroupsRequest.builder()

      Parameters:
      batchGetReportGroupsRequest - A Consumer that will call methods on BatchGetReportGroupsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the BatchGetReportGroups operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.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 invoke Throwable.getCause() to retrieve the underlying exception.
      • InvalidInputException The input value that was provided is not valid.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • batchGetReports

      default CompletableFuture<BatchGetReportsResponse> batchGetReports(Consumer<BatchGetReportsRequest.Builder> batchGetReportsRequest)

      Returns an array of reports.


      This is a convenience which creates an instance of the BatchGetReportsRequest.Builder avoiding the need to create one manually via BatchGetReportsRequest.builder()

      Parameters:
      batchGetReportsRequest - A Consumer that will call methods on BatchGetReportsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the BatchGetReports operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.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

      default CompletableFuture<CreateFleetResponse> createFleet(CreateFleetRequest createFleetRequest)

      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 invoke Throwable.getCause() to retrieve the underlying exception.
      • InvalidInputException The input value that was provided is not valid.
      • ResourceAlreadyExistsException The specified Amazon Web Services resource cannot be created, because an Amazon Web Services resource with the same settings already exists.
      • AccountLimitExceededException An Amazon Web Services service limit was exceeded for the calling Amazon Web Services account.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createFleet

      default CompletableFuture<CreateFleetResponse> createFleet(Consumer<CreateFleetRequest.Builder> createFleetRequest)

      Creates a compute fleet.


      This is a convenience which creates an instance of the CreateFleetRequest.Builder avoiding the need to create one manually via CreateFleetRequest.builder()

      Parameters:
      createFleetRequest - A Consumer that will call methods on CreateFleetRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the CreateFleet operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.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 invoke Throwable.getCause() to retrieve the underlying exception.
      • InvalidInputException The input value that was provided is not valid.
      • ResourceAlreadyExistsException The specified Amazon Web Services resource cannot be created, because an Amazon Web Services resource with the same settings already exists.
      • AccountLimitExceededException An Amazon Web Services service limit was exceeded for the calling Amazon Web Services account.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createProject

      default CompletableFuture<CreateProjectResponse> createProject(Consumer<CreateProjectRequest.Builder> createProjectRequest)

      Creates a build project.


      This is a convenience which creates an instance of the CreateProjectRequest.Builder avoiding the need to create one manually via CreateProjectRequest.builder()

      Parameters:
      createProjectRequest - A Consumer that will call methods on CreateProjectRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the CreateProject operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.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 invoke Throwable.getCause() to retrieve the underlying exception.
      • InvalidInputException The input value that was provided is not valid.
      • ResourceAlreadyExistsException The specified Amazon Web Services resource cannot be created, because an Amazon Web Services resource with the same settings already exists.
      • AccountLimitExceededException An Amazon Web Services service limit was exceeded for the calling Amazon Web Services account.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createReportGroup

      default CompletableFuture<CreateReportGroupResponse> createReportGroup(Consumer<CreateReportGroupRequest.Builder> createReportGroupRequest)

      Creates a report group. A report group contains a collection of reports.


      This is a convenience which creates an instance of the CreateReportGroupRequest.Builder avoiding the need to create one manually via CreateReportGroupRequest.builder()

      Parameters:
      createReportGroupRequest - A Consumer that will call methods on CreateReportGroupRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the CreateReportGroup operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.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 invoke Throwable.getCause() to retrieve the underlying exception.
      • InvalidInputException The input value that was provided is not valid.
      • OAuthProviderException There was a problem with the underlying OAuth provider.
      • ResourceAlreadyExistsException The specified Amazon Web Services resource cannot be created, because an Amazon Web Services resource with the same settings already exists.
      • ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • createWebhook

      default CompletableFuture<CreateWebhookResponse> createWebhook(Consumer<CreateWebhookRequest.Builder> createWebhookRequest)

      For an existing CodeBuild build project that has its source code stored in a GitHub or Bitbucket repository, enables CodeBuild to start rebuilding the source code every time a code change is pushed to the repository.

      If you enable webhooks for an CodeBuild project, and the project is used as a build step in CodePipeline, then two identical builds are created for each commit. One build is triggered through webhooks, and one through CodePipeline. Because billing is on a per-build basis, you are billed for both builds. Therefore, if you are using CodePipeline, we recommend that you disable webhooks in CodeBuild. In the CodeBuild console, clear the Webhook box. For more information, see step 5 in Change a Build Project's Settings.


      This is a convenience which creates an instance of the CreateWebhookRequest.Builder avoiding the need to create one manually via CreateWebhookRequest.builder()

      Parameters:
      createWebhookRequest - A Consumer that will call methods on CreateWebhookRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the CreateWebhook operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.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 invoke Throwable.getCause() to retrieve the underlying exception.
      • InvalidInputException The input value that was provided is not valid.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteBuildBatch

      default CompletableFuture<DeleteBuildBatchResponse> deleteBuildBatch(Consumer<DeleteBuildBatchRequest.Builder> deleteBuildBatchRequest)

      Deletes a batch build.


      This is a convenience which creates an instance of the DeleteBuildBatchRequest.Builder avoiding the need to create one manually via DeleteBuildBatchRequest.builder()

      Parameters:
      deleteBuildBatchRequest - A Consumer that will call methods on DeleteBuildBatchRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DeleteBuildBatch operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.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(DeleteFleetRequest deleteFleetRequest)

      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 invoke Throwable.getCause() to retrieve the underlying exception.
      • InvalidInputException The input value that was provided is not valid.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteFleet

      default CompletableFuture<DeleteFleetResponse> deleteFleet(Consumer<DeleteFleetRequest.Builder> deleteFleetRequest)

      Deletes a compute fleet. When you delete a compute fleet, its builds are not deleted.


      This is a convenience which creates an instance of the DeleteFleetRequest.Builder avoiding the need to create one manually via DeleteFleetRequest.builder()

      Parameters:
      deleteFleetRequest - A Consumer that will call methods on DeleteFleetRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DeleteFleet operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.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 invoke Throwable.getCause() to retrieve the underlying exception.
      • InvalidInputException The input value that was provided is not valid.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteProject

      default CompletableFuture<DeleteProjectResponse> deleteProject(Consumer<DeleteProjectRequest.Builder> deleteProjectRequest)

      Deletes a build project. When you delete a project, its builds are not deleted.


      This is a convenience which creates an instance of the DeleteProjectRequest.Builder avoiding the need to create one manually via DeleteProjectRequest.builder()

      Parameters:
      deleteProjectRequest - A Consumer that will call methods on DeleteProjectRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DeleteProject operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.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 invoke Throwable.getCause() to retrieve the underlying exception.
      • InvalidInputException The input value that was provided is not valid.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteReport

      default CompletableFuture<DeleteReportResponse> deleteReport(Consumer<DeleteReportRequest.Builder> deleteReportRequest)

      Deletes a report.


      This is a convenience which creates an instance of the DeleteReportRequest.Builder avoiding the need to create one manually via DeleteReportRequest.builder()

      Parameters:
      deleteReportRequest - A Consumer that will call methods on DeleteReportRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DeleteReport operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.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 invoke Throwable.getCause() to retrieve the underlying exception.
      • InvalidInputException The input value that was provided is not valid.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteReportGroup

      default CompletableFuture<DeleteReportGroupResponse> deleteReportGroup(Consumer<DeleteReportGroupRequest.Builder> deleteReportGroupRequest)

      Deletes a report group. Before you delete a report group, you must delete its reports.


      This is a convenience which creates an instance of the DeleteReportGroupRequest.Builder avoiding the need to create one manually via DeleteReportGroupRequest.builder()

      Parameters:
      deleteReportGroupRequest - A Consumer that will call methods on DeleteReportGroupRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DeleteReportGroup operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.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 invoke Throwable.getCause() to retrieve the underlying exception.
      • InvalidInputException The input value that was provided is not valid.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteResourcePolicy

      default CompletableFuture<DeleteResourcePolicyResponse> deleteResourcePolicy(Consumer<DeleteResourcePolicyRequest.Builder> deleteResourcePolicyRequest)

      Deletes a resource policy that is identified by its resource ARN.


      This is a convenience which creates an instance of the DeleteResourcePolicyRequest.Builder avoiding the need to create one manually via DeleteResourcePolicyRequest.builder()

      Parameters:
      deleteResourcePolicyRequest - A Consumer that will call methods on DeleteResourcePolicyRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DeleteResourcePolicy operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.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 invoke Throwable.getCause() to retrieve the underlying exception.
      • InvalidInputException The input value that was provided is not valid.
      • ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteSourceCredentials

      default CompletableFuture<DeleteSourceCredentialsResponse> deleteSourceCredentials(Consumer<DeleteSourceCredentialsRequest.Builder> deleteSourceCredentialsRequest)

      Deletes a set of GitHub, GitHub Enterprise, or Bitbucket source credentials.


      This is a convenience which creates an instance of the DeleteSourceCredentialsRequest.Builder avoiding the need to create one manually via DeleteSourceCredentialsRequest.builder()

      Parameters:
      deleteSourceCredentialsRequest - A Consumer that will call methods on DeleteSourceCredentialsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DeleteSourceCredentials operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.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 invoke Throwable.getCause() to retrieve the underlying exception.
      • InvalidInputException The input value that was provided is not valid.
      • ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
      • OAuthProviderException There was a problem with the underlying OAuth provider.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • deleteWebhook

      default CompletableFuture<DeleteWebhookResponse> deleteWebhook(Consumer<DeleteWebhookRequest.Builder> deleteWebhookRequest)

      For an existing CodeBuild build project that has its source code stored in a GitHub or Bitbucket repository, stops CodeBuild from rebuilding the source code every time a code change is pushed to the repository.


      This is a convenience which creates an instance of the DeleteWebhookRequest.Builder avoiding the need to create one manually via DeleteWebhookRequest.builder()

      Parameters:
      deleteWebhookRequest - A Consumer that will call methods on DeleteWebhookRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DeleteWebhook operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.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 invoke Throwable.getCause() to retrieve the underlying exception.
      • InvalidInputException The input value that was provided is not valid.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • describeCodeCoverages

      default CompletableFuture<DescribeCodeCoveragesResponse> describeCodeCoverages(Consumer<DescribeCodeCoveragesRequest.Builder> describeCodeCoveragesRequest)

      Retrieves one or more code coverage reports.


      This is a convenience which creates an instance of the DescribeCodeCoveragesRequest.Builder avoiding the need to create one manually via DescribeCodeCoveragesRequest.builder()

      Parameters:
      describeCodeCoveragesRequest - A Consumer that will call methods on DescribeCodeCoveragesRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DescribeCodeCoverages operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.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 new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.codebuild.paginators.DescribeCodeCoveragesPublisher publisher = client.describeCodeCoveragesPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       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) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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 invoke Throwable.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 new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.codebuild.paginators.DescribeCodeCoveragesPublisher publisher = client.describeCodeCoveragesPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       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) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the describeCodeCoverages(software.amazon.awssdk.services.codebuild.model.DescribeCodeCoveragesRequest) operation.


      This is a convenience which creates an instance of the DescribeCodeCoveragesRequest.Builder avoiding the need to create one manually via DescribeCodeCoveragesRequest.builder()

      Parameters:
      describeCodeCoveragesRequest - A Consumer that will call methods on DescribeCodeCoveragesRequest.Builder to create a request.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.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 invoke Throwable.getCause() to retrieve the underlying exception.
      • InvalidInputException The input value that was provided is not valid.
      • ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • describeTestCases

      default CompletableFuture<DescribeTestCasesResponse> describeTestCases(Consumer<DescribeTestCasesRequest.Builder> describeTestCasesRequest)

      Returns a list of details about test cases for a report.


      This is a convenience which creates an instance of the DescribeTestCasesRequest.Builder avoiding the need to create one manually via DescribeTestCasesRequest.builder()

      Parameters:
      describeTestCasesRequest - A Consumer that will call methods on DescribeTestCasesRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the DescribeTestCases operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.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 new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.codebuild.paginators.DescribeTestCasesPublisher publisher = client.describeTestCasesPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       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) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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 invoke Throwable.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 new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.codebuild.paginators.DescribeTestCasesPublisher publisher = client.describeTestCasesPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       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) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the describeTestCases(software.amazon.awssdk.services.codebuild.model.DescribeTestCasesRequest) operation.


      This is a convenience which creates an instance of the DescribeTestCasesRequest.Builder avoiding the need to create one manually via DescribeTestCasesRequest.builder()

      Parameters:
      describeTestCasesRequest - A Consumer that will call methods on DescribeTestCasesRequest.Builder to create a request.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.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 invoke Throwable.getCause() to retrieve the underlying exception.
      • InvalidInputException The input value that was provided is not valid.
      • ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getReportGroupTrend

      default CompletableFuture<GetReportGroupTrendResponse> getReportGroupTrend(Consumer<GetReportGroupTrendRequest.Builder> getReportGroupTrendRequest)

      Analyzes and accumulates test report values for the specified test reports.


      This is a convenience which creates an instance of the GetReportGroupTrendRequest.Builder avoiding the need to create one manually via GetReportGroupTrendRequest.builder()

      Parameters:
      getReportGroupTrendRequest - A Consumer that will call methods on GetReportGroupTrendRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the GetReportGroupTrend operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.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 invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
      • InvalidInputException The input value that was provided is not valid.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • getResourcePolicy

      default CompletableFuture<GetResourcePolicyResponse> getResourcePolicy(Consumer<GetResourcePolicyRequest.Builder> getResourcePolicyRequest)

      Gets a resource policy that is identified by its resource ARN.


      This is a convenience which creates an instance of the GetResourcePolicyRequest.Builder avoiding the need to create one manually via GetResourcePolicyRequest.builder()

      Parameters:
      getResourcePolicyRequest - A Consumer that will call methods on GetResourcePolicyRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the GetResourcePolicy operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
      • InvalidInputException The input value that was provided is not valid.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • importSourceCredentials

      default CompletableFuture<ImportSourceCredentialsResponse> importSourceCredentials(ImportSourceCredentialsRequest importSourceCredentialsRequest)

      Imports the source repository credentials for an CodeBuild project that has its source code stored in a GitHub, GitHub Enterprise, or Bitbucket repository.

      Parameters:
      importSourceCredentialsRequest -
      Returns:
      A Java Future containing the result of the ImportSourceCredentials operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InvalidInputException The input value that was provided is not valid.
      • AccountLimitExceededException An Amazon Web Services service limit was exceeded for the calling Amazon Web Services account.
      • ResourceAlreadyExistsException The specified Amazon Web Services resource cannot be created, because an Amazon Web Services resource with the same settings already exists.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • importSourceCredentials

      default CompletableFuture<ImportSourceCredentialsResponse> importSourceCredentials(Consumer<ImportSourceCredentialsRequest.Builder> importSourceCredentialsRequest)

      Imports the source repository credentials for an CodeBuild project that has its source code stored in a GitHub, GitHub Enterprise, or Bitbucket repository.


      This is a convenience which creates an instance of the ImportSourceCredentialsRequest.Builder avoiding the need to create one manually via ImportSourceCredentialsRequest.builder()

      Parameters:
      importSourceCredentialsRequest - A Consumer that will call methods on ImportSourceCredentialsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ImportSourceCredentials operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.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 invoke Throwable.getCause() to retrieve the underlying exception.
      • InvalidInputException The input value that was provided is not valid.
      • ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • invalidateProjectCache

      default CompletableFuture<InvalidateProjectCacheResponse> invalidateProjectCache(Consumer<InvalidateProjectCacheRequest.Builder> invalidateProjectCacheRequest)

      Resets the cache for a project.


      This is a convenience which creates an instance of the InvalidateProjectCacheRequest.Builder avoiding the need to create one manually via InvalidateProjectCacheRequest.builder()

      Parameters:
      invalidateProjectCacheRequest - A Consumer that will call methods on InvalidateProjectCacheRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the InvalidateProjectCache operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.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 invoke Throwable.getCause() to retrieve the underlying exception.
      • InvalidInputException The input value that was provided is not valid.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listBuildBatches

      default CompletableFuture<ListBuildBatchesResponse> listBuildBatches(Consumer<ListBuildBatchesRequest.Builder> listBuildBatchesRequest)

      Retrieves the identifiers of your build batches in the current region.


      This is a convenience which creates an instance of the ListBuildBatchesRequest.Builder avoiding the need to create one manually via ListBuildBatchesRequest.builder()

      Parameters:
      listBuildBatchesRequest - A Consumer that will call methods on ListBuildBatchesRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListBuildBatches operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.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 invoke Throwable.getCause() to retrieve the underlying exception.
      • InvalidInputException The input value that was provided is not valid.
      • ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listBuildBatchesForProject

      default CompletableFuture<ListBuildBatchesForProjectResponse> listBuildBatchesForProject(Consumer<ListBuildBatchesForProjectRequest.Builder> listBuildBatchesForProjectRequest)

      Retrieves the identifiers of the build batches for a specific project.


      This is a convenience which creates an instance of the ListBuildBatchesForProjectRequest.Builder avoiding the need to create one manually via ListBuildBatchesForProjectRequest.builder()

      Parameters:
      listBuildBatchesForProjectRequest - A Consumer that will call methods on ListBuildBatchesForProjectRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListBuildBatchesForProject operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.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 new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.codebuild.paginators.ListBuildBatchesForProjectPublisher publisher = client.listBuildBatchesForProjectPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       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) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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 invoke Throwable.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 new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.codebuild.paginators.ListBuildBatchesForProjectPublisher publisher = client.listBuildBatchesForProjectPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       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) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the listBuildBatchesForProject(software.amazon.awssdk.services.codebuild.model.ListBuildBatchesForProjectRequest) operation.


      This is a convenience which creates an instance of the ListBuildBatchesForProjectRequest.Builder avoiding the need to create one manually via ListBuildBatchesForProjectRequest.builder()

      Parameters:
      listBuildBatchesForProjectRequest - A Consumer that will call methods on ListBuildBatchesForProjectRequest.Builder to create a request.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.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 new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.codebuild.paginators.ListBuildBatchesPublisher publisher = client.listBuildBatchesPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       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) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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 invoke Throwable.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 new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.codebuild.paginators.ListBuildBatchesPublisher publisher = client.listBuildBatchesPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       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) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the listBuildBatches(software.amazon.awssdk.services.codebuild.model.ListBuildBatchesRequest) operation.


      This is a convenience which creates an instance of the ListBuildBatchesRequest.Builder avoiding the need to create one manually via ListBuildBatchesRequest.builder()

      Parameters:
      listBuildBatchesRequest - A Consumer that will call methods on ListBuildBatchesRequest.Builder to create a request.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.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(ListBuildsRequest listBuildsRequest)

      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 invoke Throwable.getCause() to retrieve the underlying exception.
      • InvalidInputException The input value that was provided is not valid.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listBuilds

      default CompletableFuture<ListBuildsResponse> listBuilds(Consumer<ListBuildsRequest.Builder> listBuildsRequest)

      Gets a list of build IDs, with each build ID representing a single build.


      This is a convenience which creates an instance of the ListBuildsRequest.Builder avoiding the need to create one manually via ListBuildsRequest.builder()

      Parameters:
      listBuildsRequest - A Consumer that will call methods on ListBuildsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListBuilds operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.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()

      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 invoke Throwable.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 invoke Throwable.getCause() to retrieve the underlying exception.
      • InvalidInputException The input value that was provided is not valid.
      • ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listBuildsForProject

      default CompletableFuture<ListBuildsForProjectResponse> listBuildsForProject(Consumer<ListBuildsForProjectRequest.Builder> listBuildsForProjectRequest)

      Gets a list of build identifiers for the specified build project, with each build identifier representing a single build.


      This is a convenience which creates an instance of the ListBuildsForProjectRequest.Builder avoiding the need to create one manually via ListBuildsForProjectRequest.builder()

      Parameters:
      listBuildsForProjectRequest - A Consumer that will call methods on ListBuildsForProjectRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListBuildsForProject operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.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 new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.codebuild.paginators.ListBuildsForProjectPublisher publisher = client.listBuildsForProjectPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       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) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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 invoke Throwable.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 new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.codebuild.paginators.ListBuildsForProjectPublisher publisher = client.listBuildsForProjectPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       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) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of null won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the listBuildsForProject(software.amazon.awssdk.services.codebuild.model.ListBuildsForProjectRequest) operation.


      This is a convenience which creates an instance of the ListBuildsForProjectRequest.Builder avoiding the need to create one manually via ListBuildsForProjectRequest.builder()

      Parameters:
      listBuildsForProjectRequest - A Consumer that will call methods on ListBuildsForProjectRequest.Builder to create a request.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.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

      default ListBuildsPublisher 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 new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.codebuild.paginators.ListBuildsPublisher publisher = client.listBuildsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       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) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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 invoke Throwable.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(ListBuildsRequest 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 new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.codebuild.paginators.ListBuildsPublisher publisher = client.listBuildsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       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) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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 invoke Throwable.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 new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.codebuild.paginators.ListBuildsPublisher publisher = client.listBuildsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       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) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of null won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the listBuilds(software.amazon.awssdk.services.codebuild.model.ListBuildsRequest) operation.


      This is a convenience which creates an instance of the ListBuildsRequest.Builder avoiding the need to create one manually via ListBuildsRequest.builder()

      Parameters:
      listBuildsRequest - A Consumer that will call methods on ListBuildsRequest.Builder to create a request.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.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 invoke Throwable.getCause() to retrieve the underlying exception.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listCuratedEnvironmentImages

      default CompletableFuture<ListCuratedEnvironmentImagesResponse> listCuratedEnvironmentImages(Consumer<ListCuratedEnvironmentImagesRequest.Builder> listCuratedEnvironmentImagesRequest)

      Gets information about Docker images that are managed by CodeBuild.


      This is a convenience which creates an instance of the ListCuratedEnvironmentImagesRequest.Builder avoiding the need to create one manually via ListCuratedEnvironmentImagesRequest.builder()

      Parameters:
      listCuratedEnvironmentImagesRequest - A Consumer that will call methods on ListCuratedEnvironmentImagesRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListCuratedEnvironmentImages operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.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()

      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 invoke Throwable.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

      default CompletableFuture<ListFleetsResponse> listFleets(ListFleetsRequest listFleetsRequest)

      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 invoke Throwable.getCause() to retrieve the underlying exception.
      • InvalidInputException The input value that was provided is not valid.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listFleets

      default CompletableFuture<ListFleetsResponse> listFleets(Consumer<ListFleetsRequest.Builder> listFleetsRequest)

      Gets a list of compute fleet names with each compute fleet name representing a single compute fleet.


      This is a convenience which creates an instance of the ListFleetsRequest.Builder avoiding the need to create one manually via ListFleetsRequest.builder()

      Parameters:
      listFleetsRequest - A Consumer that will call methods on ListFleetsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListFleets operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.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(ListFleetsRequest 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 new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.codebuild.paginators.ListFleetsPublisher publisher = client.listFleetsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       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) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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 invoke Throwable.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 new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.codebuild.paginators.ListFleetsPublisher publisher = client.listFleetsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       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) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the listFleets(software.amazon.awssdk.services.codebuild.model.ListFleetsRequest) operation.


      This is a convenience which creates an instance of the ListFleetsRequest.Builder avoiding the need to create one manually via ListFleetsRequest.builder()

      Parameters:
      listFleetsRequest - A Consumer that will call methods on ListFleetsRequest.Builder to create a request.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.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 invoke Throwable.getCause() to retrieve the underlying exception.
      • InvalidInputException The input value that was provided is not valid.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listProjects

      default CompletableFuture<ListProjectsResponse> listProjects(Consumer<ListProjectsRequest.Builder> listProjectsRequest)

      Gets a list of build project names, with each build project name representing a single build project.


      This is a convenience which creates an instance of the ListProjectsRequest.Builder avoiding the need to create one manually via ListProjectsRequest.builder()

      Parameters:
      listProjectsRequest - A Consumer that will call methods on ListProjectsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListProjects operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.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()

      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 invoke Throwable.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()

      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 new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.codebuild.paginators.ListProjectsPublisher publisher = client.listProjectsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       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) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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 invoke Throwable.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(ListProjectsRequest 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 new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.codebuild.paginators.ListProjectsPublisher publisher = client.listProjectsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       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) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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 invoke Throwable.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 new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.codebuild.paginators.ListProjectsPublisher publisher = client.listProjectsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       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) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of null won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the listProjects(software.amazon.awssdk.services.codebuild.model.ListProjectsRequest) operation.


      This is a convenience which creates an instance of the ListProjectsRequest.Builder avoiding the need to create one manually via ListProjectsRequest.builder()

      Parameters:
      listProjectsRequest - A Consumer that will call methods on ListProjectsRequest.Builder to create a request.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.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 invoke Throwable.getCause() to retrieve the underlying exception.
      • InvalidInputException The input value that was provided is not valid.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listReportGroups

      default CompletableFuture<ListReportGroupsResponse> listReportGroups(Consumer<ListReportGroupsRequest.Builder> listReportGroupsRequest)

      Gets a list ARNs for the report groups in the current Amazon Web Services account.


      This is a convenience which creates an instance of the ListReportGroupsRequest.Builder avoiding the need to create one manually via ListReportGroupsRequest.builder()

      Parameters:
      listReportGroupsRequest - A Consumer that will call methods on ListReportGroupsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListReportGroups operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.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 new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.codebuild.paginators.ListReportGroupsPublisher publisher = client.listReportGroupsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       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) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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 invoke Throwable.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 new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.codebuild.paginators.ListReportGroupsPublisher publisher = client.listReportGroupsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       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) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the listReportGroups(software.amazon.awssdk.services.codebuild.model.ListReportGroupsRequest) operation.


      This is a convenience which creates an instance of the ListReportGroupsRequest.Builder avoiding the need to create one manually via ListReportGroupsRequest.builder()

      Parameters:
      listReportGroupsRequest - A Consumer that will call methods on ListReportGroupsRequest.Builder to create a request.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.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(ListReportsRequest listReportsRequest)

      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 invoke Throwable.getCause() to retrieve the underlying exception.
      • InvalidInputException The input value that was provided is not valid.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listReports

      default CompletableFuture<ListReportsResponse> listReports(Consumer<ListReportsRequest.Builder> listReportsRequest)

      Returns a list of ARNs for the reports in the current Amazon Web Services account.


      This is a convenience which creates an instance of the ListReportsRequest.Builder avoiding the need to create one manually via ListReportsRequest.builder()

      Parameters:
      listReportsRequest - A Consumer that will call methods on ListReportsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListReports operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.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 invoke Throwable.getCause() to retrieve the underlying exception.
      • InvalidInputException The input value that was provided is not valid.
      • ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listReportsForReportGroup

      default CompletableFuture<ListReportsForReportGroupResponse> listReportsForReportGroup(Consumer<ListReportsForReportGroupRequest.Builder> listReportsForReportGroupRequest)

      Returns a list of ARNs for the reports that belong to a ReportGroup.


      This is a convenience which creates an instance of the ListReportsForReportGroupRequest.Builder avoiding the need to create one manually via ListReportsForReportGroupRequest.builder()

      Parameters:
      listReportsForReportGroupRequest - A Consumer that will call methods on ListReportsForReportGroupRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListReportsForReportGroup operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.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 new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.codebuild.paginators.ListReportsForReportGroupPublisher publisher = client.listReportsForReportGroupPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       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) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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 invoke Throwable.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 new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.codebuild.paginators.ListReportsForReportGroupPublisher publisher = client.listReportsForReportGroupPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       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) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the listReportsForReportGroup(software.amazon.awssdk.services.codebuild.model.ListReportsForReportGroupRequest) operation.


      This is a convenience which creates an instance of the ListReportsForReportGroupRequest.Builder avoiding the need to create one manually via ListReportsForReportGroupRequest.builder()

      Parameters:
      listReportsForReportGroupRequest - A Consumer that will call methods on ListReportsForReportGroupRequest.Builder to create a request.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.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

      default ListReportsPublisher listReportsPaginator(ListReportsRequest 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 new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.codebuild.paginators.ListReportsPublisher publisher = client.listReportsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       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) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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 invoke Throwable.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 new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.codebuild.paginators.ListReportsPublisher publisher = client.listReportsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       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) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.

      Note: If you prefer to have control on service calls, use the listReports(software.amazon.awssdk.services.codebuild.model.ListReportsRequest) operation.


      This is a convenience which creates an instance of the ListReportsRequest.Builder avoiding the need to create one manually via ListReportsRequest.builder()

      Parameters:
      listReportsRequest - A Consumer that will call methods on ListReportsRequest.Builder to create a request.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.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:
    • listSharedProjects

      default CompletableFuture<ListSharedProjectsResponse> listSharedProjects(ListSharedProjectsRequest listSharedProjectsRequest)

      Gets a list of projects that are shared with other Amazon Web Services accounts or users.

      Parameters:
      listSharedProjectsRequest -
      Returns:
      A Java Future containing the result of the ListSharedProjects 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 invoke Throwable.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:
    • listSharedProjects

      default CompletableFuture<ListSharedProjectsResponse> listSharedProjects(Consumer<ListSharedProjectsRequest.Builder> listSharedProjectsRequest)

      Gets a list of projects that are shared with other Amazon Web Services accounts or users.


      This is a convenience which creates an instance of the ListSharedProjectsRequest.Builder avoiding the need to create one manually via ListSharedProjectsRequest.builder()

      Parameters:
      listSharedProjectsRequest - A Consumer that will call methods on ListSharedProjectsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListSharedProjects 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 invoke Throwable.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:
    • listSharedProjectsPaginator

      default ListSharedProjectsPublisher listSharedProjectsPaginator(ListSharedProjectsRequest listSharedProjectsRequest)

      This is a variant of listSharedProjects(software.amazon.awssdk.services.codebuild.model.ListSharedProjectsRequest) 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 new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.codebuild.paginators.ListSharedProjectsPublisher publisher = client.listSharedProjectsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.codebuild.paginators.ListSharedProjectsPublisher publisher = client.listSharedProjectsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.codebuild.model.ListSharedProjectsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.codebuild.model.ListSharedProjectsResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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 listSharedProjects(software.amazon.awssdk.services.codebuild.model.ListSharedProjectsRequest) operation.

      Parameters:
      listSharedProjectsRequest -
      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 invoke Throwable.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:
    • listSharedProjectsPaginator

      default ListSharedProjectsPublisher listSharedProjectsPaginator(Consumer<ListSharedProjectsRequest.Builder> listSharedProjectsRequest)

      This is a variant of listSharedProjects(software.amazon.awssdk.services.codebuild.model.ListSharedProjectsRequest) 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 new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.codebuild.paginators.ListSharedProjectsPublisher publisher = client.listSharedProjectsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.codebuild.paginators.ListSharedProjectsPublisher publisher = client.listSharedProjectsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.codebuild.model.ListSharedProjectsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.codebuild.model.ListSharedProjectsResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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 listSharedProjects(software.amazon.awssdk.services.codebuild.model.ListSharedProjectsRequest) operation.


      This is a convenience which creates an instance of the ListSharedProjectsRequest.Builder avoiding the need to create one manually via ListSharedProjectsRequest.builder()

      Parameters:
      listSharedProjectsRequest - A Consumer that will call methods on ListSharedProjectsRequest.Builder to create a request.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.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:
    • listSharedReportGroups

      default CompletableFuture<ListSharedReportGroupsResponse> listSharedReportGroups(ListSharedReportGroupsRequest listSharedReportGroupsRequest)

      Gets a list of report groups that are shared with other Amazon Web Services accounts or users.

      Parameters:
      listSharedReportGroupsRequest -
      Returns:
      A Java Future containing the result of the ListSharedReportGroups 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 invoke Throwable.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:
    • listSharedReportGroups

      default CompletableFuture<ListSharedReportGroupsResponse> listSharedReportGroups(Consumer<ListSharedReportGroupsRequest.Builder> listSharedReportGroupsRequest)

      Gets a list of report groups that are shared with other Amazon Web Services accounts or users.


      This is a convenience which creates an instance of the ListSharedReportGroupsRequest.Builder avoiding the need to create one manually via ListSharedReportGroupsRequest.builder()

      Parameters:
      listSharedReportGroupsRequest - A Consumer that will call methods on ListSharedReportGroupsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListSharedReportGroups 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 invoke Throwable.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:
    • listSharedReportGroupsPaginator

      default ListSharedReportGroupsPublisher listSharedReportGroupsPaginator(ListSharedReportGroupsRequest listSharedReportGroupsRequest)

      This is a variant of listSharedReportGroups(software.amazon.awssdk.services.codebuild.model.ListSharedReportGroupsRequest) 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 new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.codebuild.paginators.ListSharedReportGroupsPublisher publisher = client.listSharedReportGroupsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.codebuild.paginators.ListSharedReportGroupsPublisher publisher = client.listSharedReportGroupsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.codebuild.model.ListSharedReportGroupsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.codebuild.model.ListSharedReportGroupsResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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 listSharedReportGroups(software.amazon.awssdk.services.codebuild.model.ListSharedReportGroupsRequest) operation.

      Parameters:
      listSharedReportGroupsRequest -
      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 invoke Throwable.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:
    • listSharedReportGroupsPaginator

      default ListSharedReportGroupsPublisher listSharedReportGroupsPaginator(Consumer<ListSharedReportGroupsRequest.Builder> listSharedReportGroupsRequest)

      This is a variant of listSharedReportGroups(software.amazon.awssdk.services.codebuild.model.ListSharedReportGroupsRequest) 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 new Subscription i.e., a new contract to stream data from the starting request.

      The following are few ways to use the response class:

      1) Using the subscribe helper method
       
       software.amazon.awssdk.services.codebuild.paginators.ListSharedReportGroupsPublisher publisher = client.listSharedReportGroupsPaginator(request);
       CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
       future.get();
       
       
      2) Using a custom subscriber
       
       software.amazon.awssdk.services.codebuild.paginators.ListSharedReportGroupsPublisher publisher = client.listSharedReportGroupsPaginator(request);
       publisher.subscribe(new Subscriber<software.amazon.awssdk.services.codebuild.model.ListSharedReportGroupsResponse>() {
       
       public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
       
       
       public void onNext(software.amazon.awssdk.services.codebuild.model.ListSharedReportGroupsResponse response) { //... };
       });
       
      As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.

      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 listSharedReportGroups(software.amazon.awssdk.services.codebuild.model.ListSharedReportGroupsRequest) operation.


      This is a convenience which creates an instance of the ListSharedReportGroupsRequest.Builder avoiding the need to create one manually via ListSharedReportGroupsRequest.builder()

      Parameters:
      listSharedReportGroupsRequest - A Consumer that will call methods on ListSharedReportGroupsRequest.Builder to create a request.
      Returns:
      A custom publisher that can be subscribed to request a stream of response pages.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InvalidInputException The input value that was provided is not valid.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listSourceCredentials

      default CompletableFuture<ListSourceCredentialsResponse> listSourceCredentials(ListSourceCredentialsRequest listSourceCredentialsRequest)

      Returns a list of SourceCredentialsInfo objects.

      Parameters:
      listSourceCredentialsRequest -
      Returns:
      A Java Future containing the result of the ListSourceCredentials operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InvalidInputException The input value that was provided is not valid.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • listSourceCredentials

      default CompletableFuture<ListSourceCredentialsResponse> listSourceCredentials(Consumer<ListSourceCredentialsRequest.Builder> listSourceCredentialsRequest)

      Returns a list of SourceCredentialsInfo objects.


      This is a convenience which creates an instance of the ListSourceCredentialsRequest.Builder avoiding the need to create one manually via ListSourceCredentialsRequest.builder()

      Parameters:
      listSourceCredentialsRequest - A Consumer that will call methods on ListSourceCredentialsRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the ListSourceCredentials operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.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()

      Returns a list of SourceCredentialsInfo objects.

      Returns:
      A Java Future containing the result of the ListSourceCredentials operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InvalidInputException The input value that was provided is not valid.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • putResourcePolicy

      default CompletableFuture<PutResourcePolicyResponse> putResourcePolicy(PutResourcePolicyRequest putResourcePolicyRequest)

      Stores a resource policy for the ARN of a Project or ReportGroup object.

      Parameters:
      putResourcePolicyRequest -
      Returns:
      A Java Future containing the result of the PutResourcePolicy operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
      • InvalidInputException The input value that was provided is not valid.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • putResourcePolicy

      default CompletableFuture<PutResourcePolicyResponse> putResourcePolicy(Consumer<PutResourcePolicyRequest.Builder> putResourcePolicyRequest)

      Stores a resource policy for the ARN of a Project or ReportGroup object.


      This is a convenience which creates an instance of the PutResourcePolicyRequest.Builder avoiding the need to create one manually via PutResourcePolicyRequest.builder()

      Parameters:
      putResourcePolicyRequest - A Consumer that will call methods on PutResourcePolicyRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the PutResourcePolicy operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.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

      default CompletableFuture<RetryBuildResponse> retryBuild(RetryBuildRequest retryBuildRequest)

      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 invoke Throwable.getCause() to retrieve the underlying exception.
      • InvalidInputException The input value that was provided is not valid.
      • ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
      • AccountLimitExceededException An Amazon Web Services service limit was exceeded for the calling Amazon Web Services account.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • retryBuild

      default CompletableFuture<RetryBuildResponse> retryBuild(Consumer<RetryBuildRequest.Builder> retryBuildRequest)

      Restarts a build.


      This is a convenience which creates an instance of the RetryBuildRequest.Builder avoiding the need to create one manually via RetryBuildRequest.builder()

      Parameters:
      retryBuildRequest - A Consumer that will call methods on RetryBuildRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the RetryBuild operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.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 invoke Throwable.getCause() to retrieve the underlying exception.
      • InvalidInputException The input value that was provided is not valid.
      • ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • retryBuildBatch

      default CompletableFuture<RetryBuildBatchResponse> retryBuildBatch(Consumer<RetryBuildBatchRequest.Builder> retryBuildBatchRequest)

      Restarts a failed batch build. Only batch builds that have failed can be retried.


      This is a convenience which creates an instance of the RetryBuildBatchRequest.Builder avoiding the need to create one manually via RetryBuildBatchRequest.builder()

      Parameters:
      retryBuildBatchRequest - A Consumer that will call methods on RetryBuildBatchRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the RetryBuildBatch operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.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

      default CompletableFuture<StartBuildResponse> startBuild(StartBuildRequest 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.

      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 invoke Throwable.getCause() to retrieve the underlying exception.
      • InvalidInputException The input value that was provided is not valid.
      • ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
      • AccountLimitExceededException An Amazon Web Services service limit was exceeded for the calling Amazon Web Services account.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • startBuild

      default CompletableFuture<StartBuildResponse> startBuild(Consumer<StartBuildRequest.Builder> startBuildRequest)

      Starts running a build with the settings defined in the project. These setting include: how to run a build, where to get the source code, which build environment to use, which build commands to run, and where to store the build output.

      You can also start a build run by overriding some of the build settings in the project. The overrides only apply for that specific start build request. The settings in the project are unaltered.


      This is a convenience which creates an instance of the StartBuildRequest.Builder avoiding the need to create one manually via StartBuildRequest.builder()

      Parameters:
      startBuildRequest - A Consumer that will call methods on StartBuildRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the StartBuild operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.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 invoke Throwable.getCause() to retrieve the underlying exception.
      • InvalidInputException The input value that was provided is not valid.
      • ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • startBuildBatch

      default CompletableFuture<StartBuildBatchResponse> startBuildBatch(Consumer<StartBuildBatchRequest.Builder> startBuildBatchRequest)

      Starts a batch build for a project.


      This is a convenience which creates an instance of the StartBuildBatchRequest.Builder avoiding the need to create one manually via StartBuildBatchRequest.builder()

      Parameters:
      startBuildBatchRequest - A Consumer that will call methods on StartBuildBatchRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the StartBuildBatch operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.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(StopBuildRequest stopBuildRequest)

      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 invoke Throwable.getCause() to retrieve the underlying exception.
      • InvalidInputException The input value that was provided is not valid.
      • ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • stopBuild

      default CompletableFuture<StopBuildResponse> stopBuild(Consumer<StopBuildRequest.Builder> stopBuildRequest)

      Attempts to stop running a build.


      This is a convenience which creates an instance of the StopBuildRequest.Builder avoiding the need to create one manually via StopBuildRequest.builder()

      Parameters:
      stopBuildRequest - A Consumer that will call methods on StopBuildRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the StopBuild operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.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 invoke Throwable.getCause() to retrieve the underlying exception.
      • InvalidInputException The input value that was provided is not valid.
      • ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • stopBuildBatch

      default CompletableFuture<StopBuildBatchResponse> stopBuildBatch(Consumer<StopBuildBatchRequest.Builder> stopBuildBatchRequest)

      Stops a running batch build.


      This is a convenience which creates an instance of the StopBuildBatchRequest.Builder avoiding the need to create one manually via StopBuildBatchRequest.builder()

      Parameters:
      stopBuildBatchRequest - A Consumer that will call methods on StopBuildBatchRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the StopBuildBatch operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.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

      default CompletableFuture<UpdateFleetResponse> updateFleet(UpdateFleetRequest updateFleetRequest)

      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 invoke Throwable.getCause() to retrieve the underlying exception.
      • InvalidInputException The input value that was provided is not valid.
      • ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
      • AccountLimitExceededException An Amazon Web Services service limit was exceeded for the calling Amazon Web Services account.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateFleet

      default CompletableFuture<UpdateFleetResponse> updateFleet(Consumer<UpdateFleetRequest.Builder> updateFleetRequest)

      Updates a compute fleet.


      This is a convenience which creates an instance of the UpdateFleetRequest.Builder avoiding the need to create one manually via UpdateFleetRequest.builder()

      Parameters:
      updateFleetRequest - A Consumer that will call methods on UpdateFleetRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the UpdateFleet operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.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 invoke Throwable.getCause() to retrieve the underlying exception.
      • InvalidInputException The input value that was provided is not valid.
      • ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateProject

      default CompletableFuture<UpdateProjectResponse> updateProject(Consumer<UpdateProjectRequest.Builder> updateProjectRequest)

      Changes the settings of a build project.


      This is a convenience which creates an instance of the UpdateProjectRequest.Builder avoiding the need to create one manually via UpdateProjectRequest.builder()

      Parameters:
      updateProjectRequest - A Consumer that will call methods on UpdateProjectRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the UpdateProject operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.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 invoke Throwable.getCause() to retrieve the underlying exception.
      • InvalidInputException The input value that was provided is not valid.
      • ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateProjectVisibility

      default CompletableFuture<UpdateProjectVisibilityResponse> updateProjectVisibility(Consumer<UpdateProjectVisibilityRequest.Builder> updateProjectVisibilityRequest)

      Changes the public visibility for a project. The project's build results, logs, and artifacts are available to the general public. For more information, see Public build projects in the CodeBuild User Guide.

      The following should be kept in mind when making your projects public:

      • All of a project's build results, logs, and artifacts, including builds that were run when the project was private, are available to the general public.

      • All build logs and artifacts are available to the public. Environment variables, source code, and other sensitive information may have been output to the build logs and artifacts. You must be careful about what information is output to the build logs. Some best practice are:

        • Do not store sensitive values in environment variables. We recommend that you use an Amazon EC2 Systems Manager Parameter Store or Secrets Manager to store sensitive values.

        • Follow Best practices for using webhooks in the CodeBuild User Guide to limit which entities can trigger a build, and do not store the buildspec in the project itself, to ensure that your webhooks are as secure as possible.

      • A malicious user can use public builds to distribute malicious artifacts. We recommend that you review all pull requests to verify that the pull request is a legitimate change. We also recommend that you validate any artifacts with their checksums to make sure that the correct artifacts are being downloaded.


      This is a convenience which creates an instance of the UpdateProjectVisibilityRequest.Builder avoiding the need to create one manually via UpdateProjectVisibilityRequest.builder()

      Parameters:
      updateProjectVisibilityRequest - A Consumer that will call methods on UpdateProjectVisibilityRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the UpdateProjectVisibility operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.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 invoke Throwable.getCause() to retrieve the underlying exception.
      • InvalidInputException The input value that was provided is not valid.
      • ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateReportGroup

      default CompletableFuture<UpdateReportGroupResponse> updateReportGroup(Consumer<UpdateReportGroupRequest.Builder> updateReportGroupRequest)

      Updates a report group.


      This is a convenience which creates an instance of the UpdateReportGroupRequest.Builder avoiding the need to create one manually via UpdateReportGroupRequest.builder()

      Parameters:
      updateReportGroupRequest - A Consumer that will call methods on UpdateReportGroupRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the UpdateReportGroup operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InvalidInputException The input value that was provided is not valid.
      • ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateWebhook

      default CompletableFuture<UpdateWebhookResponse> updateWebhook(UpdateWebhookRequest updateWebhookRequest)

      Updates the webhook associated with an CodeBuild build project.

      If you use Bitbucket for your repository, rotateSecret is ignored.

      Parameters:
      updateWebhookRequest -
      Returns:
      A Java Future containing the result of the UpdateWebhook operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.getCause() to retrieve the underlying exception.
      • InvalidInputException The input value that was provided is not valid.
      • ResourceNotFoundException The specified Amazon Web Services resource cannot be found.
      • OAuthProviderException There was a problem with the underlying OAuth provider.
      • SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
      • SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
      • CodeBuildException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
      See Also:
    • updateWebhook

      default CompletableFuture<UpdateWebhookResponse> updateWebhook(Consumer<UpdateWebhookRequest.Builder> updateWebhookRequest)

      Updates the webhook associated with an CodeBuild build project.

      If you use Bitbucket for your repository, rotateSecret is ignored.


      This is a convenience which creates an instance of the UpdateWebhookRequest.Builder avoiding the need to create one manually via UpdateWebhookRequest.builder()

      Parameters:
      updateWebhookRequest - A Consumer that will call methods on UpdateWebhookRequest.Builder to create a request.
      Returns:
      A Java Future containing the result of the UpdateWebhook operation returned by the service.
      The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invoke Throwable.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

      default CodeBuildServiceClientConfiguration serviceClientConfiguration()
      Description copied from interface: SdkClient
      The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration
      Specified by:
      serviceClientConfiguration in interface AwsClient
      Specified by:
      serviceClientConfiguration in interface SdkClient
      Returns:
      SdkServiceClientConfiguration
    • create

      static CodeBuildAsyncClient create()
      Create a CodeBuildAsyncClient with the region loaded from the DefaultAwsRegionProviderChain and credentials loaded from the DefaultCredentialsProvider.
    • builder

      static CodeBuildAsyncClientBuilder builder()
      Create a builder that can be used to configure and create a CodeBuildAsyncClient.