#[non_exhaustive]pub struct InferenceRecommendationBuilder { /* private fields */ }
Expand description
A builder for InferenceRecommendation
.
Implementations§
source§impl InferenceRecommendationBuilder
impl InferenceRecommendationBuilder
sourcepub fn metrics(self, input: RecommendationMetrics) -> Self
pub fn metrics(self, input: RecommendationMetrics) -> Self
The metrics used to decide what recommendation to make.
This field is required.sourcepub fn set_metrics(self, input: Option<RecommendationMetrics>) -> Self
pub fn set_metrics(self, input: Option<RecommendationMetrics>) -> Self
The metrics used to decide what recommendation to make.
sourcepub fn get_metrics(&self) -> &Option<RecommendationMetrics>
pub fn get_metrics(&self) -> &Option<RecommendationMetrics>
The metrics used to decide what recommendation to make.
sourcepub fn endpoint_configuration(self, input: EndpointOutputConfiguration) -> Self
pub fn endpoint_configuration(self, input: EndpointOutputConfiguration) -> Self
Defines the endpoint configuration parameters.
This field is required.sourcepub fn set_endpoint_configuration(
self,
input: Option<EndpointOutputConfiguration>
) -> Self
pub fn set_endpoint_configuration( self, input: Option<EndpointOutputConfiguration> ) -> Self
Defines the endpoint configuration parameters.
sourcepub fn get_endpoint_configuration(&self) -> &Option<EndpointOutputConfiguration>
pub fn get_endpoint_configuration(&self) -> &Option<EndpointOutputConfiguration>
Defines the endpoint configuration parameters.
sourcepub fn model_configuration(self, input: ModelConfiguration) -> Self
pub fn model_configuration(self, input: ModelConfiguration) -> Self
Defines the model configuration.
This field is required.sourcepub fn set_model_configuration(self, input: Option<ModelConfiguration>) -> Self
pub fn set_model_configuration(self, input: Option<ModelConfiguration>) -> Self
Defines the model configuration.
sourcepub fn get_model_configuration(&self) -> &Option<ModelConfiguration>
pub fn get_model_configuration(&self) -> &Option<ModelConfiguration>
Defines the model configuration.
sourcepub fn recommendation_id(self, input: impl Into<String>) -> Self
pub fn recommendation_id(self, input: impl Into<String>) -> Self
The recommendation ID which uniquely identifies each recommendation.
sourcepub fn set_recommendation_id(self, input: Option<String>) -> Self
pub fn set_recommendation_id(self, input: Option<String>) -> Self
The recommendation ID which uniquely identifies each recommendation.
sourcepub fn get_recommendation_id(&self) -> &Option<String>
pub fn get_recommendation_id(&self) -> &Option<String>
The recommendation ID which uniquely identifies each recommendation.
sourcepub fn invocation_end_time(self, input: DateTime) -> Self
pub fn invocation_end_time(self, input: DateTime) -> Self
A timestamp that shows when the benchmark completed.
sourcepub fn set_invocation_end_time(self, input: Option<DateTime>) -> Self
pub fn set_invocation_end_time(self, input: Option<DateTime>) -> Self
A timestamp that shows when the benchmark completed.
sourcepub fn get_invocation_end_time(&self) -> &Option<DateTime>
pub fn get_invocation_end_time(&self) -> &Option<DateTime>
A timestamp that shows when the benchmark completed.
sourcepub fn invocation_start_time(self, input: DateTime) -> Self
pub fn invocation_start_time(self, input: DateTime) -> Self
A timestamp that shows when the benchmark started.
sourcepub fn set_invocation_start_time(self, input: Option<DateTime>) -> Self
pub fn set_invocation_start_time(self, input: Option<DateTime>) -> Self
A timestamp that shows when the benchmark started.
sourcepub fn get_invocation_start_time(&self) -> &Option<DateTime>
pub fn get_invocation_start_time(&self) -> &Option<DateTime>
A timestamp that shows when the benchmark started.
sourcepub fn build(self) -> InferenceRecommendation
pub fn build(self) -> InferenceRecommendation
Consumes the builder and constructs a InferenceRecommendation
.
Trait Implementations§
source§impl Clone for InferenceRecommendationBuilder
impl Clone for InferenceRecommendationBuilder
source§fn clone(&self) -> InferenceRecommendationBuilder
fn clone(&self) -> InferenceRecommendationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for InferenceRecommendationBuilder
impl Default for InferenceRecommendationBuilder
source§fn default() -> InferenceRecommendationBuilder
fn default() -> InferenceRecommendationBuilder
source§impl PartialEq for InferenceRecommendationBuilder
impl PartialEq for InferenceRecommendationBuilder
source§fn eq(&self, other: &InferenceRecommendationBuilder) -> bool
fn eq(&self, other: &InferenceRecommendationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.