Interface GetBotsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetBotsResponse.Builder,,GetBotsResponse> LexModelBuildingResponse.Builder,SdkBuilder<GetBotsResponse.Builder,,GetBotsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetBotsResponse
public static interface GetBotsResponse.Builder
extends LexModelBuildingResponse.Builder, SdkPojo, CopyableBuilder<GetBotsResponse.Builder,GetBotsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionbots(Collection<BotMetadata> bots) An array ofbotMetadataobjects, with one entry for each bot.bots(Consumer<BotMetadata.Builder>... bots) An array ofbotMetadataobjects, with one entry for each bot.bots(BotMetadata... bots) An array ofbotMetadataobjects, with one entry for each bot.If the response is truncated, it includes a pagination token that you can specify in your next request to fetch the next page of bots.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, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
bots
An array of
botMetadataobjects, with one entry for each bot.- Parameters:
bots- An array ofbotMetadataobjects, with one entry for each bot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
bots
An array of
botMetadataobjects, with one entry for each bot.- Parameters:
bots- An array ofbotMetadataobjects, with one entry for each bot.- 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, with one entry for each bot.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
If the response is truncated, it includes a pagination token that you can specify in your next request to fetch the next page of bots.
- Parameters:
nextToken- If the response is truncated, it includes a pagination token that you can specify in your next request to fetch the next page of bots.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-