Interface GetBotVersionsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetBotVersionsResponse.Builder,
,GetBotVersionsResponse> LexModelBuildingResponse.Builder
,SdkBuilder<GetBotVersionsResponse.Builder,
,GetBotVersionsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetBotVersionsResponse
public static interface GetBotVersionsResponse.Builder
extends LexModelBuildingResponse.Builder, SdkPojo, CopyableBuilder<GetBotVersionsResponse.Builder,GetBotVersionsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionbots
(Collection<BotMetadata> bots) An array ofBotMetadata
objects, one for each numbered version of the bot plus one for the$LATEST
version.bots
(Consumer<BotMetadata.Builder>... bots) An array ofBotMetadata
objects, one for each numbered version of the bot plus one for the$LATEST
version.bots
(BotMetadata... bots) An array ofBotMetadata
objects, one for each numbered version of the bot plus one for the$LATEST
version.A pagination token for fetching the next page of bot versions.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.lexmodelbuilding.model.LexModelBuildingResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
bots
An array of
BotMetadata
objects, one for each numbered version of the bot plus one for the$LATEST
version.- Parameters:
bots
- An array ofBotMetadata
objects, one for each numbered version of the bot plus one for the$LATEST
version.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
bots
An array of
BotMetadata
objects, one for each numbered version of the bot plus one for the$LATEST
version.- Parameters:
bots
- An array ofBotMetadata
objects, one for each numbered version of the bot plus one for the$LATEST
version.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
bots
An array of
This is a convenience method that creates an instance of theBotMetadata
objects, one for each numbered version of the bot plus one for the$LATEST
version.BotMetadata.Builder
avoiding the need to create one manually viaBotMetadata.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tobots(List<BotMetadata>)
.- Parameters:
bots
- a consumer that will call methods onBotMetadata.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
A pagination token for fetching the next page of bot versions. If the response to this call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of versions, specify the pagination token in the next request.
- Parameters:
nextToken
- A pagination token for fetching the next page of bot versions. If the response to this call is truncated, Amazon Lex returns a pagination token in the response. To fetch the next page of versions, specify the pagination token in the next request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-