public static interface ShadowModeConfig.Builder extends SdkPojo, CopyableBuilder<ShadowModeConfig.Builder,ShadowModeConfig>
Modifier and Type | Method and Description |
---|---|
ShadowModeConfig.Builder |
shadowModelVariants(Collection<ShadowModelVariantConfig> shadowModelVariants)
List of shadow variant configurations.
|
ShadowModeConfig.Builder |
shadowModelVariants(Consumer<ShadowModelVariantConfig.Builder>... shadowModelVariants)
List of shadow variant configurations.
|
ShadowModeConfig.Builder |
shadowModelVariants(ShadowModelVariantConfig... shadowModelVariants)
List of shadow variant configurations.
|
ShadowModeConfig.Builder |
sourceModelVariantName(String sourceModelVariantName)
The name of the production variant, which takes all the inference requests.
|
equalsBySdkFields, sdkFields
copy
applyMutation, build
ShadowModeConfig.Builder sourceModelVariantName(String sourceModelVariantName)
The name of the production variant, which takes all the inference requests.
sourceModelVariantName
- The name of the production variant, which takes all the inference requests.ShadowModeConfig.Builder shadowModelVariants(Collection<ShadowModelVariantConfig> shadowModelVariants)
List of shadow variant configurations.
shadowModelVariants
- List of shadow variant configurations.ShadowModeConfig.Builder shadowModelVariants(ShadowModelVariantConfig... shadowModelVariants)
List of shadow variant configurations.
shadowModelVariants
- List of shadow variant configurations.ShadowModeConfig.Builder shadowModelVariants(Consumer<ShadowModelVariantConfig.Builder>... shadowModelVariants)
List of shadow variant configurations.
This is a convenience method that creates an instance of theShadowModelVariantConfig.Builder
avoiding the need to
create one manually via
ShadowModelVariantConfig.builder()
.
When the Consumer
completes,
SdkBuilder.build()
is called
immediately and its result is passed to #shadowModelVariants(List
.
shadowModelVariants
- a consumer that will call methods on
ShadowModelVariantConfig.Builder
#shadowModelVariants(java.util.Collection)
Copyright © 2023. All rights reserved.