Interface ListBotVersionsRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<ListBotVersionsRequest.Builder,ListBotVersionsRequest>,LexModelsV2Request.Builder,SdkBuilder<ListBotVersionsRequest.Builder,ListBotVersionsRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- ListBotVersionsRequest
public static interface ListBotVersionsRequest.Builder extends LexModelsV2Request.Builder, SdkPojo, CopyableBuilder<ListBotVersionsRequest.Builder,ListBotVersionsRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ListBotVersionsRequest.BuilderbotId(String botId)The identifier of the bot to list versions for.ListBotVersionsRequest.BuildermaxResults(Integer maxResults)The maximum number of versions to return in each page of results.ListBotVersionsRequest.BuildernextToken(String nextToken)If the response to theListBotVersionoperation contains more results than specified in themaxResultsparameter, a token is returned in the response.ListBotVersionsRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)ListBotVersionsRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)default ListBotVersionsRequest.BuildersortBy(Consumer<BotVersionSortBy.Builder> sortBy)Specifies sorting parameters for the list of versions.ListBotVersionsRequest.BuildersortBy(BotVersionSortBy sortBy)Specifies sorting parameters for the list of versions.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.lexmodelsv2.model.LexModelsV2Request.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
botId
ListBotVersionsRequest.Builder botId(String botId)
The identifier of the bot to list versions for.
- Parameters:
botId- The identifier of the bot to list versions for.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sortBy
ListBotVersionsRequest.Builder sortBy(BotVersionSortBy sortBy)
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.
- Parameters:
sortBy- 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sortBy
default ListBotVersionsRequest.Builder sortBy(Consumer<BotVersionSortBy.Builder> sortBy)
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.
This is a convenience method that creates an instance of theBotVersionSortBy.Builderavoiding the need to create one manually viaBotVersionSortBy.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosortBy(BotVersionSortBy).- Parameters:
sortBy- a consumer that will call methods onBotVersionSortBy.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
sortBy(BotVersionSortBy)
-
maxResults
ListBotVersionsRequest.Builder maxResults(Integer maxResults)
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.
- Parameters:
maxResults- 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nextToken
ListBotVersionsRequest.Builder nextToken(String nextToken)
If the response to the
ListBotVersionoperation contains more results than specified in themaxResultsparameter, a token is returned in the response. Use that token in thenextTokenparameter to return the next page of results.- Parameters:
nextToken- If the response to theListBotVersionoperation contains more results than specified in themaxResultsparameter, a token is returned in the response. Use that token in thenextTokenparameter to return the next page of results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
ListBotVersionsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
ListBotVersionsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-