Struct aws_sdk_lexmodelsv2::input::list_bot_versions_input::Builder
source · [−]pub struct Builder { /* private fields */ }Expand description
A builder for ListBotVersionsInput.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn bot_id(self, input: impl Into<String>) -> Self
pub fn bot_id(self, input: impl Into<String>) -> Self
The identifier of the bot to list versions for.
sourcepub fn set_bot_id(self, input: Option<String>) -> Self
pub fn set_bot_id(self, input: Option<String>) -> Self
The identifier of the bot to list versions for.
sourcepub fn sort_by(self, input: BotVersionSortBy) -> Self
pub fn sort_by(self, input: BotVersionSortBy) -> Self
Specifies sorting parameters for the list of versions. You can specify that the list be sorted by version name in either ascending or descending order.
sourcepub fn set_sort_by(self, input: Option<BotVersionSortBy>) -> Self
pub fn set_sort_by(self, input: Option<BotVersionSortBy>) -> Self
Specifies sorting parameters for the list of versions. You can specify that the list be sorted by version name in either ascending or descending order.
sourcepub fn max_results(self, input: i32) -> Self
pub fn max_results(self, input: i32) -> Self
The maximum number of versions 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 versions 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_token(self, input: impl Into<String>) -> Self
pub fn next_token(self, input: impl Into<String>) -> Self
If the response to the ListBotVersion operation contains more results than specified in the maxResults parameter, a token is returned in the response. Use that token in the nextToken parameter to return the next page of results.
sourcepub fn set_next_token(self, input: Option<String>) -> Self
pub fn set_next_token(self, input: Option<String>) -> Self
If the response to the ListBotVersion operation contains more results than specified in the maxResults parameter, a token is returned in the response. Use that token in the nextToken parameter to return the next page of results.
sourcepub fn build(self) -> Result<ListBotVersionsInput, BuildError>
pub fn build(self) -> Result<ListBotVersionsInput, BuildError>
Consumes the builder and constructs a ListBotVersionsInput.