#[non_exhaustive]pub struct EvaluatedExternalModelBuilder { /* private fields */ }
Expand description
A builder for EvaluatedExternalModel
.
Implementations§
source§impl EvaluatedExternalModelBuilder
impl EvaluatedExternalModelBuilder
sourcepub fn model_endpoint(self, input: impl Into<String>) -> Self
pub fn model_endpoint(self, input: impl Into<String>) -> Self
The endpoint of the external (Amazon Sagemaker) model.
sourcepub fn set_model_endpoint(self, input: Option<String>) -> Self
pub fn set_model_endpoint(self, input: Option<String>) -> Self
The endpoint of the external (Amazon Sagemaker) model.
sourcepub fn get_model_endpoint(&self) -> &Option<String>
pub fn get_model_endpoint(&self) -> &Option<String>
The endpoint of the external (Amazon Sagemaker) model.
sourcepub fn use_event_variables(self, input: bool) -> Self
pub fn use_event_variables(self, input: bool) -> Self
Indicates whether event variables were used to generate predictions.
sourcepub fn set_use_event_variables(self, input: Option<bool>) -> Self
pub fn set_use_event_variables(self, input: Option<bool>) -> Self
Indicates whether event variables were used to generate predictions.
sourcepub fn get_use_event_variables(&self) -> &Option<bool>
pub fn get_use_event_variables(&self) -> &Option<bool>
Indicates whether event variables were used to generate predictions.
sourcepub fn input_variables(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn input_variables(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to input_variables
.
To override the contents of this collection use set_input_variables
.
Input variables use for generating predictions.
sourcepub fn set_input_variables(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_input_variables(self, input: Option<HashMap<String, String>>) -> Self
Input variables use for generating predictions.
sourcepub fn get_input_variables(&self) -> &Option<HashMap<String, String>>
pub fn get_input_variables(&self) -> &Option<HashMap<String, String>>
Input variables use for generating predictions.
sourcepub fn output_variables(
self,
k: impl Into<String>,
v: impl Into<String>
) -> Self
pub fn output_variables( self, k: impl Into<String>, v: impl Into<String> ) -> Self
Adds a key-value pair to output_variables
.
To override the contents of this collection use set_output_variables
.
Output variables.
sourcepub fn set_output_variables(
self,
input: Option<HashMap<String, String>>
) -> Self
pub fn set_output_variables( self, input: Option<HashMap<String, String>> ) -> Self
Output variables.
sourcepub fn build(self) -> EvaluatedExternalModel
pub fn build(self) -> EvaluatedExternalModel
Consumes the builder and constructs a EvaluatedExternalModel
.
Trait Implementations§
source§impl Clone for EvaluatedExternalModelBuilder
impl Clone for EvaluatedExternalModelBuilder
source§fn clone(&self) -> EvaluatedExternalModelBuilder
fn clone(&self) -> EvaluatedExternalModelBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for EvaluatedExternalModelBuilder
impl Default for EvaluatedExternalModelBuilder
source§fn default() -> EvaluatedExternalModelBuilder
fn default() -> EvaluatedExternalModelBuilder
source§impl PartialEq for EvaluatedExternalModelBuilder
impl PartialEq for EvaluatedExternalModelBuilder
source§fn eq(&self, other: &EvaluatedExternalModelBuilder) -> bool
fn eq(&self, other: &EvaluatedExternalModelBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.