Interface CodeGuruReviewerAsyncClient
- All Superinterfaces:
AutoCloseable
,AwsClient
,SdkAutoCloseable
,SdkClient
builder()
method.The asynchronous client performs non-blocking I/O when configured with any
invalid reference
SdkAsyncHttpClient
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.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Value for looking up the service's metadata from theServiceMetadataProvider
.static final String
-
Method Summary
Modifier and TypeMethodDescriptionassociateRepository
(Consumer<AssociateRepositoryRequest.Builder> associateRepositoryRequest) Use to associate an Amazon Web Services CodeCommit repository or a repository managed by Amazon Web Services CodeStar Connections with Amazon CodeGuru Reviewer.associateRepository
(AssociateRepositoryRequest associateRepositoryRequest) Use to associate an Amazon Web Services CodeCommit repository or a repository managed by Amazon Web Services CodeStar Connections with Amazon CodeGuru Reviewer.builder()
Create a builder that can be used to configure and create aCodeGuruReviewerAsyncClient
.static CodeGuruReviewerAsyncClient
create()
Create aCodeGuruReviewerAsyncClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
.createCodeReview
(Consumer<CreateCodeReviewRequest.Builder> createCodeReviewRequest) Use to create a code review with a CodeReviewType ofRepositoryAnalysis
.createCodeReview
(CreateCodeReviewRequest createCodeReviewRequest) Use to create a code review with a CodeReviewType ofRepositoryAnalysis
.describeCodeReview
(Consumer<DescribeCodeReviewRequest.Builder> describeCodeReviewRequest) Returns the metadata associated with the code review along with its status.describeCodeReview
(DescribeCodeReviewRequest describeCodeReviewRequest) Returns the metadata associated with the code review along with its status.describeRecommendationFeedback
(Consumer<DescribeRecommendationFeedbackRequest.Builder> describeRecommendationFeedbackRequest) Describes the customer feedback for a CodeGuru Reviewer recommendation.describeRecommendationFeedback
(DescribeRecommendationFeedbackRequest describeRecommendationFeedbackRequest) Describes the customer feedback for a CodeGuru Reviewer recommendation.describeRepositoryAssociation
(Consumer<DescribeRepositoryAssociationRequest.Builder> describeRepositoryAssociationRequest) Returns a RepositoryAssociation object that contains information about the requested repository association.describeRepositoryAssociation
(DescribeRepositoryAssociationRequest describeRepositoryAssociationRequest) Returns a RepositoryAssociation object that contains information about the requested repository association.disassociateRepository
(Consumer<DisassociateRepositoryRequest.Builder> disassociateRepositoryRequest) Removes the association between Amazon CodeGuru Reviewer and a repository.disassociateRepository
(DisassociateRepositoryRequest disassociateRepositoryRequest) Removes the association between Amazon CodeGuru Reviewer and a repository.default CompletableFuture
<ListCodeReviewsResponse> listCodeReviews
(Consumer<ListCodeReviewsRequest.Builder> listCodeReviewsRequest) Lists all the code reviews that the customer has created in the past 90 days.default CompletableFuture
<ListCodeReviewsResponse> listCodeReviews
(ListCodeReviewsRequest listCodeReviewsRequest) Lists all the code reviews that the customer has created in the past 90 days.default ListCodeReviewsPublisher
listCodeReviewsPaginator
(Consumer<ListCodeReviewsRequest.Builder> listCodeReviewsRequest) This is a variant oflistCodeReviews(software.amazon.awssdk.services.codegurureviewer.model.ListCodeReviewsRequest)
operation.default ListCodeReviewsPublisher
listCodeReviewsPaginator
(ListCodeReviewsRequest listCodeReviewsRequest) This is a variant oflistCodeReviews(software.amazon.awssdk.services.codegurureviewer.model.ListCodeReviewsRequest)
operation.listRecommendationFeedback
(Consumer<ListRecommendationFeedbackRequest.Builder> listRecommendationFeedbackRequest) Returns a list of RecommendationFeedbackSummary objects that contain customer recommendation feedback for all CodeGuru Reviewer users.listRecommendationFeedback
(ListRecommendationFeedbackRequest listRecommendationFeedbackRequest) Returns a list of RecommendationFeedbackSummary objects that contain customer recommendation feedback for all CodeGuru Reviewer users.listRecommendationFeedbackPaginator
(Consumer<ListRecommendationFeedbackRequest.Builder> listRecommendationFeedbackRequest) This is a variant oflistRecommendationFeedback(software.amazon.awssdk.services.codegurureviewer.model.ListRecommendationFeedbackRequest)
operation.listRecommendationFeedbackPaginator
(ListRecommendationFeedbackRequest listRecommendationFeedbackRequest) This is a variant oflistRecommendationFeedback(software.amazon.awssdk.services.codegurureviewer.model.ListRecommendationFeedbackRequest)
operation.listRecommendations
(Consumer<ListRecommendationsRequest.Builder> listRecommendationsRequest) Returns the list of all recommendations for a completed code review.listRecommendations
(ListRecommendationsRequest listRecommendationsRequest) Returns the list of all recommendations for a completed code review.default ListRecommendationsPublisher
listRecommendationsPaginator
(Consumer<ListRecommendationsRequest.Builder> listRecommendationsRequest) This is a variant oflistRecommendations(software.amazon.awssdk.services.codegurureviewer.model.ListRecommendationsRequest)
operation.default ListRecommendationsPublisher
listRecommendationsPaginator
(ListRecommendationsRequest listRecommendationsRequest) This is a variant oflistRecommendations(software.amazon.awssdk.services.codegurureviewer.model.ListRecommendationsRequest)
operation.listRepositoryAssociations
(Consumer<ListRepositoryAssociationsRequest.Builder> listRepositoryAssociationsRequest) Returns a list of RepositoryAssociationSummary objects that contain summary information about a repository association.listRepositoryAssociations
(ListRepositoryAssociationsRequest listRepositoryAssociationsRequest) Returns a list of RepositoryAssociationSummary objects that contain summary information about a repository association.listRepositoryAssociationsPaginator
(Consumer<ListRepositoryAssociationsRequest.Builder> listRepositoryAssociationsRequest) This is a variant oflistRepositoryAssociations(software.amazon.awssdk.services.codegurureviewer.model.ListRepositoryAssociationsRequest)
operation.listRepositoryAssociationsPaginator
(ListRepositoryAssociationsRequest listRepositoryAssociationsRequest) This is a variant oflistRepositoryAssociations(software.amazon.awssdk.services.codegurureviewer.model.ListRepositoryAssociationsRequest)
operation.listTagsForResource
(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Returns the list of tags associated with an associated repository resource.listTagsForResource
(ListTagsForResourceRequest listTagsForResourceRequest) Returns the list of tags associated with an associated repository resource.putRecommendationFeedback
(Consumer<PutRecommendationFeedbackRequest.Builder> putRecommendationFeedbackRequest) Stores customer feedback for a CodeGuru Reviewer recommendation.putRecommendationFeedback
(PutRecommendationFeedbackRequest putRecommendationFeedbackRequest) Stores customer feedback for a CodeGuru Reviewer recommendation.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationdefault CompletableFuture
<TagResourceResponse> tagResource
(Consumer<TagResourceRequest.Builder> tagResourceRequest) Adds one or more tags to an associated repository.default CompletableFuture
<TagResourceResponse> tagResource
(TagResourceRequest tagResourceRequest) Adds one or more tags to an associated repository.default CompletableFuture
<UntagResourceResponse> untagResource
(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes a tag from an associated repository.default CompletableFuture
<UntagResourceResponse> untagResource
(UntagResourceRequest untagResourceRequest) Removes a tag from an associated repository.default CodeGuruReviewerAsyncWaiter
waiter()
Create an instance ofCodeGuruReviewerAsyncWaiter
using this client.Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
Methods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
Field Details
-
SERVICE_NAME
- See Also:
-
SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider
.- See Also:
-
-
Method Details
-
associateRepository
default CompletableFuture<AssociateRepositoryResponse> associateRepository(AssociateRepositoryRequest associateRepositoryRequest) Use to associate an Amazon Web Services CodeCommit repository or a repository 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.
- Parameters:
associateRepositoryRequest
-- Returns:
- A Java Future containing the result of the AssociateRepository operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InternalServerException The server encountered an internal error and is unable to complete the request.
- ValidationException The input fails to satisfy the specified constraints.
- AccessDeniedException You do not have sufficient access to perform this action.
- ConflictException The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeGuruReviewerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
associateRepository
default CompletableFuture<AssociateRepositoryResponse> associateRepository(Consumer<AssociateRepositoryRequest.Builder> associateRepositoryRequest) Use to associate an Amazon Web Services CodeCommit repository or a repository 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.
This is a convenience which creates an instance of the
AssociateRepositoryRequest.Builder
avoiding the need to create one manually viaAssociateRepositoryRequest.builder()
- Parameters:
associateRepositoryRequest
- AConsumer
that will call methods onAssociateRepositoryRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the AssociateRepository operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InternalServerException The server encountered an internal error and is unable to complete the request.
- ValidationException The input fails to satisfy the specified constraints.
- AccessDeniedException You do not have sufficient access to perform this action.
- ConflictException The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeGuruReviewerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createCodeReview
default CompletableFuture<CreateCodeReviewResponse> createCodeReview(CreateCodeReviewRequest createCodeReviewRequest) 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.- Parameters:
createCodeReviewRequest
-- Returns:
- A Java Future containing the result of the CreateCodeReview operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The resource specified in the request was not found.
- InternalServerException The server encountered an internal error and is unable to complete the request.
- ValidationException The input fails to satisfy the specified constraints.
- ConflictException The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeGuruReviewerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createCodeReview
default CompletableFuture<CreateCodeReviewResponse> createCodeReview(Consumer<CreateCodeReviewRequest.Builder> createCodeReviewRequest) 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.
This is a convenience which creates an instance of the
CreateCodeReviewRequest.Builder
avoiding the need to create one manually viaCreateCodeReviewRequest.builder()
- Parameters:
createCodeReviewRequest
- AConsumer
that will call methods onCreateCodeReviewRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the CreateCodeReview operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The resource specified in the request was not found.
- InternalServerException The server encountered an internal error and is unable to complete the request.
- ValidationException The input fails to satisfy the specified constraints.
- ConflictException The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeGuruReviewerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
describeCodeReview
default CompletableFuture<DescribeCodeReviewResponse> describeCodeReview(DescribeCodeReviewRequest describeCodeReviewRequest) Returns the metadata associated with the code review along with its status.
- Parameters:
describeCodeReviewRequest
-- Returns:
- A Java Future containing the result of the DescribeCodeReview operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The resource specified in the request was not found.
- InternalServerException The server encountered an internal error and is unable to complete the request.
- ValidationException The input fails to satisfy the specified constraints.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeGuruReviewerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
describeCodeReview
default CompletableFuture<DescribeCodeReviewResponse> describeCodeReview(Consumer<DescribeCodeReviewRequest.Builder> describeCodeReviewRequest) Returns the metadata associated with the code review along with its status.
This is a convenience which creates an instance of the
DescribeCodeReviewRequest.Builder
avoiding the need to create one manually viaDescribeCodeReviewRequest.builder()
- Parameters:
describeCodeReviewRequest
- AConsumer
that will call methods onDescribeCodeReviewRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DescribeCodeReview operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The resource specified in the request was not found.
- InternalServerException The server encountered an internal error and is unable to complete the request.
- ValidationException The input fails to satisfy the specified constraints.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeGuruReviewerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
describeRecommendationFeedback
default CompletableFuture<DescribeRecommendationFeedbackResponse> describeRecommendationFeedback(DescribeRecommendationFeedbackRequest describeRecommendationFeedbackRequest) Describes the customer feedback for a CodeGuru Reviewer recommendation.
- Parameters:
describeRecommendationFeedbackRequest
-- Returns:
- A Java Future containing the result of the DescribeRecommendationFeedback operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The resource specified in the request was not found.
- InternalServerException The server encountered an internal error and is unable to complete the request.
- ValidationException The input fails to satisfy the specified constraints.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeGuruReviewerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
describeRecommendationFeedback
default CompletableFuture<DescribeRecommendationFeedbackResponse> describeRecommendationFeedback(Consumer<DescribeRecommendationFeedbackRequest.Builder> describeRecommendationFeedbackRequest) Describes the customer feedback for a CodeGuru Reviewer recommendation.
This is a convenience which creates an instance of the
DescribeRecommendationFeedbackRequest.Builder
avoiding the need to create one manually viaDescribeRecommendationFeedbackRequest.builder()
- Parameters:
describeRecommendationFeedbackRequest
- AConsumer
that will call methods onDescribeRecommendationFeedbackRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DescribeRecommendationFeedback operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The resource specified in the request was not found.
- InternalServerException The server encountered an internal error and is unable to complete the request.
- ValidationException The input fails to satisfy the specified constraints.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeGuruReviewerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
describeRepositoryAssociation
default CompletableFuture<DescribeRepositoryAssociationResponse> describeRepositoryAssociation(DescribeRepositoryAssociationRequest describeRepositoryAssociationRequest) Returns a RepositoryAssociation object that contains information about the requested repository association.
- Parameters:
describeRepositoryAssociationRequest
-- Returns:
- A Java Future containing the result of the DescribeRepositoryAssociation operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- NotFoundException The resource specified in the request was not found.
- InternalServerException The server encountered an internal error and is unable to complete the request.
- ValidationException The input fails to satisfy the specified constraints.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeGuruReviewerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
describeRepositoryAssociation
default CompletableFuture<DescribeRepositoryAssociationResponse> describeRepositoryAssociation(Consumer<DescribeRepositoryAssociationRequest.Builder> describeRepositoryAssociationRequest) Returns a RepositoryAssociation object that contains information about the requested repository association.
This is a convenience which creates an instance of the
DescribeRepositoryAssociationRequest.Builder
avoiding the need to create one manually viaDescribeRepositoryAssociationRequest.builder()
- Parameters:
describeRepositoryAssociationRequest
- AConsumer
that will call methods onDescribeRepositoryAssociationRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DescribeRepositoryAssociation operation returned by the
service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- NotFoundException The resource specified in the request was not found.
- InternalServerException The server encountered an internal error and is unable to complete the request.
- ValidationException The input fails to satisfy the specified constraints.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeGuruReviewerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
disassociateRepository
default CompletableFuture<DisassociateRepositoryResponse> disassociateRepository(DisassociateRepositoryRequest disassociateRepositoryRequest) Removes the association between Amazon CodeGuru Reviewer and a repository.
- Parameters:
disassociateRepositoryRequest
-- Returns:
- A Java Future containing the result of the DisassociateRepository operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- NotFoundException The resource specified in the request was not found.
- InternalServerException The server encountered an internal error and is unable to complete the request.
- ValidationException The input fails to satisfy the specified constraints.
- AccessDeniedException You do not have sufficient access to perform this action.
- ConflictException The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeGuruReviewerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
disassociateRepository
default CompletableFuture<DisassociateRepositoryResponse> disassociateRepository(Consumer<DisassociateRepositoryRequest.Builder> disassociateRepositoryRequest) Removes the association between Amazon CodeGuru Reviewer and a repository.
This is a convenience which creates an instance of the
DisassociateRepositoryRequest.Builder
avoiding the need to create one manually viaDisassociateRepositoryRequest.builder()
- Parameters:
disassociateRepositoryRequest
- AConsumer
that will call methods onDisassociateRepositoryRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the DisassociateRepository operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- NotFoundException The resource specified in the request was not found.
- InternalServerException The server encountered an internal error and is unable to complete the request.
- ValidationException The input fails to satisfy the specified constraints.
- AccessDeniedException You do not have sufficient access to perform this action.
- ConflictException The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeGuruReviewerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listCodeReviews
default CompletableFuture<ListCodeReviewsResponse> listCodeReviews(ListCodeReviewsRequest listCodeReviewsRequest) Lists all the code reviews that the customer has created in the past 90 days.
- Parameters:
listCodeReviewsRequest
-- Returns:
- A Java Future containing the result of the ListCodeReviews operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InternalServerException The server encountered an internal error and is unable to complete the request.
- ValidationException The input fails to satisfy the specified constraints.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You do not have sufficient access to perform this action.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeGuruReviewerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listCodeReviews
default CompletableFuture<ListCodeReviewsResponse> listCodeReviews(Consumer<ListCodeReviewsRequest.Builder> listCodeReviewsRequest) Lists all the code reviews that the customer has created in the past 90 days.
This is a convenience which creates an instance of the
ListCodeReviewsRequest.Builder
avoiding the need to create one manually viaListCodeReviewsRequest.builder()
- Parameters:
listCodeReviewsRequest
- AConsumer
that will call methods onListCodeReviewsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListCodeReviews operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InternalServerException The server encountered an internal error and is unable to complete the request.
- ValidationException The input fails to satisfy the specified constraints.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You do not have sufficient access to perform this action.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeGuruReviewerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listCodeReviewsPaginator
default ListCodeReviewsPublisher listCodeReviewsPaginator(ListCodeReviewsRequest listCodeReviewsRequest) This is a variant of
listCodeReviews(software.amazon.awssdk.services.codegurureviewer.model.ListCodeReviewsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.codegurureviewer.paginators.ListCodeReviewsPublisher publisher = client.listCodeReviewsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.codegurureviewer.paginators.ListCodeReviewsPublisher publisher = client.listCodeReviewsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.codegurureviewer.model.ListCodeReviewsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.codegurureviewer.model.ListCodeReviewsResponse response) { //... }; });
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listCodeReviews(software.amazon.awssdk.services.codegurureviewer.model.ListCodeReviewsRequest)
operation.- Parameters:
listCodeReviewsRequest
-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InternalServerException The server encountered an internal error and is unable to complete the request.
- ValidationException The input fails to satisfy the specified constraints.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You do not have sufficient access to perform this action.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeGuruReviewerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listCodeReviewsPaginator
default ListCodeReviewsPublisher listCodeReviewsPaginator(Consumer<ListCodeReviewsRequest.Builder> listCodeReviewsRequest) This is a variant of
listCodeReviews(software.amazon.awssdk.services.codegurureviewer.model.ListCodeReviewsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.codegurureviewer.paginators.ListCodeReviewsPublisher publisher = client.listCodeReviewsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.codegurureviewer.paginators.ListCodeReviewsPublisher publisher = client.listCodeReviewsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.codegurureviewer.model.ListCodeReviewsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.codegurureviewer.model.ListCodeReviewsResponse response) { //... }; });
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listCodeReviews(software.amazon.awssdk.services.codegurureviewer.model.ListCodeReviewsRequest)
operation.
This is a convenience which creates an instance of the
ListCodeReviewsRequest.Builder
avoiding the need to create one manually viaListCodeReviewsRequest.builder()
- Parameters:
listCodeReviewsRequest
- AConsumer
that will call methods onListCodeReviewsRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InternalServerException The server encountered an internal error and is unable to complete the request.
- ValidationException The input fails to satisfy the specified constraints.
- ThrottlingException The request was denied due to request throttling.
- AccessDeniedException You do not have sufficient access to perform this action.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeGuruReviewerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listRecommendationFeedback
default CompletableFuture<ListRecommendationFeedbackResponse> listRecommendationFeedback(ListRecommendationFeedbackRequest listRecommendationFeedbackRequest) Returns a list of RecommendationFeedbackSummary objects that contain customer recommendation feedback for all CodeGuru Reviewer users.
- Parameters:
listRecommendationFeedbackRequest
-- Returns:
- A Java Future containing the result of the ListRecommendationFeedback operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The resource specified in the request was not found.
- InternalServerException The server encountered an internal error and is unable to complete the request.
- ValidationException The input fails to satisfy the specified constraints.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeGuruReviewerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listRecommendationFeedback
default CompletableFuture<ListRecommendationFeedbackResponse> listRecommendationFeedback(Consumer<ListRecommendationFeedbackRequest.Builder> listRecommendationFeedbackRequest) Returns a list of RecommendationFeedbackSummary objects that contain customer recommendation feedback for all CodeGuru Reviewer users.
This is a convenience which creates an instance of the
ListRecommendationFeedbackRequest.Builder
avoiding the need to create one manually viaListRecommendationFeedbackRequest.builder()
- Parameters:
listRecommendationFeedbackRequest
- AConsumer
that will call methods onListRecommendationFeedbackRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListRecommendationFeedback operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The resource specified in the request was not found.
- InternalServerException The server encountered an internal error and is unable to complete the request.
- ValidationException The input fails to satisfy the specified constraints.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeGuruReviewerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listRecommendationFeedbackPaginator
default ListRecommendationFeedbackPublisher listRecommendationFeedbackPaginator(ListRecommendationFeedbackRequest listRecommendationFeedbackRequest) This is a variant of
listRecommendationFeedback(software.amazon.awssdk.services.codegurureviewer.model.ListRecommendationFeedbackRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.codegurureviewer.paginators.ListRecommendationFeedbackPublisher publisher = client.listRecommendationFeedbackPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.codegurureviewer.paginators.ListRecommendationFeedbackPublisher publisher = client.listRecommendationFeedbackPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.codegurureviewer.model.ListRecommendationFeedbackResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.codegurureviewer.model.ListRecommendationFeedbackResponse response) { //... }; });
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listRecommendationFeedback(software.amazon.awssdk.services.codegurureviewer.model.ListRecommendationFeedbackRequest)
operation.- Parameters:
listRecommendationFeedbackRequest
-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The resource specified in the request was not found.
- InternalServerException The server encountered an internal error and is unable to complete the request.
- ValidationException The input fails to satisfy the specified constraints.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeGuruReviewerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listRecommendationFeedbackPaginator
default ListRecommendationFeedbackPublisher listRecommendationFeedbackPaginator(Consumer<ListRecommendationFeedbackRequest.Builder> listRecommendationFeedbackRequest) This is a variant of
listRecommendationFeedback(software.amazon.awssdk.services.codegurureviewer.model.ListRecommendationFeedbackRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.codegurureviewer.paginators.ListRecommendationFeedbackPublisher publisher = client.listRecommendationFeedbackPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.codegurureviewer.paginators.ListRecommendationFeedbackPublisher publisher = client.listRecommendationFeedbackPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.codegurureviewer.model.ListRecommendationFeedbackResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.codegurureviewer.model.ListRecommendationFeedbackResponse response) { //... }; });
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listRecommendationFeedback(software.amazon.awssdk.services.codegurureviewer.model.ListRecommendationFeedbackRequest)
operation.
This is a convenience which creates an instance of the
ListRecommendationFeedbackRequest.Builder
avoiding the need to create one manually viaListRecommendationFeedbackRequest.builder()
- Parameters:
listRecommendationFeedbackRequest
- AConsumer
that will call methods onListRecommendationFeedbackRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The resource specified in the request was not found.
- InternalServerException The server encountered an internal error and is unable to complete the request.
- ValidationException The input fails to satisfy the specified constraints.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeGuruReviewerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listRecommendations
default CompletableFuture<ListRecommendationsResponse> listRecommendations(ListRecommendationsRequest listRecommendationsRequest) Returns the list of all recommendations for a completed code review.
- Parameters:
listRecommendationsRequest
-- Returns:
- A Java Future containing the result of the ListRecommendations operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The resource specified in the request was not found.
- InternalServerException The server encountered an internal error and is unable to complete the request.
- ValidationException The input fails to satisfy the specified constraints.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeGuruReviewerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listRecommendations
default CompletableFuture<ListRecommendationsResponse> listRecommendations(Consumer<ListRecommendationsRequest.Builder> listRecommendationsRequest) Returns the list of all recommendations for a completed code review.
This is a convenience which creates an instance of the
ListRecommendationsRequest.Builder
avoiding the need to create one manually viaListRecommendationsRequest.builder()
- Parameters:
listRecommendationsRequest
- AConsumer
that will call methods onListRecommendationsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListRecommendations operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The resource specified in the request was not found.
- InternalServerException The server encountered an internal error and is unable to complete the request.
- ValidationException The input fails to satisfy the specified constraints.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeGuruReviewerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listRecommendationsPaginator
default ListRecommendationsPublisher listRecommendationsPaginator(ListRecommendationsRequest listRecommendationsRequest) This is a variant of
listRecommendations(software.amazon.awssdk.services.codegurureviewer.model.ListRecommendationsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.codegurureviewer.paginators.ListRecommendationsPublisher publisher = client.listRecommendationsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.codegurureviewer.paginators.ListRecommendationsPublisher publisher = client.listRecommendationsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.codegurureviewer.model.ListRecommendationsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.codegurureviewer.model.ListRecommendationsResponse response) { //... }; });
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listRecommendations(software.amazon.awssdk.services.codegurureviewer.model.ListRecommendationsRequest)
operation.- Parameters:
listRecommendationsRequest
-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The resource specified in the request was not found.
- InternalServerException The server encountered an internal error and is unable to complete the request.
- ValidationException The input fails to satisfy the specified constraints.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeGuruReviewerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listRecommendationsPaginator
default ListRecommendationsPublisher listRecommendationsPaginator(Consumer<ListRecommendationsRequest.Builder> listRecommendationsRequest) This is a variant of
listRecommendations(software.amazon.awssdk.services.codegurureviewer.model.ListRecommendationsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.codegurureviewer.paginators.ListRecommendationsPublisher publisher = client.listRecommendationsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.codegurureviewer.paginators.ListRecommendationsPublisher publisher = client.listRecommendationsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.codegurureviewer.model.ListRecommendationsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.codegurureviewer.model.ListRecommendationsResponse response) { //... }; });
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listRecommendations(software.amazon.awssdk.services.codegurureviewer.model.ListRecommendationsRequest)
operation.
This is a convenience which creates an instance of the
ListRecommendationsRequest.Builder
avoiding the need to create one manually viaListRecommendationsRequest.builder()
- Parameters:
listRecommendationsRequest
- AConsumer
that will call methods onListRecommendationsRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The resource specified in the request was not found.
- InternalServerException The server encountered an internal error and is unable to complete the request.
- ValidationException The input fails to satisfy the specified constraints.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeGuruReviewerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listRepositoryAssociations
default CompletableFuture<ListRepositoryAssociationsResponse> listRepositoryAssociations(ListRepositoryAssociationsRequest listRepositoryAssociationsRequest) 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.
- Parameters:
listRepositoryAssociationsRequest
-- Returns:
- A Java Future containing the result of the ListRepositoryAssociations operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InternalServerException The server encountered an internal error and is unable to complete the request.
- ValidationException The input fails to satisfy the specified constraints.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeGuruReviewerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listRepositoryAssociations
default CompletableFuture<ListRepositoryAssociationsResponse> listRepositoryAssociations(Consumer<ListRepositoryAssociationsRequest.Builder> listRepositoryAssociationsRequest) 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.
This is a convenience which creates an instance of the
ListRepositoryAssociationsRequest.Builder
avoiding the need to create one manually viaListRepositoryAssociationsRequest.builder()
- Parameters:
listRepositoryAssociationsRequest
- AConsumer
that will call methods onListRepositoryAssociationsRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListRepositoryAssociations operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InternalServerException The server encountered an internal error and is unable to complete the request.
- ValidationException The input fails to satisfy the specified constraints.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeGuruReviewerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listRepositoryAssociationsPaginator
default ListRepositoryAssociationsPublisher listRepositoryAssociationsPaginator(ListRepositoryAssociationsRequest listRepositoryAssociationsRequest) This is a variant of
listRepositoryAssociations(software.amazon.awssdk.services.codegurureviewer.model.ListRepositoryAssociationsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.codegurureviewer.paginators.ListRepositoryAssociationsPublisher publisher = client.listRepositoryAssociationsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.codegurureviewer.paginators.ListRepositoryAssociationsPublisher publisher = client.listRepositoryAssociationsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.codegurureviewer.model.ListRepositoryAssociationsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.codegurureviewer.model.ListRepositoryAssociationsResponse response) { //... }; });
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listRepositoryAssociations(software.amazon.awssdk.services.codegurureviewer.model.ListRepositoryAssociationsRequest)
operation.- Parameters:
listRepositoryAssociationsRequest
-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InternalServerException The server encountered an internal error and is unable to complete the request.
- ValidationException The input fails to satisfy the specified constraints.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeGuruReviewerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listRepositoryAssociationsPaginator
default ListRepositoryAssociationsPublisher listRepositoryAssociationsPaginator(Consumer<ListRepositoryAssociationsRequest.Builder> listRepositoryAssociationsRequest) This is a variant of
listRepositoryAssociations(software.amazon.awssdk.services.codegurureviewer.model.ListRepositoryAssociationsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe method will result in a newSubscription
i.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper methodsoftware.amazon.awssdk.services.codegurureviewer.paginators.ListRepositoryAssociationsPublisher publisher = client.listRepositoryAssociationsPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
software.amazon.awssdk.services.codegurureviewer.paginators.ListRepositoryAssociationsPublisher publisher = client.listRepositoryAssociationsPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.codegurureviewer.model.ListRepositoryAssociationsResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.codegurureviewer.model.ListRepositoryAssociationsResponse response) { //... }; });
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listRepositoryAssociations(software.amazon.awssdk.services.codegurureviewer.model.ListRepositoryAssociationsRequest)
operation.
This is a convenience which creates an instance of the
ListRepositoryAssociationsRequest.Builder
avoiding the need to create one manually viaListRepositoryAssociationsRequest.builder()
- Parameters:
listRepositoryAssociationsRequest
- AConsumer
that will call methods onListRepositoryAssociationsRequest.Builder
to create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InternalServerException The server encountered an internal error and is unable to complete the request.
- ValidationException The input fails to satisfy the specified constraints.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeGuruReviewerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listTagsForResource
default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) Returns the list of tags associated with an associated repository resource.
- Parameters:
listTagsForResourceRequest
-- Returns:
- A Java Future containing the result of the ListTagsForResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InternalServerException The server encountered an internal error and is unable to complete the request.
- ValidationException The input fails to satisfy the specified constraints.
- ResourceNotFoundException The resource specified in the request was not found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeGuruReviewerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listTagsForResource
default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Returns the list of tags associated with an associated repository resource.
This is a convenience which creates an instance of the
ListTagsForResourceRequest.Builder
avoiding the need to create one manually viaListTagsForResourceRequest.builder()
- Parameters:
listTagsForResourceRequest
- AConsumer
that will call methods onListTagsForResourceRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the ListTagsForResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InternalServerException The server encountered an internal error and is unable to complete the request.
- ValidationException The input fails to satisfy the specified constraints.
- ResourceNotFoundException The resource specified in the request was not found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeGuruReviewerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
putRecommendationFeedback
default CompletableFuture<PutRecommendationFeedbackResponse> putRecommendationFeedback(PutRecommendationFeedbackRequest putRecommendationFeedbackRequest) Stores customer feedback for a CodeGuru Reviewer recommendation. When this API is called again with different reactions the previous feedback is overwritten.
- Parameters:
putRecommendationFeedbackRequest
-- Returns:
- A Java Future containing the result of the PutRecommendationFeedback operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The resource specified in the request was not found.
- InternalServerException The server encountered an internal error and is unable to complete the request.
- ValidationException The input fails to satisfy the specified constraints.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeGuruReviewerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
putRecommendationFeedback
default CompletableFuture<PutRecommendationFeedbackResponse> putRecommendationFeedback(Consumer<PutRecommendationFeedbackRequest.Builder> putRecommendationFeedbackRequest) Stores customer feedback for a CodeGuru Reviewer recommendation. When this API is called again with different reactions the previous feedback is overwritten.
This is a convenience which creates an instance of the
PutRecommendationFeedbackRequest.Builder
avoiding the need to create one manually viaPutRecommendationFeedbackRequest.builder()
- Parameters:
putRecommendationFeedbackRequest
- AConsumer
that will call methods onPutRecommendationFeedbackRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the PutRecommendationFeedback operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- ResourceNotFoundException The resource specified in the request was not found.
- InternalServerException The server encountered an internal error and is unable to complete the request.
- ValidationException The input fails to satisfy the specified constraints.
- AccessDeniedException You do not have sufficient access to perform this action.
- ThrottlingException The request was denied due to request throttling.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeGuruReviewerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
tagResource
Adds one or more tags to an associated repository.
- Parameters:
tagResourceRequest
-- Returns:
- A Java Future containing the result of the TagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InternalServerException The server encountered an internal error and is unable to complete the request.
- ValidationException The input fails to satisfy the specified constraints.
- ResourceNotFoundException The resource specified in the request was not found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeGuruReviewerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
tagResource
default CompletableFuture<TagResourceResponse> tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Adds one or more tags to an associated repository.
This is a convenience which creates an instance of the
TagResourceRequest.Builder
avoiding the need to create one manually viaTagResourceRequest.builder()
- Parameters:
tagResourceRequest
- AConsumer
that will call methods onTagResourceRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the TagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InternalServerException The server encountered an internal error and is unable to complete the request.
- ValidationException The input fails to satisfy the specified constraints.
- ResourceNotFoundException The resource specified in the request was not found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeGuruReviewerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
untagResource
default CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest) Removes a tag from an associated repository.
- Parameters:
untagResourceRequest
-- Returns:
- A Java Future containing the result of the UntagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InternalServerException The server encountered an internal error and is unable to complete the request.
- ValidationException The input fails to satisfy the specified constraints.
- ResourceNotFoundException The resource specified in the request was not found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeGuruReviewerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
untagResource
default CompletableFuture<UntagResourceResponse> untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes a tag from an associated repository.
This is a convenience which creates an instance of the
UntagResourceRequest.Builder
avoiding the need to create one manually viaUntagResourceRequest.builder()
- Parameters:
untagResourceRequest
- AConsumer
that will call methods onUntagResourceRequest.Builder
to create a request.- Returns:
- A Java Future containing the result of the UntagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions.- InternalServerException The server encountered an internal error and is unable to complete the request.
- ValidationException The input fails to satisfy the specified constraints.
- ResourceNotFoundException The resource specified in the request was not found.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- CodeGuruReviewerException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
waiter
Create an instance ofCodeGuruReviewerAsyncWaiter
using this client.Waiters created via this method are managed by the SDK and resources will be released when the service client is closed.
- Returns:
- an instance of
CodeGuruReviewerAsyncWaiter
-
serviceClientConfiguration
Description copied from interface:SdkClient
The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfiguration
in interfaceAwsClient
- Specified by:
serviceClientConfiguration
in interfaceSdkClient
- Returns:
- SdkServiceClientConfiguration
-
create
Create aCodeGuruReviewerAsyncClient
with the region loaded from theDefaultAwsRegionProviderChain
and credentials loaded from theDefaultCredentialsProvider
. -
builder
Create a builder that can be used to configure and create aCodeGuruReviewerAsyncClient
.
-