#[non_exhaustive]pub struct Builder { /* private fields */ }
Expand description
A builder for UpdateDetectorVersionInput
Implementations
sourceimpl Builder
impl Builder
sourcepub fn detector_id(self, input: impl Into<String>) -> Self
pub fn detector_id(self, input: impl Into<String>) -> Self
The parent detector ID for the detector version you want to update.
sourcepub fn set_detector_id(self, input: Option<String>) -> Self
pub fn set_detector_id(self, input: Option<String>) -> Self
The parent detector ID for the detector version you want to update.
sourcepub fn detector_version_id(self, input: impl Into<String>) -> Self
pub fn detector_version_id(self, input: impl Into<String>) -> Self
The detector version ID.
sourcepub fn set_detector_version_id(self, input: Option<String>) -> Self
pub fn set_detector_version_id(self, input: Option<String>) -> Self
The detector version ID.
sourcepub fn external_model_endpoints(self, input: impl Into<String>) -> Self
pub fn external_model_endpoints(self, input: impl Into<String>) -> Self
Appends an item to external_model_endpoints
.
To override the contents of this collection use set_external_model_endpoints
.
The Amazon SageMaker model endpoints to include in the detector version.
sourcepub fn set_external_model_endpoints(self, input: Option<Vec<String>>) -> Self
pub fn set_external_model_endpoints(self, input: Option<Vec<String>>) -> Self
The Amazon SageMaker model endpoints to include in the detector version.
sourcepub fn rules(self, input: Rule) -> Self
pub fn rules(self, input: Rule) -> Self
Appends an item to rules
.
To override the contents of this collection use set_rules
.
The rules to include in the detector version.
sourcepub fn set_rules(self, input: Option<Vec<Rule>>) -> Self
pub fn set_rules(self, input: Option<Vec<Rule>>) -> Self
The rules to include in the detector version.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The detector version description.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The detector version description.
sourcepub fn model_versions(self, input: ModelVersion) -> Self
pub fn model_versions(self, input: ModelVersion) -> Self
Appends an item to model_versions
.
To override the contents of this collection use set_model_versions
.
The model versions to include in the detector version.
sourcepub fn set_model_versions(self, input: Option<Vec<ModelVersion>>) -> Self
pub fn set_model_versions(self, input: Option<Vec<ModelVersion>>) -> Self
The model versions to include in the detector version.
sourcepub fn rule_execution_mode(self, input: RuleExecutionMode) -> Self
pub fn rule_execution_mode(self, input: RuleExecutionMode) -> Self
The rule execution mode to add to the detector.
If you specify FIRST_MATCHED
, Amazon Fraud Detector evaluates rules sequentially, first to last, stopping at the first matched rule. Amazon Fraud dectector then provides the outcomes for that single rule.
If you specifiy ALL_MATCHED
, Amazon Fraud Detector evaluates all rules and returns the outcomes for all matched rules. You can define and edit the rule mode at the detector version level, when it is in draft status.
The default behavior is FIRST_MATCHED
.
sourcepub fn set_rule_execution_mode(self, input: Option<RuleExecutionMode>) -> Self
pub fn set_rule_execution_mode(self, input: Option<RuleExecutionMode>) -> Self
The rule execution mode to add to the detector.
If you specify FIRST_MATCHED
, Amazon Fraud Detector evaluates rules sequentially, first to last, stopping at the first matched rule. Amazon Fraud dectector then provides the outcomes for that single rule.
If you specifiy ALL_MATCHED
, Amazon Fraud Detector evaluates all rules and returns the outcomes for all matched rules. You can define and edit the rule mode at the detector version level, when it is in draft status.
The default behavior is FIRST_MATCHED
.
sourcepub fn build(self) -> Result<UpdateDetectorVersionInput, BuildError>
pub fn build(self) -> Result<UpdateDetectorVersionInput, BuildError>
Consumes the builder and constructs a UpdateDetectorVersionInput
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more