#[non_exhaustive]pub struct DeleteRuleInputBuilder { /* private fields */ }
Expand description
A builder for DeleteRuleInput
.
Implementations§
source§impl DeleteRuleInputBuilder
impl DeleteRuleInputBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the rule.
This field is required.sourcepub fn event_bus_name(self, input: impl Into<String>) -> Self
pub fn event_bus_name(self, input: impl Into<String>) -> Self
The name or ARN of the event bus associated with the rule. If you omit this, the default event bus is used.
sourcepub fn set_event_bus_name(self, input: Option<String>) -> Self
pub fn set_event_bus_name(self, input: Option<String>) -> Self
The name or ARN of the event bus associated with the rule. If you omit this, the default event bus is used.
sourcepub fn get_event_bus_name(&self) -> &Option<String>
pub fn get_event_bus_name(&self) -> &Option<String>
The name or ARN of the event bus associated with the rule. If you omit this, the default event bus is used.
sourcepub fn force(self, input: bool) -> Self
pub fn force(self, input: bool) -> Self
If this is a managed rule, created by an Amazon Web Services service on your behalf, you must specify Force
as True
to delete the rule. This parameter is ignored for rules that are not managed rules. You can check whether a rule is a managed rule by using DescribeRule
or ListRules
and checking the ManagedBy
field of the response.
sourcepub fn set_force(self, input: Option<bool>) -> Self
pub fn set_force(self, input: Option<bool>) -> Self
If this is a managed rule, created by an Amazon Web Services service on your behalf, you must specify Force
as True
to delete the rule. This parameter is ignored for rules that are not managed rules. You can check whether a rule is a managed rule by using DescribeRule
or ListRules
and checking the ManagedBy
field of the response.
sourcepub fn get_force(&self) -> &Option<bool>
pub fn get_force(&self) -> &Option<bool>
If this is a managed rule, created by an Amazon Web Services service on your behalf, you must specify Force
as True
to delete the rule. This parameter is ignored for rules that are not managed rules. You can check whether a rule is a managed rule by using DescribeRule
or ListRules
and checking the ManagedBy
field of the response.
sourcepub fn build(self) -> Result<DeleteRuleInput, BuildError>
pub fn build(self) -> Result<DeleteRuleInput, BuildError>
Consumes the builder and constructs a DeleteRuleInput
.
source§impl DeleteRuleInputBuilder
impl DeleteRuleInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<DeleteRuleOutput, SdkError<DeleteRuleError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<DeleteRuleOutput, SdkError<DeleteRuleError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for DeleteRuleInputBuilder
impl Clone for DeleteRuleInputBuilder
source§fn clone(&self) -> DeleteRuleInputBuilder
fn clone(&self) -> DeleteRuleInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DeleteRuleInputBuilder
impl Debug for DeleteRuleInputBuilder
source§impl Default for DeleteRuleInputBuilder
impl Default for DeleteRuleInputBuilder
source§fn default() -> DeleteRuleInputBuilder
fn default() -> DeleteRuleInputBuilder
source§impl PartialEq for DeleteRuleInputBuilder
impl PartialEq for DeleteRuleInputBuilder
source§fn eq(&self, other: &DeleteRuleInputBuilder) -> bool
fn eq(&self, other: &DeleteRuleInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.