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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Metadata.Builder
usage(Consumer<Usage.Builder> usage)
Contains details of the foundation model usage.Metadata.Builder
usage(Usage 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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
usage
Metadata.Builder usage(Usage 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
default Metadata.Builder usage(Consumer<Usage.Builder> 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:
usage(Usage)
-
-