#[non_exhaustive]pub struct ModelOutputConfigurationBuilder { /* private fields */ }
Expand description
A builder for ModelOutputConfiguration
.
Implementations§
source§impl ModelOutputConfigurationBuilder
impl ModelOutputConfigurationBuilder
sourcepub fn format(self, input: ModelOutputDataFormat) -> Self
pub fn format(self, input: ModelOutputDataFormat) -> Self
The format of the model output configuration.
This field is required.sourcepub fn set_format(self, input: Option<ModelOutputDataFormat>) -> Self
pub fn set_format(self, input: Option<ModelOutputDataFormat>) -> Self
The format of the model output configuration.
sourcepub fn get_format(&self) -> &Option<ModelOutputDataFormat>
pub fn get_format(&self) -> &Option<ModelOutputDataFormat>
The format of the model output configuration.
sourcepub fn json_key_to_variable_map(
self,
k: impl Into<String>,
v: impl Into<String>
) -> Self
pub fn json_key_to_variable_map( self, k: impl Into<String>, v: impl Into<String> ) -> Self
Adds a key-value pair to json_key_to_variable_map
.
To override the contents of this collection use set_json_key_to_variable_map
.
A map of JSON keys in response from SageMaker to the Amazon Fraud Detector variables.
sourcepub fn set_json_key_to_variable_map(
self,
input: Option<HashMap<String, String>>
) -> Self
pub fn set_json_key_to_variable_map( self, input: Option<HashMap<String, String>> ) -> Self
A map of JSON keys in response from SageMaker to the Amazon Fraud Detector variables.
sourcepub fn get_json_key_to_variable_map(&self) -> &Option<HashMap<String, String>>
pub fn get_json_key_to_variable_map(&self) -> &Option<HashMap<String, String>>
A map of JSON keys in response from SageMaker to the Amazon Fraud Detector variables.
sourcepub fn csv_index_to_variable_map(
self,
k: impl Into<String>,
v: impl Into<String>
) -> Self
pub fn csv_index_to_variable_map( self, k: impl Into<String>, v: impl Into<String> ) -> Self
Adds a key-value pair to csv_index_to_variable_map
.
To override the contents of this collection use set_csv_index_to_variable_map
.
A map of CSV index values in the SageMaker response to the Amazon Fraud Detector variables.
sourcepub fn set_csv_index_to_variable_map(
self,
input: Option<HashMap<String, String>>
) -> Self
pub fn set_csv_index_to_variable_map( self, input: Option<HashMap<String, String>> ) -> Self
A map of CSV index values in the SageMaker response to the Amazon Fraud Detector variables.
sourcepub fn get_csv_index_to_variable_map(&self) -> &Option<HashMap<String, String>>
pub fn get_csv_index_to_variable_map(&self) -> &Option<HashMap<String, String>>
A map of CSV index values in the SageMaker response to the Amazon Fraud Detector variables.
sourcepub fn build(self) -> Result<ModelOutputConfiguration, BuildError>
pub fn build(self) -> Result<ModelOutputConfiguration, BuildError>
Consumes the builder and constructs a ModelOutputConfiguration
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ModelOutputConfigurationBuilder
impl Clone for ModelOutputConfigurationBuilder
source§fn clone(&self) -> ModelOutputConfigurationBuilder
fn clone(&self) -> ModelOutputConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ModelOutputConfigurationBuilder
impl Default for ModelOutputConfigurationBuilder
source§fn default() -> ModelOutputConfigurationBuilder
fn default() -> ModelOutputConfigurationBuilder
source§impl PartialEq for ModelOutputConfigurationBuilder
impl PartialEq for ModelOutputConfigurationBuilder
source§fn eq(&self, other: &ModelOutputConfigurationBuilder) -> bool
fn eq(&self, other: &ModelOutputConfigurationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.