#[non_exhaustive]pub struct RemoveTargetsInputBuilder { /* private fields */ }Expand description
A builder for RemoveTargetsInput.
Implementations§
source§impl RemoveTargetsInputBuilder
impl RemoveTargetsInputBuilder
sourcepub fn rule(self, input: impl Into<String>) -> Self
pub fn rule(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 ids(self, input: impl Into<String>) -> Self
pub fn ids(self, input: impl Into<String>) -> Self
Appends an item to ids.
To override the contents of this collection use set_ids.
The IDs of the targets to remove from the rule.
sourcepub fn set_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_ids(self, input: Option<Vec<String>>) -> Self
The IDs of the targets to remove from the rule.
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 remove targets. 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 remove targets. 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 remove targets. 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<RemoveTargetsInput, BuildError>
pub fn build(self) -> Result<RemoveTargetsInput, BuildError>
Consumes the builder and constructs a RemoveTargetsInput.
source§impl RemoveTargetsInputBuilder
impl RemoveTargetsInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<RemoveTargetsOutput, SdkError<RemoveTargetsError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<RemoveTargetsOutput, SdkError<RemoveTargetsError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for RemoveTargetsInputBuilder
impl Clone for RemoveTargetsInputBuilder
source§fn clone(&self) -> RemoveTargetsInputBuilder
fn clone(&self) -> RemoveTargetsInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for RemoveTargetsInputBuilder
impl Debug for RemoveTargetsInputBuilder
source§impl Default for RemoveTargetsInputBuilder
impl Default for RemoveTargetsInputBuilder
source§fn default() -> RemoveTargetsInputBuilder
fn default() -> RemoveTargetsInputBuilder
source§impl PartialEq for RemoveTargetsInputBuilder
impl PartialEq for RemoveTargetsInputBuilder
source§fn eq(&self, other: &RemoveTargetsInputBuilder) -> bool
fn eq(&self, other: &RemoveTargetsInputBuilder) -> bool
self and other values to be equal, and is used
by ==.