Class AbstractAWSCodeCommitAsync

java.lang.Object
com.amazonaws.services.codecommit.AbstractAWSCodeCommit
com.amazonaws.services.codecommit.AbstractAWSCodeCommitAsync
All Implemented Interfaces:
AWSCodeCommit, AWSCodeCommitAsync

public class AbstractAWSCodeCommitAsync extends AbstractAWSCodeCommit implements AWSCodeCommitAsync
Abstract implementation of AWSCodeCommitAsync. Convenient method forms pass through to the corresponding overload that takes a request object and an AsyncHandler, which throws an UnsupportedOperationException.
  • Constructor Details

    • AbstractAWSCodeCommitAsync

      protected AbstractAWSCodeCommitAsync()
  • Method Details

    • batchGetRepositoriesAsync

      public Future<BatchGetRepositoriesResult> batchGetRepositoriesAsync(BatchGetRepositoriesRequest request)
      Description copied from interface: AWSCodeCommitAsync

      Returns information about one or more repositories.

      The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a web page could expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a web page.

      Specified by:
      batchGetRepositoriesAsync in interface AWSCodeCommitAsync
      Parameters:
      request - Represents the input of a batch get repositories operation.
      Returns:
      A Java Future containing the result of the BatchGetRepositories operation returned by the service.
    • batchGetRepositoriesAsync

      Description copied from interface: AWSCodeCommitAsync

      Returns information about one or more repositories.

      The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a web page could expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a web page.

      Specified by:
      batchGetRepositoriesAsync in interface AWSCodeCommitAsync
      Parameters:
      request - Represents the input of a batch get repositories operation.
      asyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.
      Returns:
      A Java Future containing the result of the BatchGetRepositories operation returned by the service.
    • createBranchAsync

      public Future<CreateBranchResult> createBranchAsync(CreateBranchRequest request)
      Description copied from interface: AWSCodeCommitAsync

      Creates a new branch in a repository and points the branch to a commit.

      Calling the create branch operation does not set a repository's default branch. To do this, call the update default branch operation.

      Specified by:
      createBranchAsync in interface AWSCodeCommitAsync
      Parameters:
      request - Represents the input of a create branch operation.
      Returns:
      A Java Future containing the result of the CreateBranch operation returned by the service.
    • createBranchAsync

      Description copied from interface: AWSCodeCommitAsync

      Creates a new branch in a repository and points the branch to a commit.

      Calling the create branch operation does not set a repository's default branch. To do this, call the update default branch operation.

      Specified by:
      createBranchAsync in interface AWSCodeCommitAsync
      Parameters:
      request - Represents the input of a create branch operation.
      asyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.
      Returns:
      A Java Future containing the result of the CreateBranch operation returned by the service.
    • createRepositoryAsync

      public Future<CreateRepositoryResult> createRepositoryAsync(CreateRepositoryRequest request)
      Description copied from interface: AWSCodeCommitAsync

      Creates a new, empty repository.

      Specified by:
      createRepositoryAsync in interface AWSCodeCommitAsync
      Parameters:
      request - Represents the input of a create repository operation.
      Returns:
      A Java Future containing the result of the CreateRepository operation returned by the service.
    • createRepositoryAsync

      Description copied from interface: AWSCodeCommitAsync

      Creates a new, empty repository.

      Specified by:
      createRepositoryAsync in interface AWSCodeCommitAsync
      Parameters:
      request - Represents the input of a create repository operation.
      asyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.
      Returns:
      A Java Future containing the result of the CreateRepository operation returned by the service.
    • deleteRepositoryAsync

      public Future<DeleteRepositoryResult> deleteRepositoryAsync(DeleteRepositoryRequest request)
      Description copied from interface: AWSCodeCommitAsync

      Deletes a repository. If a specified repository was already deleted, a null repository ID will be returned.

      Deleting a repository also deletes all associated objects and metadata. After a repository is deleted, all future push calls to the deleted repository will fail.
      Specified by:
      deleteRepositoryAsync in interface AWSCodeCommitAsync
      Parameters:
      request - Represents the input of a delete repository operation.
      Returns:
      A Java Future containing the result of the DeleteRepository operation returned by the service.
    • deleteRepositoryAsync

      Description copied from interface: AWSCodeCommitAsync

      Deletes a repository. If a specified repository was already deleted, a null repository ID will be returned.

      Deleting a repository also deletes all associated objects and metadata. After a repository is deleted, all future push calls to the deleted repository will fail.
      Specified by:
      deleteRepositoryAsync in interface AWSCodeCommitAsync
      Parameters:
      request - Represents the input of a delete repository operation.
      asyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.
      Returns:
      A Java Future containing the result of the DeleteRepository operation returned by the service.
    • getBranchAsync

      public Future<GetBranchResult> getBranchAsync(GetBranchRequest request)
      Description copied from interface: AWSCodeCommitAsync

      Returns information about a repository branch, including its name and the last commit ID.

      Specified by:
      getBranchAsync in interface AWSCodeCommitAsync
      Parameters:
      request - Represents the input of a get branch operation.
      Returns:
      A Java Future containing the result of the GetBranch operation returned by the service.
    • getBranchAsync

      public Future<GetBranchResult> getBranchAsync(GetBranchRequest request, AsyncHandler<GetBranchRequest,GetBranchResult> asyncHandler)
      Description copied from interface: AWSCodeCommitAsync

      Returns information about a repository branch, including its name and the last commit ID.

      Specified by:
      getBranchAsync in interface AWSCodeCommitAsync
      Parameters:
      request - Represents the input of a get branch operation.
      asyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.
      Returns:
      A Java Future containing the result of the GetBranch operation returned by the service.
    • getCommitAsync

      public Future<GetCommitResult> getCommitAsync(GetCommitRequest request)
      Description copied from interface: AWSCodeCommitAsync

      Returns information about a commit, including commit message and committer information.

      Specified by:
      getCommitAsync in interface AWSCodeCommitAsync
      Parameters:
      request - Represents the input of a get commit operation.
      Returns:
      A Java Future containing the result of the GetCommit operation returned by the service.
    • getCommitAsync

      public Future<GetCommitResult> getCommitAsync(GetCommitRequest request, AsyncHandler<GetCommitRequest,GetCommitResult> asyncHandler)
      Description copied from interface: AWSCodeCommitAsync

      Returns information about a commit, including commit message and committer information.

      Specified by:
      getCommitAsync in interface AWSCodeCommitAsync
      Parameters:
      request - Represents the input of a get commit operation.
      asyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.
      Returns:
      A Java Future containing the result of the GetCommit operation returned by the service.
    • getRepositoryAsync

      public Future<GetRepositoryResult> getRepositoryAsync(GetRepositoryRequest request)
      Description copied from interface: AWSCodeCommitAsync

      Returns information about a repository.

      The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a web page could expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a web page.

      Specified by:
      getRepositoryAsync in interface AWSCodeCommitAsync
      Parameters:
      request - Represents the input of a get repository operation.
      Returns:
      A Java Future containing the result of the GetRepository operation returned by the service.
    • getRepositoryAsync

      Description copied from interface: AWSCodeCommitAsync

      Returns information about a repository.

      The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a web page could expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a web page.

      Specified by:
      getRepositoryAsync in interface AWSCodeCommitAsync
      Parameters:
      request - Represents the input of a get repository operation.
      asyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.
      Returns:
      A Java Future containing the result of the GetRepository operation returned by the service.
    • getRepositoryTriggersAsync

      public Future<GetRepositoryTriggersResult> getRepositoryTriggersAsync(GetRepositoryTriggersRequest request)
      Description copied from interface: AWSCodeCommitAsync

      Gets information about triggers configured for a repository.

      Specified by:
      getRepositoryTriggersAsync in interface AWSCodeCommitAsync
      Parameters:
      request - Represents the input of a get repository triggers operation.
      Returns:
      A Java Future containing the result of the GetRepositoryTriggers operation returned by the service.
    • getRepositoryTriggersAsync

      Description copied from interface: AWSCodeCommitAsync

      Gets information about triggers configured for a repository.

      Specified by:
      getRepositoryTriggersAsync in interface AWSCodeCommitAsync
      Parameters:
      request - Represents the input of a get repository triggers operation.
      asyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.
      Returns:
      A Java Future containing the result of the GetRepositoryTriggers operation returned by the service.
    • listBranchesAsync

      public Future<ListBranchesResult> listBranchesAsync(ListBranchesRequest request)
      Description copied from interface: AWSCodeCommitAsync

      Gets information about one or more branches in a repository.

      Specified by:
      listBranchesAsync in interface AWSCodeCommitAsync
      Parameters:
      request - Represents the input of a list branches operation.
      Returns:
      A Java Future containing the result of the ListBranches operation returned by the service.
    • listBranchesAsync

      Description copied from interface: AWSCodeCommitAsync

      Gets information about one or more branches in a repository.

      Specified by:
      listBranchesAsync in interface AWSCodeCommitAsync
      Parameters:
      request - Represents the input of a list branches operation.
      asyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.
      Returns:
      A Java Future containing the result of the ListBranches operation returned by the service.
    • listRepositoriesAsync

      public Future<ListRepositoriesResult> listRepositoriesAsync(ListRepositoriesRequest request)
      Description copied from interface: AWSCodeCommitAsync

      Gets information about one or more repositories.

      Specified by:
      listRepositoriesAsync in interface AWSCodeCommitAsync
      Parameters:
      request - Represents the input of a list repositories operation.
      Returns:
      A Java Future containing the result of the ListRepositories operation returned by the service.
    • listRepositoriesAsync

      Description copied from interface: AWSCodeCommitAsync

      Gets information about one or more repositories.

      Specified by:
      listRepositoriesAsync in interface AWSCodeCommitAsync
      Parameters:
      request - Represents the input of a list repositories operation.
      asyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.
      Returns:
      A Java Future containing the result of the ListRepositories operation returned by the service.
    • putRepositoryTriggersAsync

      public Future<PutRepositoryTriggersResult> putRepositoryTriggersAsync(PutRepositoryTriggersRequest request)
      Description copied from interface: AWSCodeCommitAsync

      Replaces all triggers for a repository. This can be used to create or delete triggers.

      Specified by:
      putRepositoryTriggersAsync in interface AWSCodeCommitAsync
      Parameters:
      request - Represents the input ofa put repository triggers operation.
      Returns:
      A Java Future containing the result of the PutRepositoryTriggers operation returned by the service.
    • putRepositoryTriggersAsync

      Description copied from interface: AWSCodeCommitAsync

      Replaces all triggers for a repository. This can be used to create or delete triggers.

      Specified by:
      putRepositoryTriggersAsync in interface AWSCodeCommitAsync
      Parameters:
      request - Represents the input ofa put repository triggers operation.
      asyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.
      Returns:
      A Java Future containing the result of the PutRepositoryTriggers operation returned by the service.
    • testRepositoryTriggersAsync

      public Future<TestRepositoryTriggersResult> testRepositoryTriggersAsync(TestRepositoryTriggersRequest request)
      Description copied from interface: AWSCodeCommitAsync

      Tests the functionality of repository triggers by sending information to the trigger target. If real data is available in the repository, the test will send data from the last commit. If no data is available, sample data will be generated.

      Specified by:
      testRepositoryTriggersAsync in interface AWSCodeCommitAsync
      Parameters:
      request - Represents the input of a test repository triggers operation.
      Returns:
      A Java Future containing the result of the TestRepositoryTriggers operation returned by the service.
    • testRepositoryTriggersAsync

      Description copied from interface: AWSCodeCommitAsync

      Tests the functionality of repository triggers by sending information to the trigger target. If real data is available in the repository, the test will send data from the last commit. If no data is available, sample data will be generated.

      Specified by:
      testRepositoryTriggersAsync in interface AWSCodeCommitAsync
      Parameters:
      request - Represents the input of a test repository triggers operation.
      asyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.
      Returns:
      A Java Future containing the result of the TestRepositoryTriggers operation returned by the service.
    • updateDefaultBranchAsync

      public Future<UpdateDefaultBranchResult> updateDefaultBranchAsync(UpdateDefaultBranchRequest request)
      Description copied from interface: AWSCodeCommitAsync

      Sets or changes the default branch name for the specified repository.

      If you use this operation to change the default branch name to the current default branch name, a success message is returned even though the default branch did not change.

      Specified by:
      updateDefaultBranchAsync in interface AWSCodeCommitAsync
      Parameters:
      request - Represents the input of an update default branch operation.
      Returns:
      A Java Future containing the result of the UpdateDefaultBranch operation returned by the service.
    • updateDefaultBranchAsync

      Description copied from interface: AWSCodeCommitAsync

      Sets or changes the default branch name for the specified repository.

      If you use this operation to change the default branch name to the current default branch name, a success message is returned even though the default branch did not change.

      Specified by:
      updateDefaultBranchAsync in interface AWSCodeCommitAsync
      Parameters:
      request - Represents the input of an update default branch operation.
      asyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.
      Returns:
      A Java Future containing the result of the UpdateDefaultBranch operation returned by the service.
    • updateRepositoryDescriptionAsync

      public Future<UpdateRepositoryDescriptionResult> updateRepositoryDescriptionAsync(UpdateRepositoryDescriptionRequest request)
      Description copied from interface: AWSCodeCommitAsync

      Sets or changes the comment or description for a repository.

      The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a web page could expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a web page.

      Specified by:
      updateRepositoryDescriptionAsync in interface AWSCodeCommitAsync
      Parameters:
      request - Represents the input of an update repository description operation.
      Returns:
      A Java Future containing the result of the UpdateRepositoryDescription operation returned by the service.
    • updateRepositoryDescriptionAsync

      Description copied from interface: AWSCodeCommitAsync

      Sets or changes the comment or description for a repository.

      The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a web page could expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a web page.

      Specified by:
      updateRepositoryDescriptionAsync in interface AWSCodeCommitAsync
      Parameters:
      request - Represents the input of an update repository description operation.
      asyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.
      Returns:
      A Java Future containing the result of the UpdateRepositoryDescription operation returned by the service.
    • updateRepositoryNameAsync

      public Future<UpdateRepositoryNameResult> updateRepositoryNameAsync(UpdateRepositoryNameRequest request)
      Description copied from interface: AWSCodeCommitAsync

      Renames a repository. The repository name must be unique across the calling AWS account. In addition, repository names are limited to 100 alphanumeric, dash, and underscore characters, and cannot include certain characters. The suffix ".git" is prohibited. For a full description of the limits on repository names, see Limits in the AWS CodeCommit User Guide.

      Specified by:
      updateRepositoryNameAsync in interface AWSCodeCommitAsync
      Parameters:
      request - Represents the input of an update repository description operation.
      Returns:
      A Java Future containing the result of the UpdateRepositoryName operation returned by the service.
    • updateRepositoryNameAsync

      Description copied from interface: AWSCodeCommitAsync

      Renames a repository. The repository name must be unique across the calling AWS account. In addition, repository names are limited to 100 alphanumeric, dash, and underscore characters, and cannot include certain characters. The suffix ".git" is prohibited. For a full description of the limits on repository names, see Limits in the AWS CodeCommit User Guide.

      Specified by:
      updateRepositoryNameAsync in interface AWSCodeCommitAsync
      Parameters:
      request - Represents the input of an update repository description operation.
      asyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.
      Returns:
      A Java Future containing the result of the UpdateRepositoryName operation returned by the service.