Struct aws_sdk_frauddetector::types::builders::ModelScoresBuilder
source · #[non_exhaustive]pub struct ModelScoresBuilder { /* private fields */ }
Expand description
A builder for ModelScores
.
Implementations§
source§impl ModelScoresBuilder
impl ModelScoresBuilder
sourcepub fn model_version(self, input: ModelVersion) -> Self
pub fn model_version(self, input: ModelVersion) -> Self
The model version.
sourcepub fn set_model_version(self, input: Option<ModelVersion>) -> Self
pub fn set_model_version(self, input: Option<ModelVersion>) -> Self
The model version.
sourcepub fn get_model_version(&self) -> &Option<ModelVersion>
pub fn get_model_version(&self) -> &Option<ModelVersion>
The model version.
sourcepub fn scores(self, k: impl Into<String>, v: f32) -> Self
pub fn scores(self, k: impl Into<String>, v: f32) -> Self
Adds a key-value pair to scores
.
To override the contents of this collection use set_scores
.
The model's fraud prediction scores.
sourcepub fn set_scores(self, input: Option<HashMap<String, f32>>) -> Self
pub fn set_scores(self, input: Option<HashMap<String, f32>>) -> Self
The model's fraud prediction scores.
sourcepub fn build(self) -> ModelScores
pub fn build(self) -> ModelScores
Consumes the builder and constructs a ModelScores
.
Trait Implementations§
source§impl Clone for ModelScoresBuilder
impl Clone for ModelScoresBuilder
source§fn clone(&self) -> ModelScoresBuilder
fn clone(&self) -> ModelScoresBuilder
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 ModelScoresBuilder
impl Debug for ModelScoresBuilder
source§impl Default for ModelScoresBuilder
impl Default for ModelScoresBuilder
source§fn default() -> ModelScoresBuilder
fn default() -> ModelScoresBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for ModelScoresBuilder
impl PartialEq for ModelScoresBuilder
source§fn eq(&self, other: &ModelScoresBuilder) -> bool
fn eq(&self, other: &ModelScoresBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ModelScoresBuilder
Auto Trait Implementations§
impl Freeze for ModelScoresBuilder
impl RefUnwindSafe for ModelScoresBuilder
impl Send for ModelScoresBuilder
impl Sync for ModelScoresBuilder
impl Unpin for ModelScoresBuilder
impl UnwindSafe for ModelScoresBuilder
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.