#[non_exhaustive]pub struct PipeSourceParametersBuilder { /* private fields */ }
Expand description
A builder for PipeSourceParameters
.
Implementations§
Source§impl PipeSourceParametersBuilder
impl PipeSourceParametersBuilder
Sourcepub fn filter_criteria(self, input: FilterCriteria) -> Self
pub fn filter_criteria(self, input: FilterCriteria) -> Self
The collection of event patterns used to filter events.
To remove a filter, specify a FilterCriteria
object with an empty array of Filter
objects.
For more information, see Events and Event Patterns in the Amazon EventBridge User Guide.
Sourcepub fn set_filter_criteria(self, input: Option<FilterCriteria>) -> Self
pub fn set_filter_criteria(self, input: Option<FilterCriteria>) -> Self
The collection of event patterns used to filter events.
To remove a filter, specify a FilterCriteria
object with an empty array of Filter
objects.
For more information, see Events and Event Patterns in the Amazon EventBridge User Guide.
Sourcepub fn get_filter_criteria(&self) -> &Option<FilterCriteria>
pub fn get_filter_criteria(&self) -> &Option<FilterCriteria>
The collection of event patterns used to filter events.
To remove a filter, specify a FilterCriteria
object with an empty array of Filter
objects.
For more information, see Events and Event Patterns in the Amazon EventBridge User Guide.
Sourcepub fn kinesis_stream_parameters(
self,
input: PipeSourceKinesisStreamParameters,
) -> Self
pub fn kinesis_stream_parameters( self, input: PipeSourceKinesisStreamParameters, ) -> Self
The parameters for using a Kinesis stream as a source.
Sourcepub fn set_kinesis_stream_parameters(
self,
input: Option<PipeSourceKinesisStreamParameters>,
) -> Self
pub fn set_kinesis_stream_parameters( self, input: Option<PipeSourceKinesisStreamParameters>, ) -> Self
The parameters for using a Kinesis stream as a source.
Sourcepub fn get_kinesis_stream_parameters(
&self,
) -> &Option<PipeSourceKinesisStreamParameters>
pub fn get_kinesis_stream_parameters( &self, ) -> &Option<PipeSourceKinesisStreamParameters>
The parameters for using a Kinesis stream as a source.
Sourcepub fn dynamo_db_stream_parameters(
self,
input: PipeSourceDynamoDbStreamParameters,
) -> Self
pub fn dynamo_db_stream_parameters( self, input: PipeSourceDynamoDbStreamParameters, ) -> Self
The parameters for using a DynamoDB stream as a source.
Sourcepub fn set_dynamo_db_stream_parameters(
self,
input: Option<PipeSourceDynamoDbStreamParameters>,
) -> Self
pub fn set_dynamo_db_stream_parameters( self, input: Option<PipeSourceDynamoDbStreamParameters>, ) -> Self
The parameters for using a DynamoDB stream as a source.
Sourcepub fn get_dynamo_db_stream_parameters(
&self,
) -> &Option<PipeSourceDynamoDbStreamParameters>
pub fn get_dynamo_db_stream_parameters( &self, ) -> &Option<PipeSourceDynamoDbStreamParameters>
The parameters for using a DynamoDB stream as a source.
Sourcepub fn sqs_queue_parameters(self, input: PipeSourceSqsQueueParameters) -> Self
pub fn sqs_queue_parameters(self, input: PipeSourceSqsQueueParameters) -> Self
The parameters for using a Amazon SQS stream as a source.
Sourcepub fn set_sqs_queue_parameters(
self,
input: Option<PipeSourceSqsQueueParameters>,
) -> Self
pub fn set_sqs_queue_parameters( self, input: Option<PipeSourceSqsQueueParameters>, ) -> Self
The parameters for using a Amazon SQS stream as a source.
Sourcepub fn get_sqs_queue_parameters(&self) -> &Option<PipeSourceSqsQueueParameters>
pub fn get_sqs_queue_parameters(&self) -> &Option<PipeSourceSqsQueueParameters>
The parameters for using a Amazon SQS stream as a source.
Sourcepub fn active_mq_broker_parameters(
self,
input: PipeSourceActiveMqBrokerParameters,
) -> Self
pub fn active_mq_broker_parameters( self, input: PipeSourceActiveMqBrokerParameters, ) -> Self
The parameters for using an Active MQ broker as a source.
Sourcepub fn set_active_mq_broker_parameters(
self,
input: Option<PipeSourceActiveMqBrokerParameters>,
) -> Self
pub fn set_active_mq_broker_parameters( self, input: Option<PipeSourceActiveMqBrokerParameters>, ) -> Self
The parameters for using an Active MQ broker as a source.
Sourcepub fn get_active_mq_broker_parameters(
&self,
) -> &Option<PipeSourceActiveMqBrokerParameters>
pub fn get_active_mq_broker_parameters( &self, ) -> &Option<PipeSourceActiveMqBrokerParameters>
The parameters for using an Active MQ broker as a source.
Sourcepub fn rabbit_mq_broker_parameters(
self,
input: PipeSourceRabbitMqBrokerParameters,
) -> Self
pub fn rabbit_mq_broker_parameters( self, input: PipeSourceRabbitMqBrokerParameters, ) -> Self
The parameters for using a Rabbit MQ broker as a source.
Sourcepub fn set_rabbit_mq_broker_parameters(
self,
input: Option<PipeSourceRabbitMqBrokerParameters>,
) -> Self
pub fn set_rabbit_mq_broker_parameters( self, input: Option<PipeSourceRabbitMqBrokerParameters>, ) -> Self
The parameters for using a Rabbit MQ broker as a source.
Sourcepub fn get_rabbit_mq_broker_parameters(
&self,
) -> &Option<PipeSourceRabbitMqBrokerParameters>
pub fn get_rabbit_mq_broker_parameters( &self, ) -> &Option<PipeSourceRabbitMqBrokerParameters>
The parameters for using a Rabbit MQ broker as a source.
Sourcepub fn managed_streaming_kafka_parameters(
self,
input: PipeSourceManagedStreamingKafkaParameters,
) -> Self
pub fn managed_streaming_kafka_parameters( self, input: PipeSourceManagedStreamingKafkaParameters, ) -> Self
The parameters for using an MSK stream as a source.
Sourcepub fn set_managed_streaming_kafka_parameters(
self,
input: Option<PipeSourceManagedStreamingKafkaParameters>,
) -> Self
pub fn set_managed_streaming_kafka_parameters( self, input: Option<PipeSourceManagedStreamingKafkaParameters>, ) -> Self
The parameters for using an MSK stream as a source.
Sourcepub fn get_managed_streaming_kafka_parameters(
&self,
) -> &Option<PipeSourceManagedStreamingKafkaParameters>
pub fn get_managed_streaming_kafka_parameters( &self, ) -> &Option<PipeSourceManagedStreamingKafkaParameters>
The parameters for using an MSK stream as a source.
Sourcepub fn self_managed_kafka_parameters(
self,
input: PipeSourceSelfManagedKafkaParameters,
) -> Self
pub fn self_managed_kafka_parameters( self, input: PipeSourceSelfManagedKafkaParameters, ) -> Self
The parameters for using a self-managed Apache Kafka stream as a source.
A self managed cluster refers to any Apache Kafka cluster not hosted by Amazon Web Services. This includes both clusters you manage yourself, as well as those hosted by a third-party provider, such as Confluent Cloud, CloudKarafka, or Redpanda. For more information, see Apache Kafka streams as a source in the Amazon EventBridge User Guide.
Sourcepub fn set_self_managed_kafka_parameters(
self,
input: Option<PipeSourceSelfManagedKafkaParameters>,
) -> Self
pub fn set_self_managed_kafka_parameters( self, input: Option<PipeSourceSelfManagedKafkaParameters>, ) -> Self
The parameters for using a self-managed Apache Kafka stream as a source.
A self managed cluster refers to any Apache Kafka cluster not hosted by Amazon Web Services. This includes both clusters you manage yourself, as well as those hosted by a third-party provider, such as Confluent Cloud, CloudKarafka, or Redpanda. For more information, see Apache Kafka streams as a source in the Amazon EventBridge User Guide.
Sourcepub fn get_self_managed_kafka_parameters(
&self,
) -> &Option<PipeSourceSelfManagedKafkaParameters>
pub fn get_self_managed_kafka_parameters( &self, ) -> &Option<PipeSourceSelfManagedKafkaParameters>
The parameters for using a self-managed Apache Kafka stream as a source.
A self managed cluster refers to any Apache Kafka cluster not hosted by Amazon Web Services. This includes both clusters you manage yourself, as well as those hosted by a third-party provider, such as Confluent Cloud, CloudKarafka, or Redpanda. For more information, see Apache Kafka streams as a source in the Amazon EventBridge User Guide.
Sourcepub fn build(self) -> PipeSourceParameters
pub fn build(self) -> PipeSourceParameters
Consumes the builder and constructs a PipeSourceParameters
.
Trait Implementations§
Source§impl Clone for PipeSourceParametersBuilder
impl Clone for PipeSourceParametersBuilder
Source§fn clone(&self) -> PipeSourceParametersBuilder
fn clone(&self) -> PipeSourceParametersBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for PipeSourceParametersBuilder
impl Debug for PipeSourceParametersBuilder
Source§impl Default for PipeSourceParametersBuilder
impl Default for PipeSourceParametersBuilder
Source§fn default() -> PipeSourceParametersBuilder
fn default() -> PipeSourceParametersBuilder
impl StructuralPartialEq for PipeSourceParametersBuilder
Auto Trait Implementations§
impl Freeze for PipeSourceParametersBuilder
impl RefUnwindSafe for PipeSourceParametersBuilder
impl Send for PipeSourceParametersBuilder
impl Sync for PipeSourceParametersBuilder
impl Unpin for PipeSourceParametersBuilder
impl UnwindSafe for PipeSourceParametersBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the foreground set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red()
and
green()
, which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg()
:
use yansi::{Paint, Color};
painted.fg(Color::White);
Set foreground color to white using white()
.
use yansi::Paint;
painted.white();
Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the background set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red()
and
on_green()
, which have the same functionality but
are pithier.
§Example
Set background color to red using fg()
:
use yansi::{Paint, Color};
painted.bg(Color::Red);
Set background color to red using on_red()
.
use yansi::Paint;
painted.on_red();
Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute
value
.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold()
and
underline()
, which have the same functionality
but are pithier.
§Example
Make text bold using attr()
:
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);
Make text bold using using bold()
.
use yansi::Paint;
painted.bold();
Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi
Quirk
value
.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask()
and
wrap()
, which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk()
:
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);
Enable wrapping using wrap()
.
use yansi::Paint;
painted.wrap();
Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition
value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted
only when both stdout
and stderr
are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);