pub struct Builder { /* private fields */ }Expand description
A builder for SearchAssociatedTranscriptsInput.
Implementations§
source§impl Builder
impl Builder
sourcepub fn bot_id(self, input: impl Into<String>) -> Self
pub fn bot_id(self, input: impl Into<String>) -> Self
The unique identifier of the bot associated with the transcripts that you are searching.
sourcepub fn set_bot_id(self, input: Option<String>) -> Self
pub fn set_bot_id(self, input: Option<String>) -> Self
The unique identifier of the bot associated with the transcripts that you are searching.
sourcepub fn bot_version(self, input: impl Into<String>) -> Self
pub fn bot_version(self, input: impl Into<String>) -> Self
The version of the bot containing the transcripts that you are searching.
sourcepub fn set_bot_version(self, input: Option<String>) -> Self
pub fn set_bot_version(self, input: Option<String>) -> Self
The version of the bot containing the transcripts that you are searching.
sourcepub fn locale_id(self, input: impl Into<String>) -> Self
pub fn locale_id(self, input: impl Into<String>) -> Self
The identifier of the language and locale of the transcripts to search. The string must match one of the supported locales. For more information, see Supported languages
sourcepub fn set_locale_id(self, input: Option<String>) -> Self
pub fn set_locale_id(self, input: Option<String>) -> Self
The identifier of the language and locale of the transcripts to search. The string must match one of the supported locales. For more information, see Supported languages
sourcepub fn bot_recommendation_id(self, input: impl Into<String>) -> Self
pub fn bot_recommendation_id(self, input: impl Into<String>) -> Self
The unique identifier of the bot recommendation associated with the transcripts to search.
sourcepub fn set_bot_recommendation_id(self, input: Option<String>) -> Self
pub fn set_bot_recommendation_id(self, input: Option<String>) -> Self
The unique identifier of the bot recommendation associated with the transcripts to search.
sourcepub fn search_order(self, input: SearchOrder) -> Self
pub fn search_order(self, input: SearchOrder) -> Self
How SearchResults are ordered. Valid values are Ascending or Descending. The default is Descending.
sourcepub fn set_search_order(self, input: Option<SearchOrder>) -> Self
pub fn set_search_order(self, input: Option<SearchOrder>) -> Self
How SearchResults are ordered. Valid values are Ascending or Descending. The default is Descending.
sourcepub fn filters(self, input: AssociatedTranscriptFilter) -> Self
pub fn filters(self, input: AssociatedTranscriptFilter) -> Self
Appends an item to filters.
To override the contents of this collection use set_filters.
A list of filter objects.
sourcepub fn set_filters(self, input: Option<Vec<AssociatedTranscriptFilter>>) -> Self
pub fn set_filters(self, input: Option<Vec<AssociatedTranscriptFilter>>) -> Self
A list of filter objects.
sourcepub fn max_results(self, input: i32) -> Self
pub fn max_results(self, input: i32) -> Self
The maximum number of bot recommendations to return in each page of results. If there are fewer results than the max page size, only the actual number of results are returned.
sourcepub fn set_max_results(self, input: Option<i32>) -> Self
pub fn set_max_results(self, input: Option<i32>) -> Self
The maximum number of bot recommendations to return in each page of results. If there are fewer results than the max page size, only the actual number of results are returned.
sourcepub fn next_index(self, input: i32) -> Self
pub fn next_index(self, input: i32) -> Self
If the response from the SearchAssociatedTranscriptsRequest operation contains more results than specified in the maxResults parameter, an index is returned in the response. Use that index in the nextIndex parameter to return the next page of results.
sourcepub fn set_next_index(self, input: Option<i32>) -> Self
pub fn set_next_index(self, input: Option<i32>) -> Self
If the response from the SearchAssociatedTranscriptsRequest operation contains more results than specified in the maxResults parameter, an index is returned in the response. Use that index in the nextIndex parameter to return the next page of results.
sourcepub fn build(self) -> Result<SearchAssociatedTranscriptsInput, BuildError>
pub fn build(self) -> Result<SearchAssociatedTranscriptsInput, BuildError>
Consumes the builder and constructs a SearchAssociatedTranscriptsInput.
Examples found in repository?
7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::SearchAssociatedTranscripts,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::SearchAssociatedTranscriptsError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::SearchAssociatedTranscriptsOutput,
aws_smithy_http::result::SdkError<crate::error::SearchAssociatedTranscriptsError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}