Struct aws_sdk_codegurureviewer::operation::list_code_reviews::builders::ListCodeReviewsInputBuilder
source · #[non_exhaustive]pub struct ListCodeReviewsInputBuilder { /* private fields */ }
Expand description
A builder for ListCodeReviewsInput
.
Implementations§
source§impl ListCodeReviewsInputBuilder
impl ListCodeReviewsInputBuilder
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 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 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 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 type(self, input: Type) -> Self
pub fn type(self, input: Type) -> Self
The type of code reviews to list in the response.
This field is required.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.
sourcepub fn build(self) -> Result<ListCodeReviewsInput, BuildError>
pub fn build(self) -> Result<ListCodeReviewsInput, BuildError>
Consumes the builder and constructs a ListCodeReviewsInput
.
source§impl ListCodeReviewsInputBuilder
impl ListCodeReviewsInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<ListCodeReviewsOutput, SdkError<ListCodeReviewsError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<ListCodeReviewsOutput, SdkError<ListCodeReviewsError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for ListCodeReviewsInputBuilder
impl Clone for ListCodeReviewsInputBuilder
source§fn clone(&self) -> ListCodeReviewsInputBuilder
fn clone(&self) -> ListCodeReviewsInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ListCodeReviewsInputBuilder
impl Debug for ListCodeReviewsInputBuilder
source§impl Default for ListCodeReviewsInputBuilder
impl Default for ListCodeReviewsInputBuilder
source§fn default() -> ListCodeReviewsInputBuilder
fn default() -> ListCodeReviewsInputBuilder
source§impl PartialEq for ListCodeReviewsInputBuilder
impl PartialEq for ListCodeReviewsInputBuilder
source§fn eq(&self, other: &ListCodeReviewsInputBuilder) -> bool
fn eq(&self, other: &ListCodeReviewsInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.