#[non_exhaustive]pub struct Builder { /* private fields */ }Expand description
A builder for ListCodeReviewsInput
Implementations
sourceimpl Builder
impl Builder
sourcepub fn provider_types(self, input: ProviderType) -> Self
pub fn provider_types(self, input: ProviderType) -> Self
Appends an item to provider_types.
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 repository_names.
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.
sourcepub fn build(self) -> Result<ListCodeReviewsInput, BuildError>
pub fn build(self) -> Result<ListCodeReviewsInput, BuildError>
Consumes the builder and constructs a ListCodeReviewsInput
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more