#[non_exhaustive]pub struct AutomationRulesMetadataBuilder { /* private fields */ }
Expand description
A builder for AutomationRulesMetadata
.
Implementations§
source§impl AutomationRulesMetadataBuilder
impl AutomationRulesMetadataBuilder
sourcepub fn rule_arn(self, input: impl Into<String>) -> Self
pub fn rule_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) for the rule.
sourcepub fn set_rule_arn(self, input: Option<String>) -> Self
pub fn set_rule_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) for the rule.
sourcepub fn get_rule_arn(&self) -> &Option<String>
pub fn get_rule_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) for the rule.
sourcepub fn rule_status(self, input: RuleStatus) -> Self
pub fn rule_status(self, input: RuleStatus) -> Self
Whether the rule is active after it is created. If this parameter is equal to ENABLED
, Security Hub starts applying the rule to findings and finding updates after the rule is created. To change the value of this parameter after creating a rule, use BatchUpdateAutomationRules
.
sourcepub fn set_rule_status(self, input: Option<RuleStatus>) -> Self
pub fn set_rule_status(self, input: Option<RuleStatus>) -> Self
Whether the rule is active after it is created. If this parameter is equal to ENABLED
, Security Hub starts applying the rule to findings and finding updates after the rule is created. To change the value of this parameter after creating a rule, use BatchUpdateAutomationRules
.
sourcepub fn get_rule_status(&self) -> &Option<RuleStatus>
pub fn get_rule_status(&self) -> &Option<RuleStatus>
Whether the rule is active after it is created. If this parameter is equal to ENABLED
, Security Hub starts applying the rule to findings and finding updates after the rule is created. To change the value of this parameter after creating a rule, use BatchUpdateAutomationRules
.
sourcepub fn rule_order(self, input: i32) -> Self
pub fn rule_order(self, input: i32) -> Self
An integer ranging from 1 to 1000 that represents the order in which the rule action is applied to findings. Security Hub applies rules with lower values for this parameter first.
sourcepub fn set_rule_order(self, input: Option<i32>) -> Self
pub fn set_rule_order(self, input: Option<i32>) -> Self
An integer ranging from 1 to 1000 that represents the order in which the rule action is applied to findings. Security Hub applies rules with lower values for this parameter first.
sourcepub fn get_rule_order(&self) -> &Option<i32>
pub fn get_rule_order(&self) -> &Option<i32>
An integer ranging from 1 to 1000 that represents the order in which the rule action is applied to findings. Security Hub applies rules with lower values for this parameter first.
sourcepub fn set_rule_name(self, input: Option<String>) -> Self
pub fn set_rule_name(self, input: Option<String>) -> Self
The name of the rule.
sourcepub fn get_rule_name(&self) -> &Option<String>
pub fn get_rule_name(&self) -> &Option<String>
The name of the rule.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A description of the rule.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A description of the rule.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
A description of the rule.
sourcepub fn is_terminal(self, input: bool) -> Self
pub fn is_terminal(self, input: bool) -> Self
Specifies whether a rule is the last to be applied with respect to a finding that matches the rule criteria. This is useful when a finding matches the criteria for multiple rules, and each rule has different actions. If a rule is terminal, Security Hub applies the rule action to a finding that matches the rule criteria and doesn't evaluate other rules for the finding. By default, a rule isn't terminal.
sourcepub fn set_is_terminal(self, input: Option<bool>) -> Self
pub fn set_is_terminal(self, input: Option<bool>) -> Self
Specifies whether a rule is the last to be applied with respect to a finding that matches the rule criteria. This is useful when a finding matches the criteria for multiple rules, and each rule has different actions. If a rule is terminal, Security Hub applies the rule action to a finding that matches the rule criteria and doesn't evaluate other rules for the finding. By default, a rule isn't terminal.
sourcepub fn get_is_terminal(&self) -> &Option<bool>
pub fn get_is_terminal(&self) -> &Option<bool>
Specifies whether a rule is the last to be applied with respect to a finding that matches the rule criteria. This is useful when a finding matches the criteria for multiple rules, and each rule has different actions. If a rule is terminal, Security Hub applies the rule action to a finding that matches the rule criteria and doesn't evaluate other rules for the finding. By default, a rule isn't terminal.
sourcepub fn created_at(self, input: DateTime) -> Self
pub fn created_at(self, input: DateTime) -> Self
A timestamp that indicates when the rule was created.
Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces. For example, 2020-03-22T13:22:13.933Z
.
sourcepub fn set_created_at(self, input: Option<DateTime>) -> Self
pub fn set_created_at(self, input: Option<DateTime>) -> Self
A timestamp that indicates when the rule was created.
Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces. For example, 2020-03-22T13:22:13.933Z
.
sourcepub fn get_created_at(&self) -> &Option<DateTime>
pub fn get_created_at(&self) -> &Option<DateTime>
A timestamp that indicates when the rule was created.
Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces. For example, 2020-03-22T13:22:13.933Z
.
sourcepub fn updated_at(self, input: DateTime) -> Self
pub fn updated_at(self, input: DateTime) -> Self
A timestamp that indicates when the rule was most recently updated.
Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces. For example, 2020-03-22T13:22:13.933Z
.
sourcepub fn set_updated_at(self, input: Option<DateTime>) -> Self
pub fn set_updated_at(self, input: Option<DateTime>) -> Self
A timestamp that indicates when the rule was most recently updated.
Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces. For example, 2020-03-22T13:22:13.933Z
.
sourcepub fn get_updated_at(&self) -> &Option<DateTime>
pub fn get_updated_at(&self) -> &Option<DateTime>
A timestamp that indicates when the rule was most recently updated.
Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces. For example, 2020-03-22T13:22:13.933Z
.
sourcepub fn created_by(self, input: impl Into<String>) -> Self
pub fn created_by(self, input: impl Into<String>) -> Self
The principal that created a rule.
sourcepub fn set_created_by(self, input: Option<String>) -> Self
pub fn set_created_by(self, input: Option<String>) -> Self
The principal that created a rule.
sourcepub fn get_created_by(&self) -> &Option<String>
pub fn get_created_by(&self) -> &Option<String>
The principal that created a rule.
sourcepub fn build(self) -> AutomationRulesMetadata
pub fn build(self) -> AutomationRulesMetadata
Consumes the builder and constructs a AutomationRulesMetadata
.
Trait Implementations§
source§impl Clone for AutomationRulesMetadataBuilder
impl Clone for AutomationRulesMetadataBuilder
source§fn clone(&self) -> AutomationRulesMetadataBuilder
fn clone(&self) -> AutomationRulesMetadataBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for AutomationRulesMetadataBuilder
impl Default for AutomationRulesMetadataBuilder
source§fn default() -> AutomationRulesMetadataBuilder
fn default() -> AutomationRulesMetadataBuilder
source§impl PartialEq for AutomationRulesMetadataBuilder
impl PartialEq for AutomationRulesMetadataBuilder
source§fn eq(&self, other: &AutomationRulesMetadataBuilder) -> bool
fn eq(&self, other: &AutomationRulesMetadataBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.