#[non_exhaustive]pub struct PredictInputBuilder { /* private fields */ }
Expand description
A builder for PredictInput
.
Implementations§
source§impl PredictInputBuilder
impl PredictInputBuilder
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 get_ml_model_id(&self) -> &Option<String>
pub fn get_ml_model_id(&self) -> &Option<String>
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.
sourcepub fn get_record(&self) -> &Option<HashMap<String, String>>
pub fn get_record(&self) -> &Option<HashMap<String, String>>
A map of variable name-value pairs that represent an observation.
sourcepub fn predict_endpoint(self, input: impl Into<String>) -> Self
pub fn predict_endpoint(self, input: impl Into<String>) -> Self
This field is required.
pub fn set_predict_endpoint(self, input: Option<String>) -> Self
pub fn get_predict_endpoint(&self) -> &Option<String>
sourcepub fn build(self) -> Result<PredictInput, BuildError>
pub fn build(self) -> Result<PredictInput, BuildError>
Consumes the builder and constructs a PredictInput
.
source§impl PredictInputBuilder
impl PredictInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<PredictOutput, SdkError<PredictError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<PredictOutput, SdkError<PredictError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for PredictInputBuilder
impl Clone for PredictInputBuilder
source§fn clone(&self) -> PredictInputBuilder
fn clone(&self) -> PredictInputBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PredictInputBuilder
impl Debug for PredictInputBuilder
source§impl Default for PredictInputBuilder
impl Default for PredictInputBuilder
source§fn default() -> PredictInputBuilder
fn default() -> PredictInputBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for PredictInputBuilder
impl PartialEq for PredictInputBuilder
source§fn eq(&self, other: &PredictInputBuilder) -> bool
fn eq(&self, other: &PredictInputBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PredictInputBuilder
Auto Trait Implementations§
impl RefUnwindSafe for PredictInputBuilder
impl Send for PredictInputBuilder
impl Sync for PredictInputBuilder
impl Unpin for PredictInputBuilder
impl UnwindSafe for PredictInputBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.