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