Interface DistillationConfig.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<DistillationConfig.Builder,
,DistillationConfig> SdkBuilder<DistillationConfig.Builder,
,DistillationConfig> SdkPojo
- Enclosing class:
DistillationConfig
@Mutable
@NotThreadSafe
public static interface DistillationConfig.Builder
extends SdkPojo, CopyableBuilder<DistillationConfig.Builder,DistillationConfig>
-
Method Summary
Modifier and TypeMethodDescriptiondefault DistillationConfig.Builder
teacherModelConfig
(Consumer<TeacherModelConfig.Builder> teacherModelConfig) The teacher model configuration.teacherModelConfig
(TeacherModelConfig teacherModelConfig) The teacher model configuration.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 Details
-
teacherModelConfig
The teacher model configuration.
- Parameters:
teacherModelConfig
- The teacher model configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
teacherModelConfig
default DistillationConfig.Builder teacherModelConfig(Consumer<TeacherModelConfig.Builder> teacherModelConfig) The teacher model configuration.
This is a convenience method that creates an instance of theTeacherModelConfig.Builder
avoiding the need to create one manually viaTeacherModelConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toteacherModelConfig(TeacherModelConfig)
.- Parameters:
teacherModelConfig
- a consumer that will call methods onTeacherModelConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-