Struct aws_sdk_machinelearning::input::predict_input::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for PredictInput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn ml_model_id(self, input: impl Into<String>) -> Self
pub fn ml_model_id(self, input: impl Into<String>) -> Self
A unique identifier of the MLModel
.
sourcepub fn set_ml_model_id(self, input: Option<String>) -> Self
pub fn set_ml_model_id(self, input: Option<String>) -> Self
A unique identifier of the MLModel
.
sourcepub fn record(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn record(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to record
.
To override the contents of this collection use set_record
.
A map of variable name-value pairs that represent an observation.
sourcepub fn set_record(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_record(self, input: Option<HashMap<String, String>>) -> Self
A map of variable name-value pairs that represent an observation.
pub fn predict_endpoint(self, input: impl Into<String>) -> Self
pub fn set_predict_endpoint(self, input: Option<String>) -> Self
sourcepub fn build(self) -> Result<PredictInput, BuildError>
pub fn build(self) -> Result<PredictInput, BuildError>
Consumes the builder and constructs a PredictInput
.