pub struct ListCodeReviews { /* private fields */ }Expand description
Fluent builder constructing a request to ListCodeReviews.
Lists all the code reviews that the customer has created in the past 90 days.
Implementations§
source§impl ListCodeReviews
impl ListCodeReviews
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<ListCodeReviews, AwsResponseRetryClassifier>, SdkError<ListCodeReviewsError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<ListCodeReviews, AwsResponseRetryClassifier>, SdkError<ListCodeReviewsError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<ListCodeReviewsOutput, SdkError<ListCodeReviewsError>>
pub async fn send(
self
) -> Result<ListCodeReviewsOutput, SdkError<ListCodeReviewsError>>
Sends the request and returns the response.
If an error occurs, an SdkError will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn into_paginator(self) -> ListCodeReviewsPaginator
pub fn into_paginator(self) -> ListCodeReviewsPaginator
Create a paginator for this request
Paginators are used by calling send().await which returns a Stream.
sourcepub fn provider_types(self, input: ProviderType) -> Self
pub fn provider_types(self, input: ProviderType) -> Self
Appends an item to ProviderTypes.
To override the contents of this collection use set_provider_types.
List of provider types for filtering that needs to be applied before displaying the result. For example, providerTypes=[GitHub] lists code reviews from GitHub.
sourcepub fn set_provider_types(self, input: Option<Vec<ProviderType>>) -> Self
pub fn set_provider_types(self, input: Option<Vec<ProviderType>>) -> Self
List of provider types for filtering that needs to be applied before displaying the result. For example, providerTypes=[GitHub] lists code reviews from GitHub.
sourcepub fn states(self, input: JobState) -> Self
pub fn states(self, input: JobState) -> Self
Appends an item to States.
To override the contents of this collection use set_states.
List of states for filtering that needs to be applied before displaying the result. For example, states=[Pending] lists code reviews in the Pending state.
The valid code review states are:
-
Completed: The code review is complete. -
Pending: The code review started and has not completed or failed. -
Failed: The code review failed. -
Deleting: The code review is being deleted.
sourcepub fn set_states(self, input: Option<Vec<JobState>>) -> Self
pub fn set_states(self, input: Option<Vec<JobState>>) -> Self
List of states for filtering that needs to be applied before displaying the result. For example, states=[Pending] lists code reviews in the Pending state.
The valid code review states are:
-
Completed: The code review is complete. -
Pending: The code review started and has not completed or failed. -
Failed: The code review failed. -
Deleting: The code review is being deleted.
sourcepub fn repository_names(self, input: impl Into<String>) -> Self
pub fn repository_names(self, input: impl Into<String>) -> Self
Appends an item to RepositoryNames.
To override the contents of this collection use set_repository_names.
List of repository names for filtering that needs to be applied before displaying the result.
sourcepub fn set_repository_names(self, input: Option<Vec<String>>) -> Self
pub fn set_repository_names(self, input: Option<Vec<String>>) -> Self
List of repository names for filtering that needs to be applied before displaying the result.
sourcepub fn set_type(self, input: Option<Type>) -> Self
pub fn set_type(self, input: Option<Type>) -> Self
The type of code reviews to list in the response.
sourcepub fn max_results(self, input: i32) -> Self
pub fn max_results(self, input: i32) -> Self
The maximum number of results that are returned per call. The default is 100.
sourcepub fn set_max_results(self, input: Option<i32>) -> Self
pub fn set_max_results(self, input: Option<i32>) -> Self
The maximum number of results that are returned per call. The default is 100.
sourcepub fn next_token(self, input: impl Into<String>) -> Self
pub fn next_token(self, input: impl Into<String>) -> Self
If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged.
sourcepub fn set_next_token(self, input: Option<String>) -> Self
pub fn set_next_token(self, input: Option<String>) -> Self
If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged.
Trait Implementations§
source§impl Clone for ListCodeReviews
impl Clone for ListCodeReviews
source§fn clone(&self) -> ListCodeReviews
fn clone(&self) -> ListCodeReviews
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more