Struct aws_sdk_eventbridge::input::create_archive_input::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for CreateArchiveInput.
Implementations§
source§impl Builder
impl Builder
sourcepub fn archive_name(self, input: impl Into<String>) -> Self
pub fn archive_name(self, input: impl Into<String>) -> Self
The name for the archive to create.
sourcepub fn set_archive_name(self, input: Option<String>) -> Self
pub fn set_archive_name(self, input: Option<String>) -> Self
The name for the archive to create.
sourcepub fn event_source_arn(self, input: impl Into<String>) -> Self
pub fn event_source_arn(self, input: impl Into<String>) -> Self
The ARN of the event bus that sends events to the archive.
sourcepub fn set_event_source_arn(self, input: Option<String>) -> Self
pub fn set_event_source_arn(self, input: Option<String>) -> Self
The ARN of the event bus that sends events to the archive.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A description for the archive.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A description for the archive.
sourcepub fn event_pattern(self, input: impl Into<String>) -> Self
pub fn event_pattern(self, input: impl Into<String>) -> Self
An event pattern to use to filter events sent to the archive.
sourcepub fn set_event_pattern(self, input: Option<String>) -> Self
pub fn set_event_pattern(self, input: Option<String>) -> Self
An event pattern to use to filter events sent to the archive.
sourcepub fn retention_days(self, input: i32) -> Self
pub fn retention_days(self, input: i32) -> Self
The number of days to retain events for. Default value is 0. If set to 0, events are retained indefinitely
sourcepub fn set_retention_days(self, input: Option<i32>) -> Self
pub fn set_retention_days(self, input: Option<i32>) -> Self
The number of days to retain events for. Default value is 0. If set to 0, events are retained indefinitely
sourcepub fn build(self) -> Result<CreateArchiveInput, BuildError>
pub fn build(self) -> Result<CreateArchiveInput, BuildError>
Consumes the builder and constructs a CreateArchiveInput.