#[non_exhaustive]pub struct ModelInputConfigurationBuilder { /* private fields */ }
Expand description
A builder for ModelInputConfiguration
.
Implementations§
source§impl ModelInputConfigurationBuilder
impl ModelInputConfigurationBuilder
sourcepub fn event_type_name(self, input: impl Into<String>) -> Self
pub fn event_type_name(self, input: impl Into<String>) -> Self
The event type name.
sourcepub fn set_event_type_name(self, input: Option<String>) -> Self
pub fn set_event_type_name(self, input: Option<String>) -> Self
The event type name.
sourcepub fn get_event_type_name(&self) -> &Option<String>
pub fn get_event_type_name(&self) -> &Option<String>
The event type name.
sourcepub fn format(self, input: ModelInputDataFormat) -> Self
pub fn format(self, input: ModelInputDataFormat) -> Self
The format of the model input configuration. The format differs depending on if it is passed through to SageMaker or constructed by Amazon Fraud Detector.
sourcepub fn set_format(self, input: Option<ModelInputDataFormat>) -> Self
pub fn set_format(self, input: Option<ModelInputDataFormat>) -> Self
The format of the model input configuration. The format differs depending on if it is passed through to SageMaker or constructed by Amazon Fraud Detector.
sourcepub fn get_format(&self) -> &Option<ModelInputDataFormat>
pub fn get_format(&self) -> &Option<ModelInputDataFormat>
The format of the model input configuration. The format differs depending on if it is passed through to SageMaker or constructed by Amazon Fraud Detector.
sourcepub fn use_event_variables(self, input: bool) -> Self
pub fn use_event_variables(self, input: bool) -> Self
The event variables.
This field is required.sourcepub fn set_use_event_variables(self, input: Option<bool>) -> Self
pub fn set_use_event_variables(self, input: Option<bool>) -> Self
The event variables.
sourcepub fn get_use_event_variables(&self) -> &Option<bool>
pub fn get_use_event_variables(&self) -> &Option<bool>
The event variables.
sourcepub fn json_input_template(self, input: impl Into<String>) -> Self
pub fn json_input_template(self, input: impl Into<String>) -> Self
Template for constructing the JSON input-data sent to SageMaker. At event-evaluation, the placeholders for variable names in the template will be replaced with the variable values before being sent to SageMaker.
sourcepub fn set_json_input_template(self, input: Option<String>) -> Self
pub fn set_json_input_template(self, input: Option<String>) -> Self
Template for constructing the JSON input-data sent to SageMaker. At event-evaluation, the placeholders for variable names in the template will be replaced with the variable values before being sent to SageMaker.
sourcepub fn get_json_input_template(&self) -> &Option<String>
pub fn get_json_input_template(&self) -> &Option<String>
Template for constructing the JSON input-data sent to SageMaker. At event-evaluation, the placeholders for variable names in the template will be replaced with the variable values before being sent to SageMaker.
sourcepub fn csv_input_template(self, input: impl Into<String>) -> Self
pub fn csv_input_template(self, input: impl Into<String>) -> Self
Template for constructing the CSV input-data sent to SageMaker. At event-evaluation, the placeholders for variable-names in the template will be replaced with the variable values before being sent to SageMaker.
sourcepub fn set_csv_input_template(self, input: Option<String>) -> Self
pub fn set_csv_input_template(self, input: Option<String>) -> Self
Template for constructing the CSV input-data sent to SageMaker. At event-evaluation, the placeholders for variable-names in the template will be replaced with the variable values before being sent to SageMaker.
sourcepub fn get_csv_input_template(&self) -> &Option<String>
pub fn get_csv_input_template(&self) -> &Option<String>
Template for constructing the CSV input-data sent to SageMaker. At event-evaluation, the placeholders for variable-names in the template will be replaced with the variable values before being sent to SageMaker.
sourcepub fn build(self) -> Result<ModelInputConfiguration, BuildError>
pub fn build(self) -> Result<ModelInputConfiguration, BuildError>
Consumes the builder and constructs a ModelInputConfiguration
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ModelInputConfigurationBuilder
impl Clone for ModelInputConfigurationBuilder
source§fn clone(&self) -> ModelInputConfigurationBuilder
fn clone(&self) -> ModelInputConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ModelInputConfigurationBuilder
impl Default for ModelInputConfigurationBuilder
source§fn default() -> ModelInputConfigurationBuilder
fn default() -> ModelInputConfigurationBuilder
source§impl PartialEq for ModelInputConfigurationBuilder
impl PartialEq for ModelInputConfigurationBuilder
source§fn eq(&self, other: &ModelInputConfigurationBuilder) -> bool
fn eq(&self, other: &ModelInputConfigurationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.