Interface ListFoundationModelsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,BedrockResponse.Builder,Buildable,CopyableBuilder<ListFoundationModelsResponse.Builder,,ListFoundationModelsResponse> SdkBuilder<ListFoundationModelsResponse.Builder,,ListFoundationModelsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
ListFoundationModelsResponse
public static interface ListFoundationModelsResponse.Builder
extends BedrockResponse.Builder, SdkPojo, CopyableBuilder<ListFoundationModelsResponse.Builder,ListFoundationModelsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionmodelSummaries(Collection<FoundationModelSummary> modelSummaries) A list of Amazon Bedrock foundation models.modelSummaries(Consumer<FoundationModelSummary.Builder>... modelSummaries) A list of Amazon Bedrock foundation models.modelSummaries(FoundationModelSummary... modelSummaries) A list of Amazon Bedrock foundation models.Methods inherited from interface software.amazon.awssdk.services.bedrock.model.BedrockResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods 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
-
modelSummaries
ListFoundationModelsResponse.Builder modelSummaries(Collection<FoundationModelSummary> modelSummaries) A list of Amazon Bedrock foundation models.
- Parameters:
modelSummaries- A list of Amazon Bedrock foundation models.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modelSummaries
A list of Amazon Bedrock foundation models.
- Parameters:
modelSummaries- A list of Amazon Bedrock foundation models.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modelSummaries
ListFoundationModelsResponse.Builder modelSummaries(Consumer<FoundationModelSummary.Builder>... modelSummaries) A list of Amazon Bedrock foundation models.
This is a convenience method that creates an instance of theFoundationModelSummary.Builderavoiding the need to create one manually viaFoundationModelSummary.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomodelSummaries(List<FoundationModelSummary>).- Parameters:
modelSummaries- a consumer that will call methods onFoundationModelSummary.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-