@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AWSCodeCommitAsyncClient extends AWSCodeCommitClient implements AWSCodeCommitAsync
AsyncHandler can be used to receive
notification when an asynchronous operation completes.
This is the AWS CodeCommit API Reference. This reference provides descriptions of the operations and data types for AWS CodeCommit API along with usage examples.
You can use the AWS CodeCommit API to work with the following objects:
Repositories, by calling the following:
BatchGetRepositories, which returns information about one or more repositories associated with your AWS account.
CreateRepository, which creates an AWS CodeCommit repository.
DeleteRepository, which deletes an AWS CodeCommit repository.
GetRepository, which returns information about a specified repository.
ListRepositories, which lists all AWS CodeCommit repositories associated with your AWS account.
UpdateRepositoryDescription, which sets or updates the description of the repository.
UpdateRepositoryName, which changes the name of the repository. If you change the name of a repository, no other users of that repository will be able to access it until you send them the new HTTPS or SSH URL to use.
Branches, by calling the following:
CreateBranch, which creates a new branch in a specified repository.
DeleteBranch, which deletes the specified branch in a repository unless it is the default branch.
GetBranch, which returns information about a specified branch.
ListBranches, which lists all branches for a specified repository.
UpdateDefaultBranch, which changes the default branch for a repository.
Files, by calling the following:
DeleteFile, which deletes the content of a specified file from a specified branch.
GetFile, which returns the base-64 encoded content of a specified file.
GetFolder, which returns the contents of a specified folder or directory.
PutFile, which adds or modifies a file in a specified repository and branch.
Information about committed code in a repository, by calling the following:
GetBlob, which returns the base-64 encoded content of an individual Git blob object within a repository.
GetCommit, which returns information about a commit, including commit messages and author and committer information.
GetDifferences, which returns information about the differences in a valid commit specifier (such as a branch, tag, HEAD, commit ID or other fully qualified reference).
Pull requests, by calling the following:
CreatePullRequest, which creates a pull request in a specified repository.
DescribePullRequestEvents, which returns information about one or more pull request events.
GetCommentsForPullRequest, which returns information about comments on a specified pull request.
GetMergeConflicts, which returns information about merge conflicts between the source and destination branch in a pull request.
GetPullRequest, which returns information about a specified pull request.
ListPullRequests, which lists all pull requests for a repository.
MergePullRequestByFastForward, which merges the source destination branch of a pull request into the specified destination branch for that pull request using the fast-forward merge option.
PostCommentForPullRequest, which posts a comment to a pull request at the specified line, file, or request.
UpdatePullRequestDescription, which updates the description of a pull request.
UpdatePullRequestStatus, which updates the status of a pull request.
UpdatePullRequestTitle, which updates the title of a pull request.
Information about comments in a repository, by calling the following:
DeleteCommentContent, which deletes the content of a comment on a commit in a repository.
GetComment, which returns information about a comment on a commit.
GetCommentsForComparedCommit, which returns information about comments on the comparison between two commit specifiers in a repository.
PostCommentForComparedCommit, which creates a comment on the comparison between two commit specifiers in a repository.
PostCommentReply, which creates a reply to a comment.
UpdateComment, which updates the content of a comment on a commit in a repository.
Triggers, by calling the following:
GetRepositoryTriggers, which returns information about triggers configured for a repository.
PutRepositoryTriggers, which replaces all triggers for a repository and can be used to create or delete triggers.
TestRepositoryTriggers, which tests the functionality of a repository trigger by sending data to the trigger target.
For information about how to use AWS CodeCommit, see the AWS CodeCommit User Guide.
LOGGING_AWS_REQUEST_METRICENDPOINT_PREFIX| Constructor and Description |
|---|
AWSCodeCommitAsyncClient()
Deprecated.
|
AWSCodeCommitAsyncClient(AWSCredentials awsCredentials)
Deprecated.
|
AWSCodeCommitAsyncClient(AWSCredentials awsCredentials,
ClientConfiguration clientConfiguration,
ExecutorService executorService)
|
AWSCodeCommitAsyncClient(AWSCredentials awsCredentials,
ExecutorService executorService)
|
AWSCodeCommitAsyncClient(AWSCredentialsProvider awsCredentialsProvider)
Deprecated.
|
AWSCodeCommitAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration)
|
AWSCodeCommitAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration,
ExecutorService executorService)
|
AWSCodeCommitAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ExecutorService executorService)
|
AWSCodeCommitAsyncClient(ClientConfiguration clientConfiguration)
Deprecated.
|
batchGetRepositories, builder, createBranch, createPullRequest, createRepository, deleteBranch, deleteCommentContent, deleteFile, deleteRepository, describePullRequestEvents, getBlob, getBranch, getCachedResponseMetadata, getComment, getCommentsForComparedCommit, getCommentsForPullRequest, getCommit, getDifferences, getFile, getFolder, getMergeConflicts, getPullRequest, getRepository, getRepositoryTriggers, listBranches, listPullRequests, listRepositories, mergePullRequestByFastForward, postCommentForComparedCommit, postCommentForPullRequest, postCommentReply, putFile, putRepositoryTriggers, testRepositoryTriggers, updateComment, updateDefaultBranch, updatePullRequestDescription, updatePullRequestStatus, updatePullRequestTitle, updateRepositoryDescription, updateRepositoryNameaddRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffsetequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbatchGetRepositories, createBranch, createPullRequest, createRepository, deleteBranch, deleteCommentContent, deleteFile, deleteRepository, describePullRequestEvents, getBlob, getBranch, getCachedResponseMetadata, getComment, getCommentsForComparedCommit, getCommentsForPullRequest, getCommit, getDifferences, getFile, getFolder, getMergeConflicts, getPullRequest, getRepository, getRepositoryTriggers, listBranches, listPullRequests, listRepositories, mergePullRequestByFastForward, postCommentForComparedCommit, postCommentForPullRequest, postCommentReply, putFile, putRepositoryTriggers, setEndpoint, setRegion, testRepositoryTriggers, updateComment, updateDefaultBranch, updatePullRequestDescription, updatePullRequestStatus, updatePullRequestTitle, updateRepositoryDescription, updateRepositoryName@Deprecated public AWSCodeCommitAsyncClient()
AWSCodeCommitAsyncClientBuilder.defaultClient()Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default maximum number of concurrent connections to the service).
@Deprecated public AWSCodeCommitAsyncClient(ClientConfiguration clientConfiguration)
AwsClientBuilder.withClientConfiguration(ClientConfiguration)
Asynchronous methods are delegated to a fixed-size thread pool containing a number of threads equal to the
maximum number of concurrent connections configured via ClientConfiguration.getMaxConnections().
clientConfiguration - The client configuration options controlling how this client connects to CodeCommit (ex: proxy settings,
retry counts, etc).DefaultAWSCredentialsProviderChain,
Executors.newFixedThreadPool(int)@Deprecated public AWSCodeCommitAsyncClient(AWSCredentials awsCredentials)
AwsClientBuilder.withCredentials(AWSCredentialsProvider)Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default maximum number of concurrent connections to the service).
awsCredentials - The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.Executors.newFixedThreadPool(int)@Deprecated public AWSCodeCommitAsyncClient(AWSCredentials awsCredentials, ExecutorService executorService)
AwsClientBuilder.withCredentials(AWSCredentialsProvider) and
AwsAsyncClientBuilder.withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)awsCredentials - The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.executorService - The executor service by which all asynchronous requests will be executed.@Deprecated public AWSCodeCommitAsyncClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration, ExecutorService executorService)
AwsClientBuilder.withCredentials(AWSCredentialsProvider) and
AwsClientBuilder.withClientConfiguration(ClientConfiguration) and
AwsAsyncClientBuilder.withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)awsCredentials - The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.clientConfiguration - Client configuration options (ex: max retry limit, proxy settings, etc).executorService - The executor service by which all asynchronous requests will be executed.@Deprecated public AWSCodeCommitAsyncClient(AWSCredentialsProvider awsCredentialsProvider)
AwsClientBuilder.withCredentials(AWSCredentialsProvider)Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default maximum number of concurrent connections to the service).
awsCredentialsProvider - The AWS credentials provider which will provide credentials to authenticate requests with AWS services.Executors.newFixedThreadPool(int)@Deprecated public AWSCodeCommitAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration)
AwsClientBuilder.withCredentials(AWSCredentialsProvider) and
AwsClientBuilder.withClientConfiguration(ClientConfiguration)
Asynchronous methods are delegated to a fixed-size thread pool containing a number of threads equal to the
maximum number of concurrent connections configured via ClientConfiguration.getMaxConnections().
awsCredentialsProvider - The AWS credentials provider which will provide credentials to authenticate requests with AWS services.clientConfiguration - Client configuration options (ex: max retry limit, proxy settings, etc).DefaultAWSCredentialsProviderChain,
Executors.newFixedThreadPool(int)@Deprecated public AWSCodeCommitAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ExecutorService executorService)
AwsClientBuilder.withCredentials(AWSCredentialsProvider) and
AwsAsyncClientBuilder.withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)awsCredentialsProvider - The AWS credentials provider which will provide credentials to authenticate requests with AWS services.executorService - The executor service by which all asynchronous requests will be executed.@Deprecated public AWSCodeCommitAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, ExecutorService executorService)
AwsClientBuilder.withCredentials(AWSCredentialsProvider) and
AwsClientBuilder.withClientConfiguration(ClientConfiguration) and
AwsAsyncClientBuilder.withExecutorFactory(com.amazonaws.client.builder.ExecutorFactory)awsCredentialsProvider - The AWS credentials provider which will provide credentials to authenticate requests with AWS services.clientConfiguration - Client configuration options (ex: max retry limit, proxy settings, etc).executorService - The executor service by which all asynchronous requests will be executed.public static AWSCodeCommitAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<BatchGetRepositoriesResult> batchGetRepositoriesAsync(BatchGetRepositoriesRequest request)
AWSCodeCommitAsyncReturns 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.
batchGetRepositoriesAsync in interface AWSCodeCommitAsyncrequest - Represents the input of a batch get repositories operation.public Future<BatchGetRepositoriesResult> batchGetRepositoriesAsync(BatchGetRepositoriesRequest request, AsyncHandler<BatchGetRepositoriesRequest,BatchGetRepositoriesResult> asyncHandler)
AWSCodeCommitAsyncReturns 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.
batchGetRepositoriesAsync in interface AWSCodeCommitAsyncrequest - 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.public Future<CreateBranchResult> createBranchAsync(CreateBranchRequest request)
AWSCodeCommitAsyncCreates 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.
createBranchAsync in interface AWSCodeCommitAsyncrequest - Represents the input of a create branch operation.public Future<CreateBranchResult> createBranchAsync(CreateBranchRequest request, AsyncHandler<CreateBranchRequest,CreateBranchResult> asyncHandler)
AWSCodeCommitAsyncCreates 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.
createBranchAsync in interface AWSCodeCommitAsyncrequest - 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.public Future<CreatePullRequestResult> createPullRequestAsync(CreatePullRequestRequest request)
AWSCodeCommitAsyncCreates a pull request in the specified repository.
createPullRequestAsync in interface AWSCodeCommitAsyncpublic Future<CreatePullRequestResult> createPullRequestAsync(CreatePullRequestRequest request, AsyncHandler<CreatePullRequestRequest,CreatePullRequestResult> asyncHandler)
AWSCodeCommitAsyncCreates a pull request in the specified repository.
createPullRequestAsync in interface AWSCodeCommitAsyncasyncHandler - 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.public Future<CreateRepositoryResult> createRepositoryAsync(CreateRepositoryRequest request)
AWSCodeCommitAsyncCreates a new, empty repository.
createRepositoryAsync in interface AWSCodeCommitAsyncrequest - Represents the input of a create repository operation.public Future<CreateRepositoryResult> createRepositoryAsync(CreateRepositoryRequest request, AsyncHandler<CreateRepositoryRequest,CreateRepositoryResult> asyncHandler)
AWSCodeCommitAsyncCreates a new, empty repository.
createRepositoryAsync in interface AWSCodeCommitAsyncrequest - 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.public Future<DeleteBranchResult> deleteBranchAsync(DeleteBranchRequest request)
AWSCodeCommitAsyncDeletes a branch from a repository, unless that branch is the default branch for the repository.
deleteBranchAsync in interface AWSCodeCommitAsyncrequest - Represents the input of a delete branch operation.public Future<DeleteBranchResult> deleteBranchAsync(DeleteBranchRequest request, AsyncHandler<DeleteBranchRequest,DeleteBranchResult> asyncHandler)
AWSCodeCommitAsyncDeletes a branch from a repository, unless that branch is the default branch for the repository.
deleteBranchAsync in interface AWSCodeCommitAsyncrequest - Represents the input of a delete 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.public Future<DeleteCommentContentResult> deleteCommentContentAsync(DeleteCommentContentRequest request)
AWSCodeCommitAsyncDeletes the content of a comment made on a change, file, or commit in a repository.
deleteCommentContentAsync in interface AWSCodeCommitAsyncpublic Future<DeleteCommentContentResult> deleteCommentContentAsync(DeleteCommentContentRequest request, AsyncHandler<DeleteCommentContentRequest,DeleteCommentContentResult> asyncHandler)
AWSCodeCommitAsyncDeletes the content of a comment made on a change, file, or commit in a repository.
deleteCommentContentAsync in interface AWSCodeCommitAsyncasyncHandler - 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.public Future<DeleteFileResult> deleteFileAsync(DeleteFileRequest request)
AWSCodeCommitAsyncDeletes a specified file from a specified branch. A commit is created on the branch that contains the revision. The file will still exist in the commits prior to the commit that contains the deletion.
deleteFileAsync in interface AWSCodeCommitAsyncpublic Future<DeleteFileResult> deleteFileAsync(DeleteFileRequest request, AsyncHandler<DeleteFileRequest,DeleteFileResult> asyncHandler)
AWSCodeCommitAsyncDeletes a specified file from a specified branch. A commit is created on the branch that contains the revision. The file will still exist in the commits prior to the commit that contains the deletion.
deleteFileAsync in interface AWSCodeCommitAsyncasyncHandler - 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.public Future<DeleteRepositoryResult> deleteRepositoryAsync(DeleteRepositoryRequest request)
AWSCodeCommitAsyncDeletes 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.
deleteRepositoryAsync in interface AWSCodeCommitAsyncrequest - Represents the input of a delete repository operation.public Future<DeleteRepositoryResult> deleteRepositoryAsync(DeleteRepositoryRequest request, AsyncHandler<DeleteRepositoryRequest,DeleteRepositoryResult> asyncHandler)
AWSCodeCommitAsyncDeletes 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.
deleteRepositoryAsync in interface AWSCodeCommitAsyncrequest - 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.public Future<DescribePullRequestEventsResult> describePullRequestEventsAsync(DescribePullRequestEventsRequest request)
AWSCodeCommitAsyncReturns information about one or more pull request events.
describePullRequestEventsAsync in interface AWSCodeCommitAsyncpublic Future<DescribePullRequestEventsResult> describePullRequestEventsAsync(DescribePullRequestEventsRequest request, AsyncHandler<DescribePullRequestEventsRequest,DescribePullRequestEventsResult> asyncHandler)
AWSCodeCommitAsyncReturns information about one or more pull request events.
describePullRequestEventsAsync in interface AWSCodeCommitAsyncasyncHandler - 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.public Future<GetBlobResult> getBlobAsync(GetBlobRequest request)
AWSCodeCommitAsyncReturns the base-64 encoded content of an individual blob within a repository.
getBlobAsync in interface AWSCodeCommitAsyncrequest - Represents the input of a get blob operation.public Future<GetBlobResult> getBlobAsync(GetBlobRequest request, AsyncHandler<GetBlobRequest,GetBlobResult> asyncHandler)
AWSCodeCommitAsyncReturns the base-64 encoded content of an individual blob within a repository.
getBlobAsync in interface AWSCodeCommitAsyncrequest - Represents the input of a get blob 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.public Future<GetBranchResult> getBranchAsync(GetBranchRequest request)
AWSCodeCommitAsyncReturns information about a repository branch, including its name and the last commit ID.
getBranchAsync in interface AWSCodeCommitAsyncrequest - Represents the input of a get branch operation.public Future<GetBranchResult> getBranchAsync(GetBranchRequest request, AsyncHandler<GetBranchRequest,GetBranchResult> asyncHandler)
AWSCodeCommitAsyncReturns information about a repository branch, including its name and the last commit ID.
getBranchAsync in interface AWSCodeCommitAsyncrequest - 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.public Future<GetCommentResult> getCommentAsync(GetCommentRequest request)
AWSCodeCommitAsyncReturns the content of a comment made on a change, file, or commit in a repository.
getCommentAsync in interface AWSCodeCommitAsyncpublic Future<GetCommentResult> getCommentAsync(GetCommentRequest request, AsyncHandler<GetCommentRequest,GetCommentResult> asyncHandler)
AWSCodeCommitAsyncReturns the content of a comment made on a change, file, or commit in a repository.
getCommentAsync in interface AWSCodeCommitAsyncasyncHandler - 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.public Future<GetCommentsForComparedCommitResult> getCommentsForComparedCommitAsync(GetCommentsForComparedCommitRequest request)
AWSCodeCommitAsyncReturns information about comments made on the comparison between two commits.
getCommentsForComparedCommitAsync in interface AWSCodeCommitAsyncpublic Future<GetCommentsForComparedCommitResult> getCommentsForComparedCommitAsync(GetCommentsForComparedCommitRequest request, AsyncHandler<GetCommentsForComparedCommitRequest,GetCommentsForComparedCommitResult> asyncHandler)
AWSCodeCommitAsyncReturns information about comments made on the comparison between two commits.
getCommentsForComparedCommitAsync in interface AWSCodeCommitAsyncasyncHandler - 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.public Future<GetCommentsForPullRequestResult> getCommentsForPullRequestAsync(GetCommentsForPullRequestRequest request)
AWSCodeCommitAsyncReturns comments made on a pull request.
getCommentsForPullRequestAsync in interface AWSCodeCommitAsyncpublic Future<GetCommentsForPullRequestResult> getCommentsForPullRequestAsync(GetCommentsForPullRequestRequest request, AsyncHandler<GetCommentsForPullRequestRequest,GetCommentsForPullRequestResult> asyncHandler)
AWSCodeCommitAsyncReturns comments made on a pull request.
getCommentsForPullRequestAsync in interface AWSCodeCommitAsyncasyncHandler - 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.public Future<GetCommitResult> getCommitAsync(GetCommitRequest request)
AWSCodeCommitAsyncReturns information about a commit, including commit message and committer information.
getCommitAsync in interface AWSCodeCommitAsyncrequest - Represents the input of a get commit operation.public Future<GetCommitResult> getCommitAsync(GetCommitRequest request, AsyncHandler<GetCommitRequest,GetCommitResult> asyncHandler)
AWSCodeCommitAsyncReturns information about a commit, including commit message and committer information.
getCommitAsync in interface AWSCodeCommitAsyncrequest - 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.public Future<GetDifferencesResult> getDifferencesAsync(GetDifferencesRequest request)
AWSCodeCommitAsyncReturns information about the differences in a valid commit specifier (such as a branch, tag, HEAD, commit ID or other fully qualified reference). Results can be limited to a specified path.
getDifferencesAsync in interface AWSCodeCommitAsyncpublic Future<GetDifferencesResult> getDifferencesAsync(GetDifferencesRequest request, AsyncHandler<GetDifferencesRequest,GetDifferencesResult> asyncHandler)
AWSCodeCommitAsyncReturns information about the differences in a valid commit specifier (such as a branch, tag, HEAD, commit ID or other fully qualified reference). Results can be limited to a specified path.
getDifferencesAsync in interface AWSCodeCommitAsyncasyncHandler - 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.public Future<GetFileResult> getFileAsync(GetFileRequest request)
AWSCodeCommitAsyncReturns the base-64 encoded contents of a specified file and its metadata.
getFileAsync in interface AWSCodeCommitAsyncpublic Future<GetFileResult> getFileAsync(GetFileRequest request, AsyncHandler<GetFileRequest,GetFileResult> asyncHandler)
AWSCodeCommitAsyncReturns the base-64 encoded contents of a specified file and its metadata.
getFileAsync in interface AWSCodeCommitAsyncasyncHandler - 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.public Future<GetFolderResult> getFolderAsync(GetFolderRequest request)
AWSCodeCommitAsyncReturns the contents of a specified folder in a repository.
getFolderAsync in interface AWSCodeCommitAsyncpublic Future<GetFolderResult> getFolderAsync(GetFolderRequest request, AsyncHandler<GetFolderRequest,GetFolderResult> asyncHandler)
AWSCodeCommitAsyncReturns the contents of a specified folder in a repository.
getFolderAsync in interface AWSCodeCommitAsyncasyncHandler - 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.public Future<GetMergeConflictsResult> getMergeConflictsAsync(GetMergeConflictsRequest request)
AWSCodeCommitAsyncReturns information about merge conflicts between the before and after commit IDs for a pull request in a repository.
getMergeConflictsAsync in interface AWSCodeCommitAsyncpublic Future<GetMergeConflictsResult> getMergeConflictsAsync(GetMergeConflictsRequest request, AsyncHandler<GetMergeConflictsRequest,GetMergeConflictsResult> asyncHandler)
AWSCodeCommitAsyncReturns information about merge conflicts between the before and after commit IDs for a pull request in a repository.
getMergeConflictsAsync in interface AWSCodeCommitAsyncasyncHandler - 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.public Future<GetPullRequestResult> getPullRequestAsync(GetPullRequestRequest request)
AWSCodeCommitAsyncGets information about a pull request in a specified repository.
getPullRequestAsync in interface AWSCodeCommitAsyncpublic Future<GetPullRequestResult> getPullRequestAsync(GetPullRequestRequest request, AsyncHandler<GetPullRequestRequest,GetPullRequestResult> asyncHandler)
AWSCodeCommitAsyncGets information about a pull request in a specified repository.
getPullRequestAsync in interface AWSCodeCommitAsyncasyncHandler - 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.public Future<GetRepositoryResult> getRepositoryAsync(GetRepositoryRequest request)
AWSCodeCommitAsyncReturns 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.
getRepositoryAsync in interface AWSCodeCommitAsyncrequest - Represents the input of a get repository operation.public Future<GetRepositoryResult> getRepositoryAsync(GetRepositoryRequest request, AsyncHandler<GetRepositoryRequest,GetRepositoryResult> asyncHandler)
AWSCodeCommitAsyncReturns 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.
getRepositoryAsync in interface AWSCodeCommitAsyncrequest - 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.public Future<GetRepositoryTriggersResult> getRepositoryTriggersAsync(GetRepositoryTriggersRequest request)
AWSCodeCommitAsyncGets information about triggers configured for a repository.
getRepositoryTriggersAsync in interface AWSCodeCommitAsyncrequest - Represents the input of a get repository triggers operation.public Future<GetRepositoryTriggersResult> getRepositoryTriggersAsync(GetRepositoryTriggersRequest request, AsyncHandler<GetRepositoryTriggersRequest,GetRepositoryTriggersResult> asyncHandler)
AWSCodeCommitAsyncGets information about triggers configured for a repository.
getRepositoryTriggersAsync in interface AWSCodeCommitAsyncrequest - 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.public Future<ListBranchesResult> listBranchesAsync(ListBranchesRequest request)
AWSCodeCommitAsyncGets information about one or more branches in a repository.
listBranchesAsync in interface AWSCodeCommitAsyncrequest - Represents the input of a list branches operation.public Future<ListBranchesResult> listBranchesAsync(ListBranchesRequest request, AsyncHandler<ListBranchesRequest,ListBranchesResult> asyncHandler)
AWSCodeCommitAsyncGets information about one or more branches in a repository.
listBranchesAsync in interface AWSCodeCommitAsyncrequest - 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.public Future<ListPullRequestsResult> listPullRequestsAsync(ListPullRequestsRequest request)
AWSCodeCommitAsyncReturns a list of pull requests for a specified repository. The return list can be refined by pull request status or pull request author ARN.
listPullRequestsAsync in interface AWSCodeCommitAsyncpublic Future<ListPullRequestsResult> listPullRequestsAsync(ListPullRequestsRequest request, AsyncHandler<ListPullRequestsRequest,ListPullRequestsResult> asyncHandler)
AWSCodeCommitAsyncReturns a list of pull requests for a specified repository. The return list can be refined by pull request status or pull request author ARN.
listPullRequestsAsync in interface AWSCodeCommitAsyncasyncHandler - 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.public Future<ListRepositoriesResult> listRepositoriesAsync(ListRepositoriesRequest request)
AWSCodeCommitAsyncGets information about one or more repositories.
listRepositoriesAsync in interface AWSCodeCommitAsyncrequest - Represents the input of a list repositories operation.public Future<ListRepositoriesResult> listRepositoriesAsync(ListRepositoriesRequest request, AsyncHandler<ListRepositoriesRequest,ListRepositoriesResult> asyncHandler)
AWSCodeCommitAsyncGets information about one or more repositories.
listRepositoriesAsync in interface AWSCodeCommitAsyncrequest - 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.public Future<MergePullRequestByFastForwardResult> mergePullRequestByFastForwardAsync(MergePullRequestByFastForwardRequest request)
AWSCodeCommitAsyncCloses a pull request and attempts to merge the source commit of a pull request into the specified destination branch for that pull request at the specified commit using the fast-forward merge option.
mergePullRequestByFastForwardAsync in interface AWSCodeCommitAsyncpublic Future<MergePullRequestByFastForwardResult> mergePullRequestByFastForwardAsync(MergePullRequestByFastForwardRequest request, AsyncHandler<MergePullRequestByFastForwardRequest,MergePullRequestByFastForwardResult> asyncHandler)
AWSCodeCommitAsyncCloses a pull request and attempts to merge the source commit of a pull request into the specified destination branch for that pull request at the specified commit using the fast-forward merge option.
mergePullRequestByFastForwardAsync in interface AWSCodeCommitAsyncasyncHandler - 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.public Future<PostCommentForComparedCommitResult> postCommentForComparedCommitAsync(PostCommentForComparedCommitRequest request)
AWSCodeCommitAsyncPosts a comment on the comparison between two commits.
postCommentForComparedCommitAsync in interface AWSCodeCommitAsyncpublic Future<PostCommentForComparedCommitResult> postCommentForComparedCommitAsync(PostCommentForComparedCommitRequest request, AsyncHandler<PostCommentForComparedCommitRequest,PostCommentForComparedCommitResult> asyncHandler)
AWSCodeCommitAsyncPosts a comment on the comparison between two commits.
postCommentForComparedCommitAsync in interface AWSCodeCommitAsyncasyncHandler - 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.public Future<PostCommentForPullRequestResult> postCommentForPullRequestAsync(PostCommentForPullRequestRequest request)
AWSCodeCommitAsyncPosts a comment on a pull request.
postCommentForPullRequestAsync in interface AWSCodeCommitAsyncpublic Future<PostCommentForPullRequestResult> postCommentForPullRequestAsync(PostCommentForPullRequestRequest request, AsyncHandler<PostCommentForPullRequestRequest,PostCommentForPullRequestResult> asyncHandler)
AWSCodeCommitAsyncPosts a comment on a pull request.
postCommentForPullRequestAsync in interface AWSCodeCommitAsyncasyncHandler - 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.public Future<PostCommentReplyResult> postCommentReplyAsync(PostCommentReplyRequest request)
AWSCodeCommitAsyncPosts a comment in reply to an existing comment on a comparison between commits or a pull request.
postCommentReplyAsync in interface AWSCodeCommitAsyncpublic Future<PostCommentReplyResult> postCommentReplyAsync(PostCommentReplyRequest request, AsyncHandler<PostCommentReplyRequest,PostCommentReplyResult> asyncHandler)
AWSCodeCommitAsyncPosts a comment in reply to an existing comment on a comparison between commits or a pull request.
postCommentReplyAsync in interface AWSCodeCommitAsyncasyncHandler - 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.public Future<PutFileResult> putFileAsync(PutFileRequest request)
AWSCodeCommitAsyncAdds or updates a file in a branch in an AWS CodeCommit repository, and generates a commit for the addition in the specified branch.
putFileAsync in interface AWSCodeCommitAsyncpublic Future<PutFileResult> putFileAsync(PutFileRequest request, AsyncHandler<PutFileRequest,PutFileResult> asyncHandler)
AWSCodeCommitAsyncAdds or updates a file in a branch in an AWS CodeCommit repository, and generates a commit for the addition in the specified branch.
putFileAsync in interface AWSCodeCommitAsyncasyncHandler - 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.public Future<PutRepositoryTriggersResult> putRepositoryTriggersAsync(PutRepositoryTriggersRequest request)
AWSCodeCommitAsyncReplaces all triggers for a repository. This can be used to create or delete triggers.
putRepositoryTriggersAsync in interface AWSCodeCommitAsyncrequest - Represents the input ofa put repository triggers operation.public Future<PutRepositoryTriggersResult> putRepositoryTriggersAsync(PutRepositoryTriggersRequest request, AsyncHandler<PutRepositoryTriggersRequest,PutRepositoryTriggersResult> asyncHandler)
AWSCodeCommitAsyncReplaces all triggers for a repository. This can be used to create or delete triggers.
putRepositoryTriggersAsync in interface AWSCodeCommitAsyncrequest - 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.public Future<TestRepositoryTriggersResult> testRepositoryTriggersAsync(TestRepositoryTriggersRequest request)
AWSCodeCommitAsyncTests 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.
testRepositoryTriggersAsync in interface AWSCodeCommitAsyncrequest - Represents the input of a test repository triggers operation.public Future<TestRepositoryTriggersResult> testRepositoryTriggersAsync(TestRepositoryTriggersRequest request, AsyncHandler<TestRepositoryTriggersRequest,TestRepositoryTriggersResult> asyncHandler)
AWSCodeCommitAsyncTests 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.
testRepositoryTriggersAsync in interface AWSCodeCommitAsyncrequest - 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.public Future<UpdateCommentResult> updateCommentAsync(UpdateCommentRequest request)
AWSCodeCommitAsyncReplaces the contents of a comment.
updateCommentAsync in interface AWSCodeCommitAsyncpublic Future<UpdateCommentResult> updateCommentAsync(UpdateCommentRequest request, AsyncHandler<UpdateCommentRequest,UpdateCommentResult> asyncHandler)
AWSCodeCommitAsyncReplaces the contents of a comment.
updateCommentAsync in interface AWSCodeCommitAsyncasyncHandler - 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.public Future<UpdateDefaultBranchResult> updateDefaultBranchAsync(UpdateDefaultBranchRequest request)
AWSCodeCommitAsyncSets 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.
updateDefaultBranchAsync in interface AWSCodeCommitAsyncrequest - Represents the input of an update default branch operation.public Future<UpdateDefaultBranchResult> updateDefaultBranchAsync(UpdateDefaultBranchRequest request, AsyncHandler<UpdateDefaultBranchRequest,UpdateDefaultBranchResult> asyncHandler)
AWSCodeCommitAsyncSets 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.
updateDefaultBranchAsync in interface AWSCodeCommitAsyncrequest - 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.public Future<UpdatePullRequestDescriptionResult> updatePullRequestDescriptionAsync(UpdatePullRequestDescriptionRequest request)
AWSCodeCommitAsyncReplaces the contents of the description of a pull request.
updatePullRequestDescriptionAsync in interface AWSCodeCommitAsyncpublic Future<UpdatePullRequestDescriptionResult> updatePullRequestDescriptionAsync(UpdatePullRequestDescriptionRequest request, AsyncHandler<UpdatePullRequestDescriptionRequest,UpdatePullRequestDescriptionResult> asyncHandler)
AWSCodeCommitAsyncReplaces the contents of the description of a pull request.
updatePullRequestDescriptionAsync in interface AWSCodeCommitAsyncasyncHandler - 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.public Future<UpdatePullRequestStatusResult> updatePullRequestStatusAsync(UpdatePullRequestStatusRequest request)
AWSCodeCommitAsyncUpdates the status of a pull request.
updatePullRequestStatusAsync in interface AWSCodeCommitAsyncpublic Future<UpdatePullRequestStatusResult> updatePullRequestStatusAsync(UpdatePullRequestStatusRequest request, AsyncHandler<UpdatePullRequestStatusRequest,UpdatePullRequestStatusResult> asyncHandler)
AWSCodeCommitAsyncUpdates the status of a pull request.
updatePullRequestStatusAsync in interface AWSCodeCommitAsyncasyncHandler - 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.public Future<UpdatePullRequestTitleResult> updatePullRequestTitleAsync(UpdatePullRequestTitleRequest request)
AWSCodeCommitAsyncReplaces the title of a pull request.
updatePullRequestTitleAsync in interface AWSCodeCommitAsyncpublic Future<UpdatePullRequestTitleResult> updatePullRequestTitleAsync(UpdatePullRequestTitleRequest request, AsyncHandler<UpdatePullRequestTitleRequest,UpdatePullRequestTitleResult> asyncHandler)
AWSCodeCommitAsyncReplaces the title of a pull request.
updatePullRequestTitleAsync in interface AWSCodeCommitAsyncasyncHandler - 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.public Future<UpdateRepositoryDescriptionResult> updateRepositoryDescriptionAsync(UpdateRepositoryDescriptionRequest request)
AWSCodeCommitAsyncSets 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.
updateRepositoryDescriptionAsync in interface AWSCodeCommitAsyncrequest - Represents the input of an update repository description operation.public Future<UpdateRepositoryDescriptionResult> updateRepositoryDescriptionAsync(UpdateRepositoryDescriptionRequest request, AsyncHandler<UpdateRepositoryDescriptionRequest,UpdateRepositoryDescriptionResult> asyncHandler)
AWSCodeCommitAsyncSets 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.
updateRepositoryDescriptionAsync in interface AWSCodeCommitAsyncrequest - 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.public Future<UpdateRepositoryNameResult> updateRepositoryNameAsync(UpdateRepositoryNameRequest request)
AWSCodeCommitAsyncRenames 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.
updateRepositoryNameAsync in interface AWSCodeCommitAsyncrequest - Represents the input of an update repository description operation.public Future<UpdateRepositoryNameResult> updateRepositoryNameAsync(UpdateRepositoryNameRequest request, AsyncHandler<UpdateRepositoryNameRequest,UpdateRepositoryNameResult> asyncHandler)
AWSCodeCommitAsyncRenames 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.
updateRepositoryNameAsync in interface AWSCodeCommitAsyncrequest - 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.public void shutdown()
getExecutorService().shutdown() followed by getExecutorService().awaitTermination() prior to
calling this method.shutdown in interface AWSCodeCommitshutdown in class AmazonWebServiceClientCopyright © 2013 Amazon Web Services, Inc. All Rights Reserved.