Interface GetFoundationModelResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,BedrockResponse.Builder
,Buildable
,CopyableBuilder<GetFoundationModelResponse.Builder,
,GetFoundationModelResponse> SdkBuilder<GetFoundationModelResponse.Builder,
,GetFoundationModelResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetFoundationModelResponse
@Mutable
@NotThreadSafe
public static interface GetFoundationModelResponse.Builder
extends BedrockResponse.Builder, SdkPojo, CopyableBuilder<GetFoundationModelResponse.Builder,GetFoundationModelResponse>
-
Method Summary
Modifier and TypeMethodDescriptionmodelDetails
(Consumer<FoundationModelDetails.Builder> modelDetails) Information about the foundation model.modelDetails
(FoundationModelDetails modelDetails) Information about the foundation model.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
-
modelDetails
Information about the foundation model.
- Parameters:
modelDetails
- Information about the foundation model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modelDetails
default GetFoundationModelResponse.Builder modelDetails(Consumer<FoundationModelDetails.Builder> modelDetails) Information about the foundation model.
This is a convenience method that creates an instance of theFoundationModelDetails.Builder
avoiding the need to create one manually viaFoundationModelDetails.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomodelDetails(FoundationModelDetails)
.- Parameters:
modelDetails
- a consumer that will call methods onFoundationModelDetails.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-