Struct aws_sdk_eventbridge::types::builders::ArchiveBuilder
source · #[non_exhaustive]pub struct ArchiveBuilder { /* private fields */ }
Expand description
A builder for Archive
.
Implementations§
source§impl ArchiveBuilder
impl ArchiveBuilder
sourcepub fn archive_name(self, input: impl Into<String>) -> Self
pub fn archive_name(self, input: impl Into<String>) -> Self
The name of the archive.
sourcepub fn set_archive_name(self, input: Option<String>) -> Self
pub fn set_archive_name(self, input: Option<String>) -> Self
The name of the archive.
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 associated with the archive. Only events from this event bus are sent 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 associated with the archive. Only events from this event bus are sent to the archive.
sourcepub fn state(self, input: ArchiveState) -> Self
pub fn state(self, input: ArchiveState) -> Self
The current state of the archive.
sourcepub fn set_state(self, input: Option<ArchiveState>) -> Self
pub fn set_state(self, input: Option<ArchiveState>) -> Self
The current state of the archive.
sourcepub fn state_reason(self, input: impl Into<String>) -> Self
pub fn state_reason(self, input: impl Into<String>) -> Self
A description for the reason that the archive is in the current state.
sourcepub fn set_state_reason(self, input: Option<String>) -> Self
pub fn set_state_reason(self, input: Option<String>) -> Self
A description for the reason that the archive is in the current state.
sourcepub fn retention_days(self, input: i32) -> Self
pub fn retention_days(self, input: i32) -> Self
The number of days to retain events in the archive before they are deleted.
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 in the archive before they are deleted.
sourcepub fn size_bytes(self, input: i64) -> Self
pub fn size_bytes(self, input: i64) -> Self
The size of the archive, in bytes.
sourcepub fn set_size_bytes(self, input: Option<i64>) -> Self
pub fn set_size_bytes(self, input: Option<i64>) -> Self
The size of the archive, in bytes.
sourcepub fn event_count(self, input: i64) -> Self
pub fn event_count(self, input: i64) -> Self
The number of events in the archive.
sourcepub fn set_event_count(self, input: Option<i64>) -> Self
pub fn set_event_count(self, input: Option<i64>) -> Self
The number of events in the archive.
sourcepub fn creation_time(self, input: DateTime) -> Self
pub fn creation_time(self, input: DateTime) -> Self
The time stamp for the time that the archive was created.
sourcepub fn set_creation_time(self, input: Option<DateTime>) -> Self
pub fn set_creation_time(self, input: Option<DateTime>) -> Self
The time stamp for the time that the archive was created.
Trait Implementations§
source§impl Clone for ArchiveBuilder
impl Clone for ArchiveBuilder
source§fn clone(&self) -> ArchiveBuilder
fn clone(&self) -> ArchiveBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ArchiveBuilder
impl Debug for ArchiveBuilder
source§impl Default for ArchiveBuilder
impl Default for ArchiveBuilder
source§fn default() -> ArchiveBuilder
fn default() -> ArchiveBuilder
source§impl PartialEq<ArchiveBuilder> for ArchiveBuilder
impl PartialEq<ArchiveBuilder> for ArchiveBuilder
source§fn eq(&self, other: &ArchiveBuilder) -> bool
fn eq(&self, other: &ArchiveBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.