Interface GetBotVersionsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetBotVersionsResponse.Builder,,GetBotVersionsResponse> LexModelBuildingResponse.Builder,SdkBuilder<GetBotVersionsResponse.Builder,,GetBotVersionsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetBotVersionsResponse
@Mutable
@NotThreadSafe
public static interface GetBotVersionsResponse.Builder
extends LexModelBuildingResponse.Builder, SdkPojo, CopyableBuilder<GetBotVersionsResponse.Builder,GetBotVersionsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionbots(Collection<BotMetadata> bots) An array ofBotMetadataobjects, one for each numbered version of the bot plus one for the$LATESTversion.bots(Consumer<BotMetadata.Builder>... bots) An array ofBotMetadataobjects, one for each numbered version of the bot plus one for the$LATESTversion.bots(BotMetadata... bots) An array ofBotMetadataobjects, one for each numbered version of the bot plus one for the$LATESTversion.A pagination token for fetching the next page of bot versions.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.lexmodelbuilding.model.LexModelBuildingResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
bots
An array of
BotMetadataobjects, one for each numbered version of the bot plus one for the$LATESTversion.- Parameters:
bots- An array ofBotMetadataobjects, one for each numbered version of the bot plus one for the$LATESTversion.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
bots
An array of
BotMetadataobjects, one for each numbered version of the bot plus one for the$LATESTversion.- Parameters:
bots- An array ofBotMetadataobjects, one for each numbered version of the bot plus one for the$LATESTversion.- 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 theBotMetadataobjects, one for each numbered version of the bot plus one for the$LATESTversion.BotMetadata.Builderavoiding the need to create one manually viaBotMetadata.builder().When the
Consumercompletes,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.
-