Struct aws_sdk_eventbridge::types::builders::EventSourceBuilder
source · #[non_exhaustive]pub struct EventSourceBuilder { /* private fields */ }
Expand description
A builder for EventSource
.
Implementations§
source§impl EventSourceBuilder
impl EventSourceBuilder
sourcepub fn created_by(self, input: impl Into<String>) -> Self
pub fn created_by(self, input: impl Into<String>) -> Self
The name of the partner that created the event source.
sourcepub fn set_created_by(self, input: Option<String>) -> Self
pub fn set_created_by(self, input: Option<String>) -> Self
The name of the partner that created the event source.
sourcepub fn creation_time(self, input: DateTime) -> Self
pub fn creation_time(self, input: DateTime) -> Self
The date and time the event source was created.
sourcepub fn set_creation_time(self, input: Option<DateTime>) -> Self
pub fn set_creation_time(self, input: Option<DateTime>) -> Self
The date and time the event source was created.
sourcepub fn expiration_time(self, input: DateTime) -> Self
pub fn expiration_time(self, input: DateTime) -> Self
The date and time that the event source will expire, if the Amazon Web Services account doesn't create a matching event bus for it.
sourcepub fn set_expiration_time(self, input: Option<DateTime>) -> Self
pub fn set_expiration_time(self, input: Option<DateTime>) -> Self
The date and time that the event source will expire, if the Amazon Web Services account doesn't create a matching event bus for it.
sourcepub fn state(self, input: EventSourceState) -> Self
pub fn state(self, input: EventSourceState) -> Self
The state of the event source. If it is ACTIVE, you have already created a matching event bus for this event source, and that event bus is active. If it is PENDING, either you haven't yet created a matching event bus, or that event bus is deactivated. If it is DELETED, you have created a matching event bus, but the event source has since been deleted.
sourcepub fn set_state(self, input: Option<EventSourceState>) -> Self
pub fn set_state(self, input: Option<EventSourceState>) -> Self
The state of the event source. If it is ACTIVE, you have already created a matching event bus for this event source, and that event bus is active. If it is PENDING, either you haven't yet created a matching event bus, or that event bus is deactivated. If it is DELETED, you have created a matching event bus, but the event source has since been deleted.
sourcepub fn build(self) -> EventSource
pub fn build(self) -> EventSource
Consumes the builder and constructs a EventSource
.
Trait Implementations§
source§impl Clone for EventSourceBuilder
impl Clone for EventSourceBuilder
source§fn clone(&self) -> EventSourceBuilder
fn clone(&self) -> EventSourceBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EventSourceBuilder
impl Debug for EventSourceBuilder
source§impl Default for EventSourceBuilder
impl Default for EventSourceBuilder
source§fn default() -> EventSourceBuilder
fn default() -> EventSourceBuilder
source§impl PartialEq<EventSourceBuilder> for EventSourceBuilder
impl PartialEq<EventSourceBuilder> for EventSourceBuilder
source§fn eq(&self, other: &EventSourceBuilder) -> bool
fn eq(&self, other: &EventSourceBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.