Struct aws_sdk_frauddetector::operation::update_detector_version::builders::UpdateDetectorVersionInputBuilder
source · #[non_exhaustive]pub struct UpdateDetectorVersionInputBuilder { /* private fields */ }
Expand description
A builder for UpdateDetectorVersionInput
.
Implementations§
source§impl UpdateDetectorVersionInputBuilder
impl UpdateDetectorVersionInputBuilder
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.
This field is required.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 get_detector_id(&self) -> &Option<String>
pub fn get_detector_id(&self) -> &Option<String>
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.
This field is required.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 get_detector_version_id(&self) -> &Option<String>
pub fn get_detector_version_id(&self) -> &Option<String>
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 get_external_model_endpoints(&self) -> &Option<Vec<String>>
pub fn get_external_model_endpoints(&self) -> &Option<Vec<String>>
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 get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
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 get_model_versions(&self) -> &Option<Vec<ModelVersion>>
pub fn get_model_versions(&self) -> &Option<Vec<ModelVersion>>
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 get_rule_execution_mode(&self) -> &Option<RuleExecutionMode>
pub fn get_rule_execution_mode(&self) -> &Option<RuleExecutionMode>
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
.
source§impl UpdateDetectorVersionInputBuilder
impl UpdateDetectorVersionInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<UpdateDetectorVersionOutput, SdkError<UpdateDetectorVersionError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<UpdateDetectorVersionOutput, SdkError<UpdateDetectorVersionError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for UpdateDetectorVersionInputBuilder
impl Clone for UpdateDetectorVersionInputBuilder
source§fn clone(&self) -> UpdateDetectorVersionInputBuilder
fn clone(&self) -> UpdateDetectorVersionInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for UpdateDetectorVersionInputBuilder
impl Default for UpdateDetectorVersionInputBuilder
source§fn default() -> UpdateDetectorVersionInputBuilder
fn default() -> UpdateDetectorVersionInputBuilder
source§impl PartialEq for UpdateDetectorVersionInputBuilder
impl PartialEq for UpdateDetectorVersionInputBuilder
source§fn eq(&self, other: &UpdateDetectorVersionInputBuilder) -> bool
fn eq(&self, other: &UpdateDetectorVersionInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.