Struct aws_sdk_frauddetector::types::builders::LogOddsMetricBuilder
source · #[non_exhaustive]pub struct LogOddsMetricBuilder { /* private fields */ }
Expand description
A builder for LogOddsMetric
.
Implementations§
source§impl LogOddsMetricBuilder
impl LogOddsMetricBuilder
sourcepub fn variable_name(self, input: impl Into<String>) -> Self
pub fn variable_name(self, input: impl Into<String>) -> Self
The name of the variable.
This field is required.sourcepub fn set_variable_name(self, input: Option<String>) -> Self
pub fn set_variable_name(self, input: Option<String>) -> Self
The name of the variable.
sourcepub fn get_variable_name(&self) -> &Option<String>
pub fn get_variable_name(&self) -> &Option<String>
The name of the variable.
sourcepub fn variable_type(self, input: impl Into<String>) -> Self
pub fn variable_type(self, input: impl Into<String>) -> Self
The type of variable.
This field is required.sourcepub fn set_variable_type(self, input: Option<String>) -> Self
pub fn set_variable_type(self, input: Option<String>) -> Self
The type of variable.
sourcepub fn get_variable_type(&self) -> &Option<String>
pub fn get_variable_type(&self) -> &Option<String>
The type of variable.
sourcepub fn variable_importance(self, input: f32) -> Self
pub fn variable_importance(self, input: f32) -> Self
The relative importance of the variable. For more information, see Model variable importance.
This field is required.sourcepub fn set_variable_importance(self, input: Option<f32>) -> Self
pub fn set_variable_importance(self, input: Option<f32>) -> Self
The relative importance of the variable. For more information, see Model variable importance.
sourcepub fn get_variable_importance(&self) -> &Option<f32>
pub fn get_variable_importance(&self) -> &Option<f32>
The relative importance of the variable. For more information, see Model variable importance.
sourcepub fn build(self) -> Result<LogOddsMetric, BuildError>
pub fn build(self) -> Result<LogOddsMetric, BuildError>
Consumes the builder and constructs a LogOddsMetric
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for LogOddsMetricBuilder
impl Clone for LogOddsMetricBuilder
source§fn clone(&self) -> LogOddsMetricBuilder
fn clone(&self) -> LogOddsMetricBuilder
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 LogOddsMetricBuilder
impl Debug for LogOddsMetricBuilder
source§impl Default for LogOddsMetricBuilder
impl Default for LogOddsMetricBuilder
source§fn default() -> LogOddsMetricBuilder
fn default() -> LogOddsMetricBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for LogOddsMetricBuilder
impl PartialEq for LogOddsMetricBuilder
source§fn eq(&self, other: &LogOddsMetricBuilder) -> bool
fn eq(&self, other: &LogOddsMetricBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for LogOddsMetricBuilder
Auto Trait Implementations§
impl Freeze for LogOddsMetricBuilder
impl RefUnwindSafe for LogOddsMetricBuilder
impl Send for LogOddsMetricBuilder
impl Sync for LogOddsMetricBuilder
impl Unpin for LogOddsMetricBuilder
impl UnwindSafe for LogOddsMetricBuilder
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.