@Generated(value="software.amazon.awssdk:codegen") public interface CodeGuruReviewerAsyncClient extends SdkClient
builder()
method.
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 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 (AWS PrivateLink) in the Amazon CodeGuru Reviewer User Guide.
| Modifier and Type | Field and Description |
|---|---|
static String |
SERVICE_NAME |
| Modifier and Type | Method and Description |
|---|---|
default CompletableFuture<AssociateRepositoryResponse> |
associateRepository(AssociateRepositoryRequest associateRepositoryRequest)
Use to associate an AWS CodeCommit repository or a repostory managed by AWS CodeStar Connections with Amazon
CodeGuru Reviewer.
|
default CompletableFuture<AssociateRepositoryResponse> |
associateRepository(Consumer<AssociateRepositoryRequest.Builder> associateRepositoryRequest)
Use to associate an AWS CodeCommit repository or a repostory managed by AWS CodeStar Connections with Amazon
CodeGuru Reviewer.
|
static CodeGuruReviewerAsyncClientBuilder |
builder()
Create a builder that can be used to configure and create a
CodeGuruReviewerAsyncClient. |
static CodeGuruReviewerAsyncClient |
create()
Create a
CodeGuruReviewerAsyncClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider. |
default CompletableFuture<CreateCodeReviewResponse> |
createCodeReview(Consumer<CreateCodeReviewRequest.Builder> createCodeReviewRequest)
Use to create a code review with a
CodeReviewType of RepositoryAnalysis. |
default CompletableFuture<CreateCodeReviewResponse> |
createCodeReview(CreateCodeReviewRequest createCodeReviewRequest)
Use to create a code review with a
CodeReviewType of RepositoryAnalysis. |
default CompletableFuture<DescribeCodeReviewResponse> |
describeCodeReview(Consumer<DescribeCodeReviewRequest.Builder> describeCodeReviewRequest)
Returns the metadata associated with the code review along with its status.
|
default CompletableFuture<DescribeCodeReviewResponse> |
describeCodeReview(DescribeCodeReviewRequest describeCodeReviewRequest)
Returns the metadata associated with the code review along with its status.
|
default CompletableFuture<DescribeRecommendationFeedbackResponse> |
describeRecommendationFeedback(Consumer<DescribeRecommendationFeedbackRequest.Builder> describeRecommendationFeedbackRequest)
Describes the customer feedback for a CodeGuru Reviewer recommendation.
|
default CompletableFuture<DescribeRecommendationFeedbackResponse> |
describeRecommendationFeedback(DescribeRecommendationFeedbackRequest describeRecommendationFeedbackRequest)
Describes the customer feedback for a CodeGuru Reviewer recommendation.
|
default CompletableFuture<DescribeRepositoryAssociationResponse> |
describeRepositoryAssociation(Consumer<DescribeRepositoryAssociationRequest.Builder> describeRepositoryAssociationRequest)
Returns a
RepositoryAssociation object that contains information about the requested repository
association. |
default CompletableFuture<DescribeRepositoryAssociationResponse> |
describeRepositoryAssociation(DescribeRepositoryAssociationRequest describeRepositoryAssociationRequest)
Returns a
RepositoryAssociation object that contains information about the requested repository
association. |
default CompletableFuture<DisassociateRepositoryResponse> |
disassociateRepository(Consumer<DisassociateRepositoryRequest.Builder> disassociateRepositoryRequest)
Removes the association between Amazon CodeGuru Reviewer and a repository.
|
default CompletableFuture<DisassociateRepositoryResponse> |
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)
Lists all the code reviews that the customer has created in the past 90 days.
|
default ListCodeReviewsPublisher |
listCodeReviewsPaginator(ListCodeReviewsRequest listCodeReviewsRequest)
Lists all the code reviews that the customer has created in the past 90 days.
|
default CompletableFuture<ListRecommendationFeedbackResponse> |
listRecommendationFeedback(Consumer<ListRecommendationFeedbackRequest.Builder> listRecommendationFeedbackRequest)
Returns a list of
RecommendationFeedbackSummary objects that contain customer recommendation feedback for all
CodeGuru Reviewer users. |
default CompletableFuture<ListRecommendationFeedbackResponse> |
listRecommendationFeedback(ListRecommendationFeedbackRequest listRecommendationFeedbackRequest)
Returns a list of
RecommendationFeedbackSummary objects that contain customer recommendation feedback for all
CodeGuru Reviewer users. |
default ListRecommendationFeedbackPublisher |
listRecommendationFeedbackPaginator(Consumer<ListRecommendationFeedbackRequest.Builder> listRecommendationFeedbackRequest)
Returns a list of
RecommendationFeedbackSummary objects that contain customer recommendation feedback for all
CodeGuru Reviewer users. |
default ListRecommendationFeedbackPublisher |
listRecommendationFeedbackPaginator(ListRecommendationFeedbackRequest listRecommendationFeedbackRequest)
Returns a list of
RecommendationFeedbackSummary objects that contain customer recommendation feedback for all
CodeGuru Reviewer users. |
default CompletableFuture<ListRecommendationsResponse> |
listRecommendations(Consumer<ListRecommendationsRequest.Builder> listRecommendationsRequest)
Returns the list of all recommendations for a completed code review.
|
default CompletableFuture<ListRecommendationsResponse> |
listRecommendations(ListRecommendationsRequest listRecommendationsRequest)
Returns the list of all recommendations for a completed code review.
|
default ListRecommendationsPublisher |
listRecommendationsPaginator(Consumer<ListRecommendationsRequest.Builder> listRecommendationsRequest)
Returns the list of all recommendations for a completed code review.
|
default ListRecommendationsPublisher |
listRecommendationsPaginator(ListRecommendationsRequest listRecommendationsRequest)
Returns the list of all recommendations for a completed code review.
|
default CompletableFuture<ListRepositoryAssociationsResponse> |
listRepositoryAssociations(Consumer<ListRepositoryAssociationsRequest.Builder> listRepositoryAssociationsRequest)
Returns a list of
RepositoryAssociationSummary objects that contain summary information about a repository
association. |
default CompletableFuture<ListRepositoryAssociationsResponse> |
listRepositoryAssociations(ListRepositoryAssociationsRequest listRepositoryAssociationsRequest)
Returns a list of
RepositoryAssociationSummary objects that contain summary information about a repository
association. |
default ListRepositoryAssociationsPublisher |
listRepositoryAssociationsPaginator(Consumer<ListRepositoryAssociationsRequest.Builder> listRepositoryAssociationsRequest)
Returns a list of
RepositoryAssociationSummary objects that contain summary information about a repository
association. |
default ListRepositoryAssociationsPublisher |
listRepositoryAssociationsPaginator(ListRepositoryAssociationsRequest listRepositoryAssociationsRequest)
Returns a list of
RepositoryAssociationSummary objects that contain summary information about a repository
association. |
default CompletableFuture<ListTagsForResourceResponse> |
listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest)
Returns the list of tags associated with an associated repository resource.
|
default CompletableFuture<ListTagsForResourceResponse> |
listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)
Returns the list of tags associated with an associated repository resource.
|
default CompletableFuture<PutRecommendationFeedbackResponse> |
putRecommendationFeedback(Consumer<PutRecommendationFeedbackRequest.Builder> putRecommendationFeedbackRequest)
Stores customer feedback for a CodeGuru Reviewer recommendation.
|
default CompletableFuture<PutRecommendationFeedbackResponse> |
putRecommendationFeedback(PutRecommendationFeedbackRequest putRecommendationFeedbackRequest)
Stores customer feedback for a CodeGuru Reviewer recommendation.
|
default 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.
|
serviceNameclosestatic final String SERVICE_NAME
static CodeGuruReviewerAsyncClient create()
CodeGuruReviewerAsyncClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider.static CodeGuruReviewerAsyncClientBuilder builder()
CodeGuruReviewerAsyncClient.default CompletableFuture<AssociateRepositoryResponse> associateRepository(AssociateRepositoryRequest associateRepositoryRequest)
Use to associate an AWS CodeCommit repository or a repostory managed by AWS 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 repository, it must be in the same AWS Region and AWS account where its CodeGuru Reviewer code reviews are configured.
Bitbucket and GitHub Enterprise Server repositories are managed by AWS CodeStar Connections to connect to CodeGuru Reviewer. For more information, see Connect to a repository source provider in the Amazon CodeGuru Reviewer User Guide.
You cannot use the CodeGuru Reviewer SDK or the AWS 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.
associateRepositoryRequest - default CompletableFuture<AssociateRepositoryResponse> associateRepository(Consumer<AssociateRepositoryRequest.Builder> associateRepositoryRequest)
Use to associate an AWS CodeCommit repository or a repostory managed by AWS 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 repository, it must be in the same AWS Region and AWS account where its CodeGuru Reviewer code reviews are configured.
Bitbucket and GitHub Enterprise Server repositories are managed by AWS CodeStar Connections to connect to CodeGuru Reviewer. For more information, see Connect to a repository source provider in the Amazon CodeGuru Reviewer User Guide.
You cannot use the CodeGuru Reviewer SDK or the AWS 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 via AssociateRepositoryRequest.builder()
associateRepositoryRequest - A Consumer that will call methods on AssociateRepositoryRequest.Builder to create a
request.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 so cannot be created using this method.
createCodeReviewRequest - 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 so cannot be created using this method.
This is a convenience which creates an instance of the CreateCodeReviewRequest.Builder avoiding the need
to create one manually via CreateCodeReviewRequest.builder()
createCodeReviewRequest - A Consumer that will call methods on CreateCodeReviewRequest.Builder to create a request.default CompletableFuture<DescribeCodeReviewResponse> describeCodeReview(DescribeCodeReviewRequest describeCodeReviewRequest)
Returns the metadata associated with the code review along with its status.
describeCodeReviewRequest - 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 via DescribeCodeReviewRequest.builder()
describeCodeReviewRequest - A Consumer that will call methods on DescribeCodeReviewRequest.Builder to create a
request.default CompletableFuture<DescribeRecommendationFeedbackResponse> describeRecommendationFeedback(DescribeRecommendationFeedbackRequest describeRecommendationFeedbackRequest)
Describes the customer feedback for a CodeGuru Reviewer recommendation.
describeRecommendationFeedbackRequest - 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 via DescribeRecommendationFeedbackRequest.builder()
describeRecommendationFeedbackRequest - A Consumer that will call methods on DescribeRecommendationFeedbackRequest.Builder to
create a request.default CompletableFuture<DescribeRepositoryAssociationResponse> describeRepositoryAssociation(DescribeRepositoryAssociationRequest describeRepositoryAssociationRequest)
Returns a
RepositoryAssociation object that contains information about the requested repository
association.
describeRepositoryAssociationRequest - 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 via DescribeRepositoryAssociationRequest.builder()
describeRepositoryAssociationRequest - A Consumer that will call methods on DescribeRepositoryAssociationRequest.Builder to
create a request.default CompletableFuture<DisassociateRepositoryResponse> disassociateRepository(DisassociateRepositoryRequest disassociateRepositoryRequest)
Removes the association between Amazon CodeGuru Reviewer and a repository.
disassociateRepositoryRequest - 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 via DisassociateRepositoryRequest.builder()
disassociateRepositoryRequest - A Consumer that will call methods on DisassociateRepositoryRequest.Builder to create a
request.default CompletableFuture<ListCodeReviewsResponse> listCodeReviews(ListCodeReviewsRequest listCodeReviewsRequest)
Lists all the code reviews that the customer has created in the past 90 days.
listCodeReviewsRequest - 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 via ListCodeReviewsRequest.builder()
listCodeReviewsRequest - A Consumer that will call methods on ListCodeReviewsRequest.Builder to create a request.default ListCodeReviewsPublisher listCodeReviewsPaginator(ListCodeReviewsRequest listCodeReviewsRequest)
Lists all the code reviews that the customer has created in the past 90 days.
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 new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.codegurureviewer.paginators.ListCodeReviewsPublisher publisher = client.listCodeReviewsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
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) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listCodeReviews(software.amazon.awssdk.services.codegurureviewer.model.ListCodeReviewsRequest)
operation.
listCodeReviewsRequest - default ListCodeReviewsPublisher listCodeReviewsPaginator(Consumer<ListCodeReviewsRequest.Builder> listCodeReviewsRequest)
Lists all the code reviews that the customer has created in the past 90 days.
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 new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.codegurureviewer.paginators.ListCodeReviewsPublisher publisher = client.listCodeReviewsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
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) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
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 via ListCodeReviewsRequest.builder()
listCodeReviewsRequest - A Consumer that will call methods on ListCodeReviewsRequest.Builder to create a request.default CompletableFuture<ListRecommendationFeedbackResponse> listRecommendationFeedback(ListRecommendationFeedbackRequest listRecommendationFeedbackRequest)
Returns a list of
RecommendationFeedbackSummary objects that contain customer recommendation feedback for all
CodeGuru Reviewer users.
listRecommendationFeedbackRequest - 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 via ListRecommendationFeedbackRequest.builder()
listRecommendationFeedbackRequest - A Consumer that will call methods on ListRecommendationFeedbackRequest.Builder to create a
request.default ListRecommendationFeedbackPublisher listRecommendationFeedbackPaginator(ListRecommendationFeedbackRequest listRecommendationFeedbackRequest)
Returns a list of
RecommendationFeedbackSummary objects that contain customer recommendation feedback for all
CodeGuru Reviewer users.
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 new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.codegurureviewer.paginators.ListRecommendationFeedbackPublisher publisher = client.listRecommendationFeedbackPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
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) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listRecommendationFeedback(software.amazon.awssdk.services.codegurureviewer.model.ListRecommendationFeedbackRequest)
operation.
listRecommendationFeedbackRequest - default ListRecommendationFeedbackPublisher listRecommendationFeedbackPaginator(Consumer<ListRecommendationFeedbackRequest.Builder> listRecommendationFeedbackRequest)
Returns a list of
RecommendationFeedbackSummary objects that contain customer recommendation feedback for all
CodeGuru Reviewer users.
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 new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.codegurureviewer.paginators.ListRecommendationFeedbackPublisher publisher = client.listRecommendationFeedbackPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
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) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
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 via ListRecommendationFeedbackRequest.builder()
listRecommendationFeedbackRequest - A Consumer that will call methods on ListRecommendationFeedbackRequest.Builder to create a
request.default CompletableFuture<ListRecommendationsResponse> listRecommendations(ListRecommendationsRequest listRecommendationsRequest)
Returns the list of all recommendations for a completed code review.
listRecommendationsRequest - 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 via ListRecommendationsRequest.builder()
listRecommendationsRequest - A Consumer that will call methods on ListRecommendationsRequest.Builder to create a
request.default ListRecommendationsPublisher listRecommendationsPaginator(ListRecommendationsRequest listRecommendationsRequest)
Returns the list of all recommendations for a completed code review.
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 new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.codegurureviewer.paginators.ListRecommendationsPublisher publisher = client.listRecommendationsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
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) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listRecommendations(software.amazon.awssdk.services.codegurureviewer.model.ListRecommendationsRequest)
operation.
listRecommendationsRequest - default ListRecommendationsPublisher listRecommendationsPaginator(Consumer<ListRecommendationsRequest.Builder> listRecommendationsRequest)
Returns the list of all recommendations for a completed code review.
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 new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.codegurureviewer.paginators.ListRecommendationsPublisher publisher = client.listRecommendationsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
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) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
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 via ListRecommendationsRequest.builder()
listRecommendationsRequest - A Consumer that will call methods on ListRecommendationsRequest.Builder to create a
request.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 .
listRepositoryAssociationsRequest - 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 via ListRepositoryAssociationsRequest.builder()
listRepositoryAssociationsRequest - A Consumer that will call methods on ListRepositoryAssociationsRequest.Builder to create a
request.default ListRepositoryAssociationsPublisher listRepositoryAssociationsPaginator(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 .
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 new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.codegurureviewer.paginators.ListRepositoryAssociationsPublisher publisher = client.listRepositoryAssociationsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
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) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listRepositoryAssociations(software.amazon.awssdk.services.codegurureviewer.model.ListRepositoryAssociationsRequest)
operation.
listRepositoryAssociationsRequest - default ListRepositoryAssociationsPublisher listRepositoryAssociationsPaginator(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 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 new Subscription i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the subscribe helper method
software.amazon.awssdk.services.codegurureviewer.paginators.ListRepositoryAssociationsPublisher publisher = client.listRepositoryAssociationsPaginator(request);
CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
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) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
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 via ListRepositoryAssociationsRequest.builder()
listRepositoryAssociationsRequest - A Consumer that will call methods on ListRepositoryAssociationsRequest.Builder to create a
request.default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest)
Returns the list of tags associated with an associated repository resource.
listTagsForResourceRequest - 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 via ListTagsForResourceRequest.builder()
listTagsForResourceRequest - A Consumer that will call methods on ListTagsForResourceRequest.Builder to create a
request.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.
putRecommendationFeedbackRequest - 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 via PutRecommendationFeedbackRequest.builder()
putRecommendationFeedbackRequest - A Consumer that will call methods on PutRecommendationFeedbackRequest.Builder to create a
request.default CompletableFuture<TagResourceResponse> tagResource(TagResourceRequest tagResourceRequest)
Adds one or more tags to an associated repository.
tagResourceRequest - 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 via TagResourceRequest.builder()
tagResourceRequest - A Consumer that will call methods on TagResourceRequest.Builder to create a request.default CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest)
Removes a tag from an associated repository.
untagResourceRequest - 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 via UntagResourceRequest.builder()
untagResourceRequest - A Consumer that will call methods on UntagResourceRequest.Builder to create a request.Copyright © 2021. All rights reserved.