Interface ListFoundationModelsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,BedrockResponse.Builder
,Buildable
,CopyableBuilder<ListFoundationModelsResponse.Builder,
,ListFoundationModelsResponse> SdkBuilder<ListFoundationModelsResponse.Builder,
,ListFoundationModelsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
ListFoundationModelsResponse
@Mutable
@NotThreadSafe
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, 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, sdkFieldNameToField, sdkFields
Methods 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.Builder
avoiding the need to create one manually viaFoundationModelSummary.builder()
.When the
Consumer
completes,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:
-