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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ListFoundationModelsResponse.BuildermodelSummaries(Collection<FoundationModelSummary> modelSummaries)A list of Amazon Bedrock foundation models.ListFoundationModelsResponse.BuildermodelSummaries(Consumer<FoundationModelSummary.Builder>... modelSummaries)A list of Amazon Bedrock foundation models.ListFoundationModelsResponse.BuildermodelSummaries(FoundationModelSummary... modelSummaries)A list of Amazon Bedrock foundation models.-
Methods inherited from interface software.amazon.awssdk.services.bedrock.model.BedrockResponse.Builder
build, responseMetadata, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
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 Detail
-
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
ListFoundationModelsResponse.Builder modelSummaries(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
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 to#modelSummaries(List.) - 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:
#modelSummaries(java.util.Collection)
-
-