Interface CodeGuruReviewerClient
-
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
@Generated("software.amazon.awssdk:codegen") @ThreadSafe public interface CodeGuruReviewerClient extends AwsClient
Service client for accessing CodeGuruReviewer. This can be created using the staticbuilder()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 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
Fields Modifier and Type Field Description static StringSERVICE_METADATA_IDValue for looking up the service's metadata from theServiceMetadataProvider.static StringSERVICE_NAME
-
Method Summary
-
Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
-
Methods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
-
-
-
Field Detail
-
SERVICE_NAME
static final String SERVICE_NAME
- See Also:
- Constant Field Values
-
SERVICE_METADATA_ID
static final String SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider.- See Also:
- Constant Field Values
-
-
Method Detail
-
associateRepository
default AssociateRepositoryResponse associateRepository(AssociateRepositoryRequest associateRepositoryRequest) throws InternalServerException, ValidationException, AccessDeniedException, ConflictException, ThrottlingException, AwsServiceException, SdkClientException, CodeGuruReviewerException
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:
- Result of the AssociateRepository operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
associateRepository
default AssociateRepositoryResponse associateRepository(Consumer<AssociateRepositoryRequest.Builder> associateRepositoryRequest) throws InternalServerException, ValidationException, AccessDeniedException, ConflictException, ThrottlingException, AwsServiceException, SdkClientException, CodeGuruReviewerException
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.Builderavoiding the need to create one manually viaAssociateRepositoryRequest.builder()- Parameters:
associateRepositoryRequest- AConsumerthat will call methods onAssociateRepositoryRequest.Builderto create a request.- Returns:
- Result of the AssociateRepository operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
createCodeReview
default CreateCodeReviewResponse createCodeReview(CreateCodeReviewRequest createCodeReviewRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, ConflictException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, CodeGuruReviewerException
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.PullRequestcode reviews are automatically triggered by a pull request.- Parameters:
createCodeReviewRequest-- Returns:
- Result of the CreateCodeReview operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
createCodeReview
default CreateCodeReviewResponse createCodeReview(Consumer<CreateCodeReviewRequest.Builder> createCodeReviewRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, ConflictException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, CodeGuruReviewerException
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.PullRequestcode reviews are automatically triggered by a pull request.
This is a convenience which creates an instance of the
CreateCodeReviewRequest.Builderavoiding the need to create one manually viaCreateCodeReviewRequest.builder()- Parameters:
createCodeReviewRequest- AConsumerthat will call methods onCreateCodeReviewRequest.Builderto create a request.- Returns:
- Result of the CreateCodeReview operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
describeCodeReview
default DescribeCodeReviewResponse describeCodeReview(DescribeCodeReviewRequest describeCodeReviewRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, CodeGuruReviewerException
Returns the metadata associated with the code review along with its status.
- Parameters:
describeCodeReviewRequest-- Returns:
- Result of the DescribeCodeReview operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
describeCodeReview
default DescribeCodeReviewResponse describeCodeReview(Consumer<DescribeCodeReviewRequest.Builder> describeCodeReviewRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, CodeGuruReviewerException
Returns the metadata associated with the code review along with its status.
This is a convenience which creates an instance of the
DescribeCodeReviewRequest.Builderavoiding the need to create one manually viaDescribeCodeReviewRequest.builder()- Parameters:
describeCodeReviewRequest- AConsumerthat will call methods onDescribeCodeReviewRequest.Builderto create a request.- Returns:
- Result of the DescribeCodeReview operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
describeRecommendationFeedback
default DescribeRecommendationFeedbackResponse describeRecommendationFeedback(DescribeRecommendationFeedbackRequest describeRecommendationFeedbackRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, CodeGuruReviewerException
Describes the customer feedback for a CodeGuru Reviewer recommendation.
- Parameters:
describeRecommendationFeedbackRequest-- Returns:
- Result of the DescribeRecommendationFeedback operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
describeRecommendationFeedback
default DescribeRecommendationFeedbackResponse describeRecommendationFeedback(Consumer<DescribeRecommendationFeedbackRequest.Builder> describeRecommendationFeedbackRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, CodeGuruReviewerException
Describes the customer feedback for a CodeGuru Reviewer recommendation.
This is a convenience which creates an instance of the
DescribeRecommendationFeedbackRequest.Builderavoiding the need to create one manually viaDescribeRecommendationFeedbackRequest.builder()- Parameters:
describeRecommendationFeedbackRequest- AConsumerthat will call methods onDescribeRecommendationFeedbackRequest.Builderto create a request.- Returns:
- Result of the DescribeRecommendationFeedback operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
describeRepositoryAssociation
default DescribeRepositoryAssociationResponse describeRepositoryAssociation(DescribeRepositoryAssociationRequest describeRepositoryAssociationRequest) throws NotFoundException, InternalServerException, ValidationException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, CodeGuruReviewerException
Returns a RepositoryAssociation object that contains information about the requested repository association.
- Parameters:
describeRepositoryAssociationRequest-- Returns:
- Result of the DescribeRepositoryAssociation operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
describeRepositoryAssociation
default DescribeRepositoryAssociationResponse describeRepositoryAssociation(Consumer<DescribeRepositoryAssociationRequest.Builder> describeRepositoryAssociationRequest) throws NotFoundException, InternalServerException, ValidationException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, CodeGuruReviewerException
Returns a RepositoryAssociation object that contains information about the requested repository association.
This is a convenience which creates an instance of the
DescribeRepositoryAssociationRequest.Builderavoiding the need to create one manually viaDescribeRepositoryAssociationRequest.builder()- Parameters:
describeRepositoryAssociationRequest- AConsumerthat will call methods onDescribeRepositoryAssociationRequest.Builderto create a request.- Returns:
- Result of the DescribeRepositoryAssociation operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
disassociateRepository
default DisassociateRepositoryResponse disassociateRepository(DisassociateRepositoryRequest disassociateRepositoryRequest) throws NotFoundException, InternalServerException, ValidationException, AccessDeniedException, ConflictException, ThrottlingException, AwsServiceException, SdkClientException, CodeGuruReviewerException
Removes the association between Amazon CodeGuru Reviewer and a repository.
- Parameters:
disassociateRepositoryRequest-- Returns:
- Result of the DisassociateRepository operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
disassociateRepository
default DisassociateRepositoryResponse disassociateRepository(Consumer<DisassociateRepositoryRequest.Builder> disassociateRepositoryRequest) throws NotFoundException, InternalServerException, ValidationException, AccessDeniedException, ConflictException, ThrottlingException, AwsServiceException, SdkClientException, CodeGuruReviewerException
Removes the association between Amazon CodeGuru Reviewer and a repository.
This is a convenience which creates an instance of the
DisassociateRepositoryRequest.Builderavoiding the need to create one manually viaDisassociateRepositoryRequest.builder()- Parameters:
disassociateRepositoryRequest- AConsumerthat will call methods onDisassociateRepositoryRequest.Builderto create a request.- Returns:
- Result of the DisassociateRepository operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
listCodeReviews
default ListCodeReviewsResponse listCodeReviews(ListCodeReviewsRequest listCodeReviewsRequest) throws InternalServerException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, CodeGuruReviewerException
Lists all the code reviews that the customer has created in the past 90 days.
- Parameters:
listCodeReviewsRequest-- Returns:
- Result of the ListCodeReviews operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
listCodeReviews
default ListCodeReviewsResponse listCodeReviews(Consumer<ListCodeReviewsRequest.Builder> listCodeReviewsRequest) throws InternalServerException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, CodeGuruReviewerException
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.Builderavoiding the need to create one manually viaListCodeReviewsRequest.builder()- Parameters:
listCodeReviewsRequest- AConsumerthat will call methods onListCodeReviewsRequest.Builderto create a request.- Returns:
- Result of the ListCodeReviews operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
listCodeReviewsPaginator
default ListCodeReviewsIterable listCodeReviewsPaginator(ListCodeReviewsRequest listCodeReviewsRequest) throws InternalServerException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, CodeGuruReviewerException
This is a variant of
listCodeReviews(software.amazon.awssdk.services.codegurureviewer.model.ListCodeReviewsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.codegurureviewer.paginators.ListCodeReviewsIterable responses = client.listCodeReviewsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.codegurureviewer.paginators.ListCodeReviewsIterable responses = client .listCodeReviewsPaginator(request); for (software.amazon.awssdk.services.codegurureviewer.model.ListCodeReviewsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.codegurureviewer.paginators.ListCodeReviewsIterable responses = client.listCodeReviewsPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
listCodeReviewsPaginator
default ListCodeReviewsIterable listCodeReviewsPaginator(Consumer<ListCodeReviewsRequest.Builder> listCodeReviewsRequest) throws InternalServerException, ValidationException, ThrottlingException, AccessDeniedException, AwsServiceException, SdkClientException, CodeGuruReviewerException
This is a variant of
listCodeReviews(software.amazon.awssdk.services.codegurureviewer.model.ListCodeReviewsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.codegurureviewer.paginators.ListCodeReviewsIterable responses = client.listCodeReviewsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.codegurureviewer.paginators.ListCodeReviewsIterable responses = client .listCodeReviewsPaginator(request); for (software.amazon.awssdk.services.codegurureviewer.model.ListCodeReviewsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.codegurureviewer.paginators.ListCodeReviewsIterable responses = client.listCodeReviewsPaginator(request); responses.iterator().forEachRemaining(....);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.Builderavoiding the need to create one manually viaListCodeReviewsRequest.builder()- Parameters:
listCodeReviewsRequest- AConsumerthat will call methods onListCodeReviewsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
listRecommendationFeedback
default ListRecommendationFeedbackResponse listRecommendationFeedback(ListRecommendationFeedbackRequest listRecommendationFeedbackRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, CodeGuruReviewerException
Returns a list of RecommendationFeedbackSummary objects that contain customer recommendation feedback for all CodeGuru Reviewer users.
- Parameters:
listRecommendationFeedbackRequest-- Returns:
- Result of the ListRecommendationFeedback operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
listRecommendationFeedback
default ListRecommendationFeedbackResponse listRecommendationFeedback(Consumer<ListRecommendationFeedbackRequest.Builder> listRecommendationFeedbackRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, CodeGuruReviewerException
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.Builderavoiding the need to create one manually viaListRecommendationFeedbackRequest.builder()- Parameters:
listRecommendationFeedbackRequest- AConsumerthat will call methods onListRecommendationFeedbackRequest.Builderto create a request.- Returns:
- Result of the ListRecommendationFeedback operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
listRecommendationFeedbackPaginator
default ListRecommendationFeedbackIterable listRecommendationFeedbackPaginator(ListRecommendationFeedbackRequest listRecommendationFeedbackRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, CodeGuruReviewerException
This is a variant of
listRecommendationFeedback(software.amazon.awssdk.services.codegurureviewer.model.ListRecommendationFeedbackRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.codegurureviewer.paginators.ListRecommendationFeedbackIterable responses = client.listRecommendationFeedbackPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.codegurureviewer.paginators.ListRecommendationFeedbackIterable responses = client .listRecommendationFeedbackPaginator(request); for (software.amazon.awssdk.services.codegurureviewer.model.ListRecommendationFeedbackResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.codegurureviewer.paginators.ListRecommendationFeedbackIterable responses = client.listRecommendationFeedbackPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
listRecommendationFeedbackPaginator
default ListRecommendationFeedbackIterable listRecommendationFeedbackPaginator(Consumer<ListRecommendationFeedbackRequest.Builder> listRecommendationFeedbackRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, CodeGuruReviewerException
This is a variant of
listRecommendationFeedback(software.amazon.awssdk.services.codegurureviewer.model.ListRecommendationFeedbackRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.codegurureviewer.paginators.ListRecommendationFeedbackIterable responses = client.listRecommendationFeedbackPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.codegurureviewer.paginators.ListRecommendationFeedbackIterable responses = client .listRecommendationFeedbackPaginator(request); for (software.amazon.awssdk.services.codegurureviewer.model.ListRecommendationFeedbackResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.codegurureviewer.paginators.ListRecommendationFeedbackIterable responses = client.listRecommendationFeedbackPaginator(request); responses.iterator().forEachRemaining(....);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.Builderavoiding the need to create one manually viaListRecommendationFeedbackRequest.builder()- Parameters:
listRecommendationFeedbackRequest- AConsumerthat will call methods onListRecommendationFeedbackRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
listRecommendations
default ListRecommendationsResponse listRecommendations(ListRecommendationsRequest listRecommendationsRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, CodeGuruReviewerException
Returns the list of all recommendations for a completed code review.
- Parameters:
listRecommendationsRequest-- Returns:
- Result of the ListRecommendations operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
listRecommendations
default ListRecommendationsResponse listRecommendations(Consumer<ListRecommendationsRequest.Builder> listRecommendationsRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, CodeGuruReviewerException
Returns the list of all recommendations for a completed code review.
This is a convenience which creates an instance of the
ListRecommendationsRequest.Builderavoiding the need to create one manually viaListRecommendationsRequest.builder()- Parameters:
listRecommendationsRequest- AConsumerthat will call methods onListRecommendationsRequest.Builderto create a request.- Returns:
- Result of the ListRecommendations operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
listRecommendationsPaginator
default ListRecommendationsIterable listRecommendationsPaginator(ListRecommendationsRequest listRecommendationsRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, CodeGuruReviewerException
This is a variant of
listRecommendations(software.amazon.awssdk.services.codegurureviewer.model.ListRecommendationsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.codegurureviewer.paginators.ListRecommendationsIterable responses = client.listRecommendationsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.codegurureviewer.paginators.ListRecommendationsIterable responses = client .listRecommendationsPaginator(request); for (software.amazon.awssdk.services.codegurureviewer.model.ListRecommendationsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.codegurureviewer.paginators.ListRecommendationsIterable responses = client.listRecommendationsPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
listRecommendationsPaginator
default ListRecommendationsIterable listRecommendationsPaginator(Consumer<ListRecommendationsRequest.Builder> listRecommendationsRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, CodeGuruReviewerException
This is a variant of
listRecommendations(software.amazon.awssdk.services.codegurureviewer.model.ListRecommendationsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.codegurureviewer.paginators.ListRecommendationsIterable responses = client.listRecommendationsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.codegurureviewer.paginators.ListRecommendationsIterable responses = client .listRecommendationsPaginator(request); for (software.amazon.awssdk.services.codegurureviewer.model.ListRecommendationsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.codegurureviewer.paginators.ListRecommendationsIterable responses = client.listRecommendationsPaginator(request); responses.iterator().forEachRemaining(....);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.Builderavoiding the need to create one manually viaListRecommendationsRequest.builder()- Parameters:
listRecommendationsRequest- AConsumerthat will call methods onListRecommendationsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
listRepositoryAssociations
default ListRepositoryAssociationsResponse listRepositoryAssociations(ListRepositoryAssociationsRequest listRepositoryAssociationsRequest) throws InternalServerException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, CodeGuruReviewerException
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:
- Result of the ListRepositoryAssociations operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
listRepositoryAssociations
default ListRepositoryAssociationsResponse listRepositoryAssociations(Consumer<ListRepositoryAssociationsRequest.Builder> listRepositoryAssociationsRequest) throws InternalServerException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, CodeGuruReviewerException
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.Builderavoiding the need to create one manually viaListRepositoryAssociationsRequest.builder()- Parameters:
listRepositoryAssociationsRequest- AConsumerthat will call methods onListRepositoryAssociationsRequest.Builderto create a request.- Returns:
- Result of the ListRepositoryAssociations operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
listRepositoryAssociationsPaginator
default ListRepositoryAssociationsIterable listRepositoryAssociationsPaginator(ListRepositoryAssociationsRequest listRepositoryAssociationsRequest) throws InternalServerException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, CodeGuruReviewerException
This is a variant of
listRepositoryAssociations(software.amazon.awssdk.services.codegurureviewer.model.ListRepositoryAssociationsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.codegurureviewer.paginators.ListRepositoryAssociationsIterable responses = client.listRepositoryAssociationsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.codegurureviewer.paginators.ListRepositoryAssociationsIterable responses = client .listRepositoryAssociationsPaginator(request); for (software.amazon.awssdk.services.codegurureviewer.model.ListRepositoryAssociationsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.codegurureviewer.paginators.ListRepositoryAssociationsIterable responses = client.listRepositoryAssociationsPaginator(request); responses.iterator().forEachRemaining(....);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 iterable that can be used to iterate through all the response pages.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
listRepositoryAssociationsPaginator
default ListRepositoryAssociationsIterable listRepositoryAssociationsPaginator(Consumer<ListRepositoryAssociationsRequest.Builder> listRepositoryAssociationsRequest) throws InternalServerException, ValidationException, ThrottlingException, AwsServiceException, SdkClientException, CodeGuruReviewerException
This is a variant of
listRepositoryAssociations(software.amazon.awssdk.services.codegurureviewer.model.ListRepositoryAssociationsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.codegurureviewer.paginators.ListRepositoryAssociationsIterable responses = client.listRepositoryAssociationsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.codegurureviewer.paginators.ListRepositoryAssociationsIterable responses = client .listRepositoryAssociationsPaginator(request); for (software.amazon.awssdk.services.codegurureviewer.model.ListRepositoryAssociationsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.codegurureviewer.paginators.ListRepositoryAssociationsIterable responses = client.listRepositoryAssociationsPaginator(request); responses.iterator().forEachRemaining(....);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.Builderavoiding the need to create one manually viaListRepositoryAssociationsRequest.builder()- Parameters:
listRepositoryAssociationsRequest- AConsumerthat will call methods onListRepositoryAssociationsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws InternalServerException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, CodeGuruReviewerException
Returns the list of tags associated with an associated repository resource.
- Parameters:
listTagsForResourceRequest-- Returns:
- Result of the ListTagsForResource operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws InternalServerException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, CodeGuruReviewerException
Returns the list of tags associated with an associated repository resource.
This is a convenience which creates an instance of the
ListTagsForResourceRequest.Builderavoiding the need to create one manually viaListTagsForResourceRequest.builder()- Parameters:
listTagsForResourceRequest- AConsumerthat will call methods onListTagsForResourceRequest.Builderto create a request.- Returns:
- Result of the ListTagsForResource operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
putRecommendationFeedback
default PutRecommendationFeedbackResponse putRecommendationFeedback(PutRecommendationFeedbackRequest putRecommendationFeedbackRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, CodeGuruReviewerException
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:
- Result of the PutRecommendationFeedback operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
putRecommendationFeedback
default PutRecommendationFeedbackResponse putRecommendationFeedback(Consumer<PutRecommendationFeedbackRequest.Builder> putRecommendationFeedbackRequest) throws ResourceNotFoundException, InternalServerException, ValidationException, AccessDeniedException, ThrottlingException, AwsServiceException, SdkClientException, CodeGuruReviewerException
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.Builderavoiding the need to create one manually viaPutRecommendationFeedbackRequest.builder()- Parameters:
putRecommendationFeedbackRequest- AConsumerthat will call methods onPutRecommendationFeedbackRequest.Builderto create a request.- Returns:
- Result of the PutRecommendationFeedback operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
tagResource
default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws InternalServerException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, CodeGuruReviewerException
Adds one or more tags to an associated repository.
- Parameters:
tagResourceRequest-- Returns:
- Result of the TagResource operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
tagResource
default TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws InternalServerException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, CodeGuruReviewerException
Adds one or more tags to an associated repository.
This is a convenience which creates an instance of the
TagResourceRequest.Builderavoiding the need to create one manually viaTagResourceRequest.builder()- Parameters:
tagResourceRequest- AConsumerthat will call methods onTagResourceRequest.Builderto create a request.- Returns:
- Result of the TagResource operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
untagResource
default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws InternalServerException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, CodeGuruReviewerException
Removes a tag from an associated repository.
- Parameters:
untagResourceRequest-- Returns:
- Result of the UntagResource operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
untagResource
default UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws InternalServerException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, CodeGuruReviewerException
Removes a tag from an associated repository.
This is a convenience which creates an instance of the
UntagResourceRequest.Builderavoiding the need to create one manually viaUntagResourceRequest.builder()- Parameters:
untagResourceRequest- AConsumerthat will call methods onUntagResourceRequest.Builderto create a request.- Returns:
- Result of the UntagResource operation returned by the service.
- Throws:
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.AwsServiceException- See Also:
- AWS API Documentation
-
waiter
default CodeGuruReviewerWaiter waiter()
Create an instance ofCodeGuruReviewerWaiterusing 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
CodeGuruReviewerWaiter
-
create
static CodeGuruReviewerClient create()
Create aCodeGuruReviewerClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.
-
builder
static CodeGuruReviewerClientBuilder builder()
Create a builder that can be used to configure and create aCodeGuruReviewerClient.
-
serviceMetadata
static ServiceMetadata serviceMetadata()
-
serviceClientConfiguration
default CodeGuruReviewerServiceClientConfiguration serviceClientConfiguration()
- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient
-
-