#[non_exhaustive]pub struct CreateChannelInputBuilder { /* private fields */ }Expand description
A builder for CreateChannelInput.
Implementations§
source§impl CreateChannelInputBuilder
impl CreateChannelInputBuilder
sourcepub fn channel_name(self, input: impl Into<String>) -> Self
pub fn channel_name(self, input: impl Into<String>) -> Self
The name of the channel.
This field is required.sourcepub fn set_channel_name(self, input: Option<String>) -> Self
pub fn set_channel_name(self, input: Option<String>) -> Self
The name of the channel.
sourcepub fn get_channel_name(&self) -> &Option<String>
pub fn get_channel_name(&self) -> &Option<String>
The name of the channel.
sourcepub fn channel_storage(self, input: ChannelStorage) -> Self
pub fn channel_storage(self, input: ChannelStorage) -> Self
Where channel data is stored. You can choose one of serviceManagedS3 or customerManagedS3 storage. If not specified, the default is serviceManagedS3. You can't change this storage option after the channel is created.
sourcepub fn set_channel_storage(self, input: Option<ChannelStorage>) -> Self
pub fn set_channel_storage(self, input: Option<ChannelStorage>) -> Self
Where channel data is stored. You can choose one of serviceManagedS3 or customerManagedS3 storage. If not specified, the default is serviceManagedS3. You can't change this storage option after the channel is created.
sourcepub fn get_channel_storage(&self) -> &Option<ChannelStorage>
pub fn get_channel_storage(&self) -> &Option<ChannelStorage>
Where channel data is stored. You can choose one of serviceManagedS3 or customerManagedS3 storage. If not specified, the default is serviceManagedS3. You can't change this storage option after the channel is created.
sourcepub fn retention_period(self, input: RetentionPeriod) -> Self
pub fn retention_period(self, input: RetentionPeriod) -> Self
How long, in days, message data is kept for the channel. When customerManagedS3 storage is selected, this parameter is ignored.
sourcepub fn set_retention_period(self, input: Option<RetentionPeriod>) -> Self
pub fn set_retention_period(self, input: Option<RetentionPeriod>) -> Self
How long, in days, message data is kept for the channel. When customerManagedS3 storage is selected, this parameter is ignored.
sourcepub fn get_retention_period(&self) -> &Option<RetentionPeriod>
pub fn get_retention_period(&self) -> &Option<RetentionPeriod>
How long, in days, message data is kept for the channel. When customerManagedS3 storage is selected, this parameter is ignored.
Appends an item to tags.
To override the contents of this collection use set_tags.
Metadata which can be used to manage the channel.
Metadata which can be used to manage the channel.
Metadata which can be used to manage the channel.
sourcepub fn build(self) -> Result<CreateChannelInput, BuildError>
pub fn build(self) -> Result<CreateChannelInput, BuildError>
Consumes the builder and constructs a CreateChannelInput.
source§impl CreateChannelInputBuilder
impl CreateChannelInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateChannelOutput, SdkError<CreateChannelError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateChannelOutput, SdkError<CreateChannelError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateChannelInputBuilder
impl Clone for CreateChannelInputBuilder
source§fn clone(&self) -> CreateChannelInputBuilder
fn clone(&self) -> CreateChannelInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CreateChannelInputBuilder
impl Debug for CreateChannelInputBuilder
source§impl Default for CreateChannelInputBuilder
impl Default for CreateChannelInputBuilder
source§fn default() -> CreateChannelInputBuilder
fn default() -> CreateChannelInputBuilder
source§impl PartialEq for CreateChannelInputBuilder
impl PartialEq for CreateChannelInputBuilder
source§fn eq(&self, other: &CreateChannelInputBuilder) -> bool
fn eq(&self, other: &CreateChannelInputBuilder) -> bool
self and other values to be equal, and is used
by ==.