Interface Metadata.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Metadata.Builder,
,Metadata> SdkBuilder<Metadata.Builder,
,Metadata> SdkPojo
- Enclosing class:
Metadata
public static interface Metadata.Builder
extends SdkPojo, CopyableBuilder<Metadata.Builder,Metadata>
-
Method Summary
Modifier and TypeMethodDescriptiondefault Metadata.Builder
usage
(Consumer<Usage.Builder> usage) Contains details of the foundation model usage.Contains details of the foundation model usage.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
-
Method Details
-
usage
Contains details of the foundation model usage.
- Parameters:
usage
- Contains details of the foundation model usage.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
usage
Contains details of the foundation model usage.
This is a convenience method that creates an instance of theUsage.Builder
avoiding the need to create one manually viaUsage.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tousage(Usage)
.- Parameters:
usage
- a consumer that will call methods onUsage.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-