#[non_exhaustive]pub struct CreateChannelInputBuilder { /* private fields */ }
Expand description
A builder for CreateChannelInput
.
Implementations§
source§impl CreateChannelInputBuilder
impl CreateChannelInputBuilder
sourcepub fn app_instance_arn(self, input: impl Into<String>) -> Self
pub fn app_instance_arn(self, input: impl Into<String>) -> Self
The ARN of the channel request.
This field is required.sourcepub fn set_app_instance_arn(self, input: Option<String>) -> Self
pub fn set_app_instance_arn(self, input: Option<String>) -> Self
The ARN of the channel request.
sourcepub fn get_app_instance_arn(&self) -> &Option<String>
pub fn get_app_instance_arn(&self) -> &Option<String>
The ARN of the channel request.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the channel.
This field is required.sourcepub fn mode(self, input: ChannelMode) -> Self
pub fn mode(self, input: ChannelMode) -> Self
The channel mode: UNRESTRICTED
or RESTRICTED
. Administrators, moderators, and channel members can add themselves and other members to unrestricted channels. Only administrators and moderators can add members to restricted channels.
sourcepub fn set_mode(self, input: Option<ChannelMode>) -> Self
pub fn set_mode(self, input: Option<ChannelMode>) -> Self
The channel mode: UNRESTRICTED
or RESTRICTED
. Administrators, moderators, and channel members can add themselves and other members to unrestricted channels. Only administrators and moderators can add members to restricted channels.
sourcepub fn get_mode(&self) -> &Option<ChannelMode>
pub fn get_mode(&self) -> &Option<ChannelMode>
The channel mode: UNRESTRICTED
or RESTRICTED
. Administrators, moderators, and channel members can add themselves and other members to unrestricted channels. Only administrators and moderators can add members to restricted channels.
sourcepub fn privacy(self, input: ChannelPrivacy) -> Self
pub fn privacy(self, input: ChannelPrivacy) -> Self
The channel's privacy level: PUBLIC
or PRIVATE
. Private channels aren't discoverable by users outside the channel. Public channels are discoverable by anyone in the AppInstance
.
sourcepub fn set_privacy(self, input: Option<ChannelPrivacy>) -> Self
pub fn set_privacy(self, input: Option<ChannelPrivacy>) -> Self
The channel's privacy level: PUBLIC
or PRIVATE
. Private channels aren't discoverable by users outside the channel. Public channels are discoverable by anyone in the AppInstance
.
sourcepub fn get_privacy(&self) -> &Option<ChannelPrivacy>
pub fn get_privacy(&self) -> &Option<ChannelPrivacy>
The channel's privacy level: PUBLIC
or PRIVATE
. Private channels aren't discoverable by users outside the channel. Public channels are discoverable by anyone in the AppInstance
.
sourcepub fn metadata(self, input: impl Into<String>) -> Self
pub fn metadata(self, input: impl Into<String>) -> Self
The metadata of the creation request. Limited to 1KB and UTF-8.
sourcepub fn set_metadata(self, input: Option<String>) -> Self
pub fn set_metadata(self, input: Option<String>) -> Self
The metadata of the creation request. Limited to 1KB and UTF-8.
sourcepub fn get_metadata(&self) -> &Option<String>
pub fn get_metadata(&self) -> &Option<String>
The metadata of the creation request. Limited to 1KB and UTF-8.
sourcepub fn client_request_token(self, input: impl Into<String>) -> Self
pub fn client_request_token(self, input: impl Into<String>) -> Self
The client token for the request. An Idempotency
token.
sourcepub fn set_client_request_token(self, input: Option<String>) -> Self
pub fn set_client_request_token(self, input: Option<String>) -> Self
The client token for the request. An Idempotency
token.
sourcepub fn get_client_request_token(&self) -> &Option<String>
pub fn get_client_request_token(&self) -> &Option<String>
The client token for the request. An Idempotency
token.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
The tags for the creation request.
The tags for the creation request.
The tags for the creation request.
sourcepub fn chime_bearer(self, input: impl Into<String>) -> Self
pub fn chime_bearer(self, input: impl Into<String>) -> Self
The AppInstanceUserArn
of the user that makes the API call.
sourcepub fn set_chime_bearer(self, input: Option<String>) -> Self
pub fn set_chime_bearer(self, input: Option<String>) -> Self
The AppInstanceUserArn
of the user that makes the API call.
sourcepub fn get_chime_bearer(&self) -> &Option<String>
pub fn get_chime_bearer(&self) -> &Option<String>
The AppInstanceUserArn
of the user that makes the API call.
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 ==
.impl StructuralPartialEq for CreateChannelInputBuilder
Auto Trait Implementations§
impl Freeze for CreateChannelInputBuilder
impl RefUnwindSafe for CreateChannelInputBuilder
impl Send for CreateChannelInputBuilder
impl Sync for CreateChannelInputBuilder
impl Unpin for CreateChannelInputBuilder
impl UnwindSafe for CreateChannelInputBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more