Struct aws_sdk_codegurureviewer::operation::list_code_reviews::builders::ListCodeReviewsFluentBuilder
source · pub struct ListCodeReviewsFluentBuilder { /* 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 ListCodeReviewsFluentBuilder
impl ListCodeReviewsFluentBuilder
sourcepub fn as_input(&self) -> &ListCodeReviewsInputBuilder
pub fn as_input(&self) -> &ListCodeReviewsInputBuilder
Access the ListCodeReviews as a reference.
sourcepub async fn send(
self,
) -> Result<ListCodeReviewsOutput, SdkError<ListCodeReviewsError, HttpResponse>>
pub async fn send( self, ) -> Result<ListCodeReviewsOutput, SdkError<ListCodeReviewsError, HttpResponse>>
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 customize(
self,
) -> CustomizableOperation<ListCodeReviewsOutput, ListCodeReviewsError, Self>
pub fn customize( self, ) -> CustomizableOperation<ListCodeReviewsOutput, ListCodeReviewsError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
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 PaginationStream
.
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 get_provider_types(&self) -> &Option<Vec<ProviderType>>
pub fn get_provider_types(&self) -> &Option<Vec<ProviderType>>
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 get_states(&self) -> &Option<Vec<JobState>>
pub fn get_states(&self) -> &Option<Vec<JobState>>
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 get_repository_names(&self) -> &Option<Vec<String>>
pub fn get_repository_names(&self) -> &Option<Vec<String>>
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 get_max_results(&self) -> &Option<i32>
pub fn get_max_results(&self) -> &Option<i32>
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.
sourcepub fn get_next_token(&self) -> &Option<String>
pub fn get_next_token(&self) -> &Option<String>
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 ListCodeReviewsFluentBuilder
impl Clone for ListCodeReviewsFluentBuilder
source§fn clone(&self) -> ListCodeReviewsFluentBuilder
fn clone(&self) -> ListCodeReviewsFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for ListCodeReviewsFluentBuilder
impl !RefUnwindSafe for ListCodeReviewsFluentBuilder
impl Send for ListCodeReviewsFluentBuilder
impl Sync for ListCodeReviewsFluentBuilder
impl Unpin for ListCodeReviewsFluentBuilder
impl !UnwindSafe for ListCodeReviewsFluentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more