Interface InferenceRecommendation.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<InferenceRecommendation.Builder,InferenceRecommendation>,SdkBuilder<InferenceRecommendation.Builder,InferenceRecommendation>,SdkPojo
- Enclosing class:
- InferenceRecommendation
public static interface InferenceRecommendation.Builder extends SdkPojo, CopyableBuilder<InferenceRecommendation.Builder,InferenceRecommendation>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default InferenceRecommendation.BuilderendpointConfiguration(Consumer<EndpointOutputConfiguration.Builder> endpointConfiguration)Defines the endpoint configuration parameters.InferenceRecommendation.BuilderendpointConfiguration(EndpointOutputConfiguration endpointConfiguration)Defines the endpoint configuration parameters.InferenceRecommendation.BuilderinvocationEndTime(Instant invocationEndTime)A timestamp that shows when the benchmark completed.InferenceRecommendation.BuilderinvocationStartTime(Instant invocationStartTime)A timestamp that shows when the benchmark started.default InferenceRecommendation.Buildermetrics(Consumer<RecommendationMetrics.Builder> metrics)The metrics used to decide what recommendation to make.InferenceRecommendation.Buildermetrics(RecommendationMetrics metrics)The metrics used to decide what recommendation to make.default InferenceRecommendation.BuildermodelConfiguration(Consumer<ModelConfiguration.Builder> modelConfiguration)Defines the model configuration.InferenceRecommendation.BuildermodelConfiguration(ModelConfiguration modelConfiguration)Defines the model configuration.InferenceRecommendation.BuilderrecommendationId(String recommendationId)The recommendation ID which uniquely identifies each recommendation.-
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 Detail
-
recommendationId
InferenceRecommendation.Builder recommendationId(String recommendationId)
The recommendation ID which uniquely identifies each recommendation.
- Parameters:
recommendationId- The recommendation ID which uniquely identifies each recommendation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metrics
InferenceRecommendation.Builder metrics(RecommendationMetrics metrics)
The metrics used to decide what recommendation to make.
- Parameters:
metrics- The metrics used to decide what recommendation to make.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metrics
default InferenceRecommendation.Builder metrics(Consumer<RecommendationMetrics.Builder> metrics)
The metrics used to decide what recommendation to make.
This is a convenience method that creates an instance of theRecommendationMetrics.Builderavoiding the need to create one manually viaRecommendationMetrics.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tometrics(RecommendationMetrics).- Parameters:
metrics- a consumer that will call methods onRecommendationMetrics.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
metrics(RecommendationMetrics)
-
endpointConfiguration
InferenceRecommendation.Builder endpointConfiguration(EndpointOutputConfiguration endpointConfiguration)
Defines the endpoint configuration parameters.
- Parameters:
endpointConfiguration- Defines the endpoint configuration parameters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endpointConfiguration
default InferenceRecommendation.Builder endpointConfiguration(Consumer<EndpointOutputConfiguration.Builder> endpointConfiguration)
Defines the endpoint configuration parameters.
This is a convenience method that creates an instance of theEndpointOutputConfiguration.Builderavoiding the need to create one manually viaEndpointOutputConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toendpointConfiguration(EndpointOutputConfiguration).- Parameters:
endpointConfiguration- a consumer that will call methods onEndpointOutputConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
endpointConfiguration(EndpointOutputConfiguration)
-
modelConfiguration
InferenceRecommendation.Builder modelConfiguration(ModelConfiguration modelConfiguration)
Defines the model configuration.
- Parameters:
modelConfiguration- Defines the model configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
modelConfiguration
default InferenceRecommendation.Builder modelConfiguration(Consumer<ModelConfiguration.Builder> modelConfiguration)
Defines the model configuration.
This is a convenience method that creates an instance of theModelConfiguration.Builderavoiding the need to create one manually viaModelConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomodelConfiguration(ModelConfiguration).- Parameters:
modelConfiguration- a consumer that will call methods onModelConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
modelConfiguration(ModelConfiguration)
-
invocationEndTime
InferenceRecommendation.Builder invocationEndTime(Instant invocationEndTime)
A timestamp that shows when the benchmark completed.
- Parameters:
invocationEndTime- A timestamp that shows when the benchmark completed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
invocationStartTime
InferenceRecommendation.Builder invocationStartTime(Instant invocationStartTime)
A timestamp that shows when the benchmark started.
- Parameters:
invocationStartTime- A timestamp that shows when the benchmark started.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-