@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AmazonCodeGuruReviewerAsyncClient extends AmazonCodeGuruReviewerClient implements AmazonCodeGuruReviewerAsync
AsyncHandler can be used to receive
notification when an asynchronous operation completes.
This section provides documentation for the Amazon CodeGuru Reviewer API operations. CodeGuru Reviewer is a service that uses program analysis and machine learning to detect potential defects that are difficult for developers to find and recommends fixes in your Java and Python code.
By proactively detecting and providing recommendations for addressing code defects and implementing best practices, CodeGuru Reviewer improves the overall quality and maintainability of your code base during the code review stage. For more information about CodeGuru Reviewer, see the Amazon CodeGuru Reviewer User Guide.
To improve the security of your CodeGuru Reviewer API calls, you can establish a private connection between your VPC and CodeGuru Reviewer by creating an interface VPC endpoint. For more information, see CodeGuru Reviewer and interface VPC endpoints (Amazon Web Services PrivateLink) in the Amazon CodeGuru Reviewer User Guide.
LOGGING_AWS_REQUEST_METRICENDPOINT_PREFIXassociateRepository, builder, createCodeReview, describeCodeReview, describeRecommendationFeedback, describeRepositoryAssociation, disassociateRepository, getCachedResponseMetadata, listCodeReviews, listRecommendationFeedback, listRecommendations, listRepositoryAssociations, listTagsForResource, putRecommendationFeedback, tagResource, untagResource, waitersaddRequestHandler, 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, waitassociateRepository, createCodeReview, describeCodeReview, describeRecommendationFeedback, describeRepositoryAssociation, disassociateRepository, getCachedResponseMetadata, listCodeReviews, listRecommendationFeedback, listRecommendations, listRepositoryAssociations, listTagsForResource, putRecommendationFeedback, tagResource, untagResource, waiterspublic static AmazonCodeGuruReviewerAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<AssociateRepositoryResult> associateRepositoryAsync(AssociateRepositoryRequest request)
AmazonCodeGuruReviewerAsyncUse to associate an Amazon Web Services CodeCommit repository or a repostory managed by Amazon Web Services CodeStar Connections with Amazon CodeGuru Reviewer. When you associate a repository, CodeGuru Reviewer reviews source code changes in the repository's pull requests and provides automatic recommendations. You can view recommendations using the CodeGuru Reviewer console. For more information, see Recommendations in Amazon CodeGuru Reviewer in the Amazon CodeGuru Reviewer User Guide.
If you associate a CodeCommit or S3 repository, it must be in the same Amazon Web Services Region and Amazon Web Services account where its CodeGuru Reviewer code reviews are configured.
Bitbucket and GitHub Enterprise Server repositories are managed by Amazon Web Services CodeStar Connections to connect to CodeGuru Reviewer. For more information, see Associate a repository in the Amazon CodeGuru Reviewer User Guide.
You cannot use the CodeGuru Reviewer SDK or the Amazon Web Services CLI to associate a GitHub repository with Amazon CodeGuru Reviewer. To associate a GitHub repository, use the console. For more information, see Getting started with CodeGuru Reviewer in the CodeGuru Reviewer User Guide.
associateRepositoryAsync in interface AmazonCodeGuruReviewerAsyncpublic Future<AssociateRepositoryResult> associateRepositoryAsync(AssociateRepositoryRequest request, AsyncHandler<AssociateRepositoryRequest,AssociateRepositoryResult> asyncHandler)
AmazonCodeGuruReviewerAsyncUse to associate an Amazon Web Services CodeCommit repository or a repostory managed by Amazon Web Services CodeStar Connections with Amazon CodeGuru Reviewer. When you associate a repository, CodeGuru Reviewer reviews source code changes in the repository's pull requests and provides automatic recommendations. You can view recommendations using the CodeGuru Reviewer console. For more information, see Recommendations in Amazon CodeGuru Reviewer in the Amazon CodeGuru Reviewer User Guide.
If you associate a CodeCommit or S3 repository, it must be in the same Amazon Web Services Region and Amazon Web Services account where its CodeGuru Reviewer code reviews are configured.
Bitbucket and GitHub Enterprise Server repositories are managed by Amazon Web Services CodeStar Connections to connect to CodeGuru Reviewer. For more information, see Associate a repository in the Amazon CodeGuru Reviewer User Guide.
You cannot use the CodeGuru Reviewer SDK or the Amazon Web Services CLI to associate a GitHub repository with Amazon CodeGuru Reviewer. To associate a GitHub repository, use the console. For more information, see Getting started with CodeGuru Reviewer in the CodeGuru Reviewer User Guide.
associateRepositoryAsync in interface AmazonCodeGuruReviewerAsyncasyncHandler - 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<CreateCodeReviewResult> createCodeReviewAsync(CreateCodeReviewRequest request)
AmazonCodeGuruReviewerAsync
Use to create a code review with a
CodeReviewType of RepositoryAnalysis. This type of code review analyzes all code
under a specified branch in an associated repository. PullRequest code reviews are automatically
triggered by a pull request.
createCodeReviewAsync in interface AmazonCodeGuruReviewerAsyncpublic Future<CreateCodeReviewResult> createCodeReviewAsync(CreateCodeReviewRequest request, AsyncHandler<CreateCodeReviewRequest,CreateCodeReviewResult> asyncHandler)
AmazonCodeGuruReviewerAsync
Use to create a code review with a
CodeReviewType of RepositoryAnalysis. This type of code review analyzes all code
under a specified branch in an associated repository. PullRequest code reviews are automatically
triggered by a pull request.
createCodeReviewAsync in interface AmazonCodeGuruReviewerAsyncasyncHandler - 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<DescribeCodeReviewResult> describeCodeReviewAsync(DescribeCodeReviewRequest request)
AmazonCodeGuruReviewerAsyncReturns the metadata associated with the code review along with its status.
describeCodeReviewAsync in interface AmazonCodeGuruReviewerAsyncpublic Future<DescribeCodeReviewResult> describeCodeReviewAsync(DescribeCodeReviewRequest request, AsyncHandler<DescribeCodeReviewRequest,DescribeCodeReviewResult> asyncHandler)
AmazonCodeGuruReviewerAsyncReturns the metadata associated with the code review along with its status.
describeCodeReviewAsync in interface AmazonCodeGuruReviewerAsyncasyncHandler - 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<DescribeRecommendationFeedbackResult> describeRecommendationFeedbackAsync(DescribeRecommendationFeedbackRequest request)
AmazonCodeGuruReviewerAsyncDescribes the customer feedback for a CodeGuru Reviewer recommendation.
describeRecommendationFeedbackAsync in interface AmazonCodeGuruReviewerAsyncpublic Future<DescribeRecommendationFeedbackResult> describeRecommendationFeedbackAsync(DescribeRecommendationFeedbackRequest request, AsyncHandler<DescribeRecommendationFeedbackRequest,DescribeRecommendationFeedbackResult> asyncHandler)
AmazonCodeGuruReviewerAsyncDescribes the customer feedback for a CodeGuru Reviewer recommendation.
describeRecommendationFeedbackAsync in interface AmazonCodeGuruReviewerAsyncasyncHandler - 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<DescribeRepositoryAssociationResult> describeRepositoryAssociationAsync(DescribeRepositoryAssociationRequest request)
AmazonCodeGuruReviewerAsync
Returns a
RepositoryAssociation object that contains information about the requested repository
association.
describeRepositoryAssociationAsync in interface AmazonCodeGuruReviewerAsyncpublic Future<DescribeRepositoryAssociationResult> describeRepositoryAssociationAsync(DescribeRepositoryAssociationRequest request, AsyncHandler<DescribeRepositoryAssociationRequest,DescribeRepositoryAssociationResult> asyncHandler)
AmazonCodeGuruReviewerAsync
Returns a
RepositoryAssociation object that contains information about the requested repository
association.
describeRepositoryAssociationAsync in interface AmazonCodeGuruReviewerAsyncasyncHandler - 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<DisassociateRepositoryResult> disassociateRepositoryAsync(DisassociateRepositoryRequest request)
AmazonCodeGuruReviewerAsyncRemoves the association between Amazon CodeGuru Reviewer and a repository.
disassociateRepositoryAsync in interface AmazonCodeGuruReviewerAsyncpublic Future<DisassociateRepositoryResult> disassociateRepositoryAsync(DisassociateRepositoryRequest request, AsyncHandler<DisassociateRepositoryRequest,DisassociateRepositoryResult> asyncHandler)
AmazonCodeGuruReviewerAsyncRemoves the association between Amazon CodeGuru Reviewer and a repository.
disassociateRepositoryAsync in interface AmazonCodeGuruReviewerAsyncasyncHandler - 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<ListCodeReviewsResult> listCodeReviewsAsync(ListCodeReviewsRequest request)
AmazonCodeGuruReviewerAsyncLists all the code reviews that the customer has created in the past 90 days.
listCodeReviewsAsync in interface AmazonCodeGuruReviewerAsyncpublic Future<ListCodeReviewsResult> listCodeReviewsAsync(ListCodeReviewsRequest request, AsyncHandler<ListCodeReviewsRequest,ListCodeReviewsResult> asyncHandler)
AmazonCodeGuruReviewerAsyncLists all the code reviews that the customer has created in the past 90 days.
listCodeReviewsAsync in interface AmazonCodeGuruReviewerAsyncasyncHandler - 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<ListRecommendationFeedbackResult> listRecommendationFeedbackAsync(ListRecommendationFeedbackRequest request)
AmazonCodeGuruReviewerAsync
Returns a list of
RecommendationFeedbackSummary objects that contain customer recommendation feedback for all
CodeGuru Reviewer users.
listRecommendationFeedbackAsync in interface AmazonCodeGuruReviewerAsyncpublic Future<ListRecommendationFeedbackResult> listRecommendationFeedbackAsync(ListRecommendationFeedbackRequest request, AsyncHandler<ListRecommendationFeedbackRequest,ListRecommendationFeedbackResult> asyncHandler)
AmazonCodeGuruReviewerAsync
Returns a list of
RecommendationFeedbackSummary objects that contain customer recommendation feedback for all
CodeGuru Reviewer users.
listRecommendationFeedbackAsync in interface AmazonCodeGuruReviewerAsyncasyncHandler - 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<ListRecommendationsResult> listRecommendationsAsync(ListRecommendationsRequest request)
AmazonCodeGuruReviewerAsyncReturns the list of all recommendations for a completed code review.
listRecommendationsAsync in interface AmazonCodeGuruReviewerAsyncpublic Future<ListRecommendationsResult> listRecommendationsAsync(ListRecommendationsRequest request, AsyncHandler<ListRecommendationsRequest,ListRecommendationsResult> asyncHandler)
AmazonCodeGuruReviewerAsyncReturns the list of all recommendations for a completed code review.
listRecommendationsAsync in interface AmazonCodeGuruReviewerAsyncasyncHandler - 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<ListRepositoryAssociationsResult> listRepositoryAssociationsAsync(ListRepositoryAssociationsRequest request)
AmazonCodeGuruReviewerAsync
Returns a list of
RepositoryAssociationSummary objects that contain summary information about a repository
association. You can filter the returned list by ProviderType , Name , State , and Owner .
listRepositoryAssociationsAsync in interface AmazonCodeGuruReviewerAsyncpublic Future<ListRepositoryAssociationsResult> listRepositoryAssociationsAsync(ListRepositoryAssociationsRequest request, AsyncHandler<ListRepositoryAssociationsRequest,ListRepositoryAssociationsResult> asyncHandler)
AmazonCodeGuruReviewerAsync
Returns a list of
RepositoryAssociationSummary objects that contain summary information about a repository
association. You can filter the returned list by ProviderType , Name , State , and Owner .
listRepositoryAssociationsAsync in interface AmazonCodeGuruReviewerAsyncasyncHandler - 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<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request)
AmazonCodeGuruReviewerAsyncReturns the list of tags associated with an associated repository resource.
listTagsForResourceAsync in interface AmazonCodeGuruReviewerAsyncpublic Future<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request, AsyncHandler<ListTagsForResourceRequest,ListTagsForResourceResult> asyncHandler)
AmazonCodeGuruReviewerAsyncReturns the list of tags associated with an associated repository resource.
listTagsForResourceAsync in interface AmazonCodeGuruReviewerAsyncasyncHandler - 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<PutRecommendationFeedbackResult> putRecommendationFeedbackAsync(PutRecommendationFeedbackRequest request)
AmazonCodeGuruReviewerAsyncStores customer feedback for a CodeGuru Reviewer recommendation. When this API is called again with different reactions the previous feedback is overwritten.
putRecommendationFeedbackAsync in interface AmazonCodeGuruReviewerAsyncpublic Future<PutRecommendationFeedbackResult> putRecommendationFeedbackAsync(PutRecommendationFeedbackRequest request, AsyncHandler<PutRecommendationFeedbackRequest,PutRecommendationFeedbackResult> asyncHandler)
AmazonCodeGuruReviewerAsyncStores customer feedback for a CodeGuru Reviewer recommendation. When this API is called again with different reactions the previous feedback is overwritten.
putRecommendationFeedbackAsync in interface AmazonCodeGuruReviewerAsyncasyncHandler - 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<TagResourceResult> tagResourceAsync(TagResourceRequest request)
AmazonCodeGuruReviewerAsyncAdds one or more tags to an associated repository.
tagResourceAsync in interface AmazonCodeGuruReviewerAsyncpublic Future<TagResourceResult> tagResourceAsync(TagResourceRequest request, AsyncHandler<TagResourceRequest,TagResourceResult> asyncHandler)
AmazonCodeGuruReviewerAsyncAdds one or more tags to an associated repository.
tagResourceAsync in interface AmazonCodeGuruReviewerAsyncasyncHandler - 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<UntagResourceResult> untagResourceAsync(UntagResourceRequest request)
AmazonCodeGuruReviewerAsyncRemoves a tag from an associated repository.
untagResourceAsync in interface AmazonCodeGuruReviewerAsyncpublic Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest request, AsyncHandler<UntagResourceRequest,UntagResourceResult> asyncHandler)
AmazonCodeGuruReviewerAsyncRemoves a tag from an associated repository.
untagResourceAsync in interface AmazonCodeGuruReviewerAsyncasyncHandler - 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 AmazonCodeGuruReviewershutdown in class AmazonCodeGuruReviewerClient