Interface InferenceRecommendation.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<InferenceRecommendation.Builder,
,InferenceRecommendation> SdkBuilder<InferenceRecommendation.Builder,
,InferenceRecommendation> SdkPojo
- Enclosing class:
InferenceRecommendation
-
Method Summary
Modifier and TypeMethodDescriptiondefault InferenceRecommendation.Builder
endpointConfiguration
(Consumer<EndpointOutputConfiguration.Builder> endpointConfiguration) Defines the endpoint configuration parameters.endpointConfiguration
(EndpointOutputConfiguration endpointConfiguration) Defines the endpoint configuration parameters.invocationEndTime
(Instant invocationEndTime) A timestamp that shows when the benchmark completed.invocationStartTime
(Instant invocationStartTime) A timestamp that shows when the benchmark started.default InferenceRecommendation.Builder
metrics
(Consumer<RecommendationMetrics.Builder> metrics) The metrics used to decide what recommendation to make.metrics
(RecommendationMetrics metrics) The metrics used to decide what recommendation to make.default InferenceRecommendation.Builder
modelConfiguration
(Consumer<ModelConfiguration.Builder> modelConfiguration) Defines the model configuration.modelConfiguration
(ModelConfiguration modelConfiguration) Defines the model configuration.recommendationId
(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 Details
-
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
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
The metrics used to decide what recommendation to make.
This is a convenience method that creates an instance of theRecommendationMetrics.Builder
avoiding the need to create one manually viaRecommendationMetrics.builder()
.When the
Consumer
completes,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:
-
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.Builder
avoiding the need to create one manually viaEndpointOutputConfiguration.builder()
.When the
Consumer
completes,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:
-
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.Builder
avoiding the need to create one manually viaModelConfiguration.builder()
.When the
Consumer
completes,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:
-
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
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.
-