Struct aws_sdk_eventbridge::model::event_source::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for EventSource.
Implementations§
source§impl Builder
impl Builder
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.