#[non_exhaustive]pub struct CreateArchiveInputBuilder { /* private fields */ }Expand description
A builder for CreateArchiveInput.
Implementations§
source§impl CreateArchiveInputBuilder
impl CreateArchiveInputBuilder
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.
This field is required.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 get_archive_name(&self) -> &Option<String>
pub fn get_archive_name(&self) -> &Option<String>
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.
This field is required.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 get_event_source_arn(&self) -> &Option<String>
pub fn get_event_source_arn(&self) -> &Option<String>
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 get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
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 get_event_pattern(&self) -> &Option<String>
pub fn get_event_pattern(&self) -> &Option<String>
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 get_retention_days(&self) -> &Option<i32>
pub fn get_retention_days(&self) -> &Option<i32>
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.
source§impl CreateArchiveInputBuilder
impl CreateArchiveInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateArchiveOutput, SdkError<CreateArchiveError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateArchiveOutput, SdkError<CreateArchiveError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateArchiveInputBuilder
impl Clone for CreateArchiveInputBuilder
source§fn clone(&self) -> CreateArchiveInputBuilder
fn clone(&self) -> CreateArchiveInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CreateArchiveInputBuilder
impl Debug for CreateArchiveInputBuilder
source§impl Default for CreateArchiveInputBuilder
impl Default for CreateArchiveInputBuilder
source§fn default() -> CreateArchiveInputBuilder
fn default() -> CreateArchiveInputBuilder
source§impl PartialEq for CreateArchiveInputBuilder
impl PartialEq for CreateArchiveInputBuilder
source§fn eq(&self, other: &CreateArchiveInputBuilder) -> bool
fn eq(&self, other: &CreateArchiveInputBuilder) -> bool
self and other values to be equal, and is used
by ==.