Struct aws_sdk_datazone::types::builders::RejectRuleBuilder
source · #[non_exhaustive]pub struct RejectRuleBuilder { /* private fields */ }
Expand description
A builder for RejectRule
.
Implementations§
source§impl RejectRuleBuilder
impl RejectRuleBuilder
sourcepub fn rule(self, input: RejectRuleBehavior) -> Self
pub fn rule(self, input: RejectRuleBehavior) -> Self
Specifies whether you want to reject the top prediction for all targets or none.
sourcepub fn set_rule(self, input: Option<RejectRuleBehavior>) -> Self
pub fn set_rule(self, input: Option<RejectRuleBehavior>) -> Self
Specifies whether you want to reject the top prediction for all targets or none.
sourcepub fn get_rule(&self) -> &Option<RejectRuleBehavior>
pub fn get_rule(&self) -> &Option<RejectRuleBehavior>
Specifies whether you want to reject the top prediction for all targets or none.
sourcepub fn threshold(self, input: f32) -> Self
pub fn threshold(self, input: f32) -> Self
The confidence score that specifies the condition at which a prediction can be rejected.
sourcepub fn set_threshold(self, input: Option<f32>) -> Self
pub fn set_threshold(self, input: Option<f32>) -> Self
The confidence score that specifies the condition at which a prediction can be rejected.
sourcepub fn get_threshold(&self) -> &Option<f32>
pub fn get_threshold(&self) -> &Option<f32>
The confidence score that specifies the condition at which a prediction can be rejected.
sourcepub fn build(self) -> RejectRule
pub fn build(self) -> RejectRule
Consumes the builder and constructs a RejectRule
.
Trait Implementations§
source§impl Clone for RejectRuleBuilder
impl Clone for RejectRuleBuilder
source§fn clone(&self) -> RejectRuleBuilder
fn clone(&self) -> RejectRuleBuilder
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 RejectRuleBuilder
impl Debug for RejectRuleBuilder
source§impl Default for RejectRuleBuilder
impl Default for RejectRuleBuilder
source§fn default() -> RejectRuleBuilder
fn default() -> RejectRuleBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for RejectRuleBuilder
impl PartialEq for RejectRuleBuilder
source§fn eq(&self, other: &RejectRuleBuilder) -> bool
fn eq(&self, other: &RejectRuleBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RejectRuleBuilder
Auto Trait Implementations§
impl RefUnwindSafe for RejectRuleBuilder
impl Send for RejectRuleBuilder
impl Sync for RejectRuleBuilder
impl Unpin for RejectRuleBuilder
impl UnwindSafe for RejectRuleBuilder
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