#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct UpdateChannelReadMarkerOutput {
#[doc(hidden)]
pub channel_arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub sub_channel_id: std::option::Option<std::string::String>,
}
impl UpdateChannelReadMarkerOutput {
pub fn channel_arn(&self) -> std::option::Option<&str> {
self.channel_arn.as_deref()
}
pub fn sub_channel_id(&self) -> std::option::Option<&str> {
self.sub_channel_id.as_deref()
}
}
pub mod update_channel_read_marker_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) channel_arn: std::option::Option<std::string::String>,
pub(crate) sub_channel_id: std::option::Option<std::string::String>,
}
impl Builder {
pub fn channel_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.channel_arn = Some(input.into());
self
}
pub fn set_channel_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.channel_arn = input;
self
}
pub fn sub_channel_id(mut self, input: impl Into<std::string::String>) -> Self {
self.sub_channel_id = Some(input.into());
self
}
pub fn set_sub_channel_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.sub_channel_id = input;
self
}
pub fn build(self) -> crate::output::UpdateChannelReadMarkerOutput {
crate::output::UpdateChannelReadMarkerOutput {
channel_arn: self.channel_arn,
sub_channel_id: self.sub_channel_id,
}
}
}
}
impl UpdateChannelReadMarkerOutput {
pub fn builder() -> crate::output::update_channel_read_marker_output::Builder {
crate::output::update_channel_read_marker_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct UpdateChannelMessageOutput {
#[doc(hidden)]
pub channel_arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub message_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub status: std::option::Option<crate::model::ChannelMessageStatusStructure>,
#[doc(hidden)]
pub sub_channel_id: std::option::Option<std::string::String>,
}
impl UpdateChannelMessageOutput {
pub fn channel_arn(&self) -> std::option::Option<&str> {
self.channel_arn.as_deref()
}
pub fn message_id(&self) -> std::option::Option<&str> {
self.message_id.as_deref()
}
pub fn status(&self) -> std::option::Option<&crate::model::ChannelMessageStatusStructure> {
self.status.as_ref()
}
pub fn sub_channel_id(&self) -> std::option::Option<&str> {
self.sub_channel_id.as_deref()
}
}
pub mod update_channel_message_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) channel_arn: std::option::Option<std::string::String>,
pub(crate) message_id: std::option::Option<std::string::String>,
pub(crate) status: std::option::Option<crate::model::ChannelMessageStatusStructure>,
pub(crate) sub_channel_id: std::option::Option<std::string::String>,
}
impl Builder {
pub fn channel_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.channel_arn = Some(input.into());
self
}
pub fn set_channel_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.channel_arn = input;
self
}
pub fn message_id(mut self, input: impl Into<std::string::String>) -> Self {
self.message_id = Some(input.into());
self
}
pub fn set_message_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message_id = input;
self
}
pub fn status(mut self, input: crate::model::ChannelMessageStatusStructure) -> Self {
self.status = Some(input);
self
}
pub fn set_status(
mut self,
input: std::option::Option<crate::model::ChannelMessageStatusStructure>,
) -> Self {
self.status = input;
self
}
pub fn sub_channel_id(mut self, input: impl Into<std::string::String>) -> Self {
self.sub_channel_id = Some(input.into());
self
}
pub fn set_sub_channel_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.sub_channel_id = input;
self
}
pub fn build(self) -> crate::output::UpdateChannelMessageOutput {
crate::output::UpdateChannelMessageOutput {
channel_arn: self.channel_arn,
message_id: self.message_id,
status: self.status,
sub_channel_id: self.sub_channel_id,
}
}
}
}
impl UpdateChannelMessageOutput {
pub fn builder() -> crate::output::update_channel_message_output::Builder {
crate::output::update_channel_message_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct UpdateChannelFlowOutput {
#[doc(hidden)]
pub channel_flow_arn: std::option::Option<std::string::String>,
}
impl UpdateChannelFlowOutput {
pub fn channel_flow_arn(&self) -> std::option::Option<&str> {
self.channel_flow_arn.as_deref()
}
}
pub mod update_channel_flow_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) channel_flow_arn: std::option::Option<std::string::String>,
}
impl Builder {
pub fn channel_flow_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.channel_flow_arn = Some(input.into());
self
}
pub fn set_channel_flow_arn(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.channel_flow_arn = input;
self
}
pub fn build(self) -> crate::output::UpdateChannelFlowOutput {
crate::output::UpdateChannelFlowOutput {
channel_flow_arn: self.channel_flow_arn,
}
}
}
}
impl UpdateChannelFlowOutput {
pub fn builder() -> crate::output::update_channel_flow_output::Builder {
crate::output::update_channel_flow_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct UpdateChannelOutput {
#[doc(hidden)]
pub channel_arn: std::option::Option<std::string::String>,
}
impl UpdateChannelOutput {
pub fn channel_arn(&self) -> std::option::Option<&str> {
self.channel_arn.as_deref()
}
}
pub mod update_channel_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) channel_arn: std::option::Option<std::string::String>,
}
impl Builder {
pub fn channel_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.channel_arn = Some(input.into());
self
}
pub fn set_channel_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.channel_arn = input;
self
}
pub fn build(self) -> crate::output::UpdateChannelOutput {
crate::output::UpdateChannelOutput {
channel_arn: self.channel_arn,
}
}
}
}
impl UpdateChannelOutput {
pub fn builder() -> crate::output::update_channel_output::Builder {
crate::output::update_channel_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct UntagResourceOutput {}
pub mod untag_resource_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
pub fn build(self) -> crate::output::UntagResourceOutput {
crate::output::UntagResourceOutput {}
}
}
}
impl UntagResourceOutput {
pub fn builder() -> crate::output::untag_resource_output::Builder {
crate::output::untag_resource_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct TagResourceOutput {}
pub mod tag_resource_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
pub fn build(self) -> crate::output::TagResourceOutput {
crate::output::TagResourceOutput {}
}
}
}
impl TagResourceOutput {
pub fn builder() -> crate::output::tag_resource_output::Builder {
crate::output::tag_resource_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct SendChannelMessageOutput {
#[doc(hidden)]
pub channel_arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub message_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub status: std::option::Option<crate::model::ChannelMessageStatusStructure>,
#[doc(hidden)]
pub sub_channel_id: std::option::Option<std::string::String>,
}
impl SendChannelMessageOutput {
pub fn channel_arn(&self) -> std::option::Option<&str> {
self.channel_arn.as_deref()
}
pub fn message_id(&self) -> std::option::Option<&str> {
self.message_id.as_deref()
}
pub fn status(&self) -> std::option::Option<&crate::model::ChannelMessageStatusStructure> {
self.status.as_ref()
}
pub fn sub_channel_id(&self) -> std::option::Option<&str> {
self.sub_channel_id.as_deref()
}
}
pub mod send_channel_message_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) channel_arn: std::option::Option<std::string::String>,
pub(crate) message_id: std::option::Option<std::string::String>,
pub(crate) status: std::option::Option<crate::model::ChannelMessageStatusStructure>,
pub(crate) sub_channel_id: std::option::Option<std::string::String>,
}
impl Builder {
pub fn channel_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.channel_arn = Some(input.into());
self
}
pub fn set_channel_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.channel_arn = input;
self
}
pub fn message_id(mut self, input: impl Into<std::string::String>) -> Self {
self.message_id = Some(input.into());
self
}
pub fn set_message_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message_id = input;
self
}
pub fn status(mut self, input: crate::model::ChannelMessageStatusStructure) -> Self {
self.status = Some(input);
self
}
pub fn set_status(
mut self,
input: std::option::Option<crate::model::ChannelMessageStatusStructure>,
) -> Self {
self.status = input;
self
}
pub fn sub_channel_id(mut self, input: impl Into<std::string::String>) -> Self {
self.sub_channel_id = Some(input.into());
self
}
pub fn set_sub_channel_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.sub_channel_id = input;
self
}
pub fn build(self) -> crate::output::SendChannelMessageOutput {
crate::output::SendChannelMessageOutput {
channel_arn: self.channel_arn,
message_id: self.message_id,
status: self.status,
sub_channel_id: self.sub_channel_id,
}
}
}
}
impl SendChannelMessageOutput {
pub fn builder() -> crate::output::send_channel_message_output::Builder {
crate::output::send_channel_message_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct SearchChannelsOutput {
#[doc(hidden)]
pub channels: std::option::Option<std::vec::Vec<crate::model::ChannelSummary>>,
#[doc(hidden)]
pub next_token: std::option::Option<std::string::String>,
}
impl SearchChannelsOutput {
pub fn channels(&self) -> std::option::Option<&[crate::model::ChannelSummary]> {
self.channels.as_deref()
}
pub fn next_token(&self) -> std::option::Option<&str> {
self.next_token.as_deref()
}
}
impl std::fmt::Debug for SearchChannelsOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("SearchChannelsOutput");
formatter.field("channels", &self.channels);
formatter.field("next_token", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
pub mod search_channels_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default)]
pub struct Builder {
pub(crate) channels: std::option::Option<std::vec::Vec<crate::model::ChannelSummary>>,
pub(crate) next_token: std::option::Option<std::string::String>,
}
impl Builder {
pub fn channels(mut self, input: crate::model::ChannelSummary) -> Self {
let mut v = self.channels.unwrap_or_default();
v.push(input);
self.channels = Some(v);
self
}
pub fn set_channels(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::ChannelSummary>>,
) -> Self {
self.channels = input;
self
}
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.next_token = Some(input.into());
self
}
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.next_token = input;
self
}
pub fn build(self) -> crate::output::SearchChannelsOutput {
crate::output::SearchChannelsOutput {
channels: self.channels,
next_token: self.next_token,
}
}
}
impl std::fmt::Debug for Builder {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("Builder");
formatter.field("channels", &self.channels);
formatter.field("next_token", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
}
impl SearchChannelsOutput {
pub fn builder() -> crate::output::search_channels_output::Builder {
crate::output::search_channels_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct RedactChannelMessageOutput {
#[doc(hidden)]
pub channel_arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub message_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub sub_channel_id: std::option::Option<std::string::String>,
}
impl RedactChannelMessageOutput {
pub fn channel_arn(&self) -> std::option::Option<&str> {
self.channel_arn.as_deref()
}
pub fn message_id(&self) -> std::option::Option<&str> {
self.message_id.as_deref()
}
pub fn sub_channel_id(&self) -> std::option::Option<&str> {
self.sub_channel_id.as_deref()
}
}
pub mod redact_channel_message_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) channel_arn: std::option::Option<std::string::String>,
pub(crate) message_id: std::option::Option<std::string::String>,
pub(crate) sub_channel_id: std::option::Option<std::string::String>,
}
impl Builder {
pub fn channel_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.channel_arn = Some(input.into());
self
}
pub fn set_channel_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.channel_arn = input;
self
}
pub fn message_id(mut self, input: impl Into<std::string::String>) -> Self {
self.message_id = Some(input.into());
self
}
pub fn set_message_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message_id = input;
self
}
pub fn sub_channel_id(mut self, input: impl Into<std::string::String>) -> Self {
self.sub_channel_id = Some(input.into());
self
}
pub fn set_sub_channel_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.sub_channel_id = input;
self
}
pub fn build(self) -> crate::output::RedactChannelMessageOutput {
crate::output::RedactChannelMessageOutput {
channel_arn: self.channel_arn,
message_id: self.message_id,
sub_channel_id: self.sub_channel_id,
}
}
}
}
impl RedactChannelMessageOutput {
pub fn builder() -> crate::output::redact_channel_message_output::Builder {
crate::output::redact_channel_message_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct PutChannelMembershipPreferencesOutput {
#[doc(hidden)]
pub channel_arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub member: std::option::Option<crate::model::Identity>,
#[doc(hidden)]
pub preferences: std::option::Option<crate::model::ChannelMembershipPreferences>,
}
impl PutChannelMembershipPreferencesOutput {
pub fn channel_arn(&self) -> std::option::Option<&str> {
self.channel_arn.as_deref()
}
pub fn member(&self) -> std::option::Option<&crate::model::Identity> {
self.member.as_ref()
}
pub fn preferences(&self) -> std::option::Option<&crate::model::ChannelMembershipPreferences> {
self.preferences.as_ref()
}
}
pub mod put_channel_membership_preferences_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) channel_arn: std::option::Option<std::string::String>,
pub(crate) member: std::option::Option<crate::model::Identity>,
pub(crate) preferences: std::option::Option<crate::model::ChannelMembershipPreferences>,
}
impl Builder {
pub fn channel_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.channel_arn = Some(input.into());
self
}
pub fn set_channel_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.channel_arn = input;
self
}
pub fn member(mut self, input: crate::model::Identity) -> Self {
self.member = Some(input);
self
}
pub fn set_member(mut self, input: std::option::Option<crate::model::Identity>) -> Self {
self.member = input;
self
}
pub fn preferences(mut self, input: crate::model::ChannelMembershipPreferences) -> Self {
self.preferences = Some(input);
self
}
pub fn set_preferences(
mut self,
input: std::option::Option<crate::model::ChannelMembershipPreferences>,
) -> Self {
self.preferences = input;
self
}
pub fn build(self) -> crate::output::PutChannelMembershipPreferencesOutput {
crate::output::PutChannelMembershipPreferencesOutput {
channel_arn: self.channel_arn,
member: self.member,
preferences: self.preferences,
}
}
}
}
impl PutChannelMembershipPreferencesOutput {
pub fn builder() -> crate::output::put_channel_membership_preferences_output::Builder {
crate::output::put_channel_membership_preferences_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ListTagsForResourceOutput {
#[doc(hidden)]
pub tags: std::option::Option<std::vec::Vec<crate::model::Tag>>,
}
impl ListTagsForResourceOutput {
pub fn tags(&self) -> std::option::Option<&[crate::model::Tag]> {
self.tags.as_deref()
}
}
pub mod list_tags_for_resource_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) tags: std::option::Option<std::vec::Vec<crate::model::Tag>>,
}
impl Builder {
pub fn tags(mut self, input: crate::model::Tag) -> Self {
let mut v = self.tags.unwrap_or_default();
v.push(input);
self.tags = Some(v);
self
}
pub fn set_tags(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::Tag>>,
) -> Self {
self.tags = input;
self
}
pub fn build(self) -> crate::output::ListTagsForResourceOutput {
crate::output::ListTagsForResourceOutput { tags: self.tags }
}
}
}
impl ListTagsForResourceOutput {
pub fn builder() -> crate::output::list_tags_for_resource_output::Builder {
crate::output::list_tags_for_resource_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ListSubChannelsOutput {
#[doc(hidden)]
pub channel_arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub sub_channels: std::option::Option<std::vec::Vec<crate::model::SubChannelSummary>>,
#[doc(hidden)]
pub next_token: std::option::Option<std::string::String>,
}
impl ListSubChannelsOutput {
pub fn channel_arn(&self) -> std::option::Option<&str> {
self.channel_arn.as_deref()
}
pub fn sub_channels(&self) -> std::option::Option<&[crate::model::SubChannelSummary]> {
self.sub_channels.as_deref()
}
pub fn next_token(&self) -> std::option::Option<&str> {
self.next_token.as_deref()
}
}
impl std::fmt::Debug for ListSubChannelsOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ListSubChannelsOutput");
formatter.field("channel_arn", &self.channel_arn);
formatter.field("sub_channels", &self.sub_channels);
formatter.field("next_token", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
pub mod list_sub_channels_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default)]
pub struct Builder {
pub(crate) channel_arn: std::option::Option<std::string::String>,
pub(crate) sub_channels:
std::option::Option<std::vec::Vec<crate::model::SubChannelSummary>>,
pub(crate) next_token: std::option::Option<std::string::String>,
}
impl Builder {
pub fn channel_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.channel_arn = Some(input.into());
self
}
pub fn set_channel_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.channel_arn = input;
self
}
pub fn sub_channels(mut self, input: crate::model::SubChannelSummary) -> Self {
let mut v = self.sub_channels.unwrap_or_default();
v.push(input);
self.sub_channels = Some(v);
self
}
pub fn set_sub_channels(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::SubChannelSummary>>,
) -> Self {
self.sub_channels = input;
self
}
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.next_token = Some(input.into());
self
}
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.next_token = input;
self
}
pub fn build(self) -> crate::output::ListSubChannelsOutput {
crate::output::ListSubChannelsOutput {
channel_arn: self.channel_arn,
sub_channels: self.sub_channels,
next_token: self.next_token,
}
}
}
impl std::fmt::Debug for Builder {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("Builder");
formatter.field("channel_arn", &self.channel_arn);
formatter.field("sub_channels", &self.sub_channels);
formatter.field("next_token", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
}
impl ListSubChannelsOutput {
pub fn builder() -> crate::output::list_sub_channels_output::Builder {
crate::output::list_sub_channels_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ListChannelsModeratedByAppInstanceUserOutput {
#[doc(hidden)]
pub channels:
std::option::Option<std::vec::Vec<crate::model::ChannelModeratedByAppInstanceUserSummary>>,
#[doc(hidden)]
pub next_token: std::option::Option<std::string::String>,
}
impl ListChannelsModeratedByAppInstanceUserOutput {
pub fn channels(
&self,
) -> std::option::Option<&[crate::model::ChannelModeratedByAppInstanceUserSummary]> {
self.channels.as_deref()
}
pub fn next_token(&self) -> std::option::Option<&str> {
self.next_token.as_deref()
}
}
impl std::fmt::Debug for ListChannelsModeratedByAppInstanceUserOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ListChannelsModeratedByAppInstanceUserOutput");
formatter.field("channels", &self.channels);
formatter.field("next_token", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
pub mod list_channels_moderated_by_app_instance_user_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default)]
pub struct Builder {
pub(crate) channels: std::option::Option<
std::vec::Vec<crate::model::ChannelModeratedByAppInstanceUserSummary>,
>,
pub(crate) next_token: std::option::Option<std::string::String>,
}
impl Builder {
pub fn channels(
mut self,
input: crate::model::ChannelModeratedByAppInstanceUserSummary,
) -> Self {
let mut v = self.channels.unwrap_or_default();
v.push(input);
self.channels = Some(v);
self
}
pub fn set_channels(
mut self,
input: std::option::Option<
std::vec::Vec<crate::model::ChannelModeratedByAppInstanceUserSummary>,
>,
) -> Self {
self.channels = input;
self
}
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.next_token = Some(input.into());
self
}
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.next_token = input;
self
}
pub fn build(self) -> crate::output::ListChannelsModeratedByAppInstanceUserOutput {
crate::output::ListChannelsModeratedByAppInstanceUserOutput {
channels: self.channels,
next_token: self.next_token,
}
}
}
impl std::fmt::Debug for Builder {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("Builder");
formatter.field("channels", &self.channels);
formatter.field("next_token", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
}
impl ListChannelsModeratedByAppInstanceUserOutput {
pub fn builder() -> crate::output::list_channels_moderated_by_app_instance_user_output::Builder
{
crate::output::list_channels_moderated_by_app_instance_user_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ListChannelsAssociatedWithChannelFlowOutput {
#[doc(hidden)]
pub channels:
std::option::Option<std::vec::Vec<crate::model::ChannelAssociatedWithFlowSummary>>,
#[doc(hidden)]
pub next_token: std::option::Option<std::string::String>,
}
impl ListChannelsAssociatedWithChannelFlowOutput {
pub fn channels(
&self,
) -> std::option::Option<&[crate::model::ChannelAssociatedWithFlowSummary]> {
self.channels.as_deref()
}
pub fn next_token(&self) -> std::option::Option<&str> {
self.next_token.as_deref()
}
}
impl std::fmt::Debug for ListChannelsAssociatedWithChannelFlowOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ListChannelsAssociatedWithChannelFlowOutput");
formatter.field("channels", &self.channels);
formatter.field("next_token", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
pub mod list_channels_associated_with_channel_flow_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default)]
pub struct Builder {
pub(crate) channels:
std::option::Option<std::vec::Vec<crate::model::ChannelAssociatedWithFlowSummary>>,
pub(crate) next_token: std::option::Option<std::string::String>,
}
impl Builder {
pub fn channels(mut self, input: crate::model::ChannelAssociatedWithFlowSummary) -> Self {
let mut v = self.channels.unwrap_or_default();
v.push(input);
self.channels = Some(v);
self
}
pub fn set_channels(
mut self,
input: std::option::Option<
std::vec::Vec<crate::model::ChannelAssociatedWithFlowSummary>,
>,
) -> Self {
self.channels = input;
self
}
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.next_token = Some(input.into());
self
}
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.next_token = input;
self
}
pub fn build(self) -> crate::output::ListChannelsAssociatedWithChannelFlowOutput {
crate::output::ListChannelsAssociatedWithChannelFlowOutput {
channels: self.channels,
next_token: self.next_token,
}
}
}
impl std::fmt::Debug for Builder {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("Builder");
formatter.field("channels", &self.channels);
formatter.field("next_token", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
}
impl ListChannelsAssociatedWithChannelFlowOutput {
pub fn builder() -> crate::output::list_channels_associated_with_channel_flow_output::Builder {
crate::output::list_channels_associated_with_channel_flow_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ListChannelsOutput {
#[doc(hidden)]
pub channels: std::option::Option<std::vec::Vec<crate::model::ChannelSummary>>,
#[doc(hidden)]
pub next_token: std::option::Option<std::string::String>,
}
impl ListChannelsOutput {
pub fn channels(&self) -> std::option::Option<&[crate::model::ChannelSummary]> {
self.channels.as_deref()
}
pub fn next_token(&self) -> std::option::Option<&str> {
self.next_token.as_deref()
}
}
impl std::fmt::Debug for ListChannelsOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ListChannelsOutput");
formatter.field("channels", &self.channels);
formatter.field("next_token", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
pub mod list_channels_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default)]
pub struct Builder {
pub(crate) channels: std::option::Option<std::vec::Vec<crate::model::ChannelSummary>>,
pub(crate) next_token: std::option::Option<std::string::String>,
}
impl Builder {
pub fn channels(mut self, input: crate::model::ChannelSummary) -> Self {
let mut v = self.channels.unwrap_or_default();
v.push(input);
self.channels = Some(v);
self
}
pub fn set_channels(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::ChannelSummary>>,
) -> Self {
self.channels = input;
self
}
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.next_token = Some(input.into());
self
}
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.next_token = input;
self
}
pub fn build(self) -> crate::output::ListChannelsOutput {
crate::output::ListChannelsOutput {
channels: self.channels,
next_token: self.next_token,
}
}
}
impl std::fmt::Debug for Builder {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("Builder");
formatter.field("channels", &self.channels);
formatter.field("next_token", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
}
impl ListChannelsOutput {
pub fn builder() -> crate::output::list_channels_output::Builder {
crate::output::list_channels_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ListChannelModeratorsOutput {
#[doc(hidden)]
pub channel_arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub next_token: std::option::Option<std::string::String>,
#[doc(hidden)]
pub channel_moderators:
std::option::Option<std::vec::Vec<crate::model::ChannelModeratorSummary>>,
}
impl ListChannelModeratorsOutput {
pub fn channel_arn(&self) -> std::option::Option<&str> {
self.channel_arn.as_deref()
}
pub fn next_token(&self) -> std::option::Option<&str> {
self.next_token.as_deref()
}
pub fn channel_moderators(
&self,
) -> std::option::Option<&[crate::model::ChannelModeratorSummary]> {
self.channel_moderators.as_deref()
}
}
impl std::fmt::Debug for ListChannelModeratorsOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ListChannelModeratorsOutput");
formatter.field("channel_arn", &self.channel_arn);
formatter.field("next_token", &"*** Sensitive Data Redacted ***");
formatter.field("channel_moderators", &self.channel_moderators);
formatter.finish()
}
}
pub mod list_channel_moderators_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default)]
pub struct Builder {
pub(crate) channel_arn: std::option::Option<std::string::String>,
pub(crate) next_token: std::option::Option<std::string::String>,
pub(crate) channel_moderators:
std::option::Option<std::vec::Vec<crate::model::ChannelModeratorSummary>>,
}
impl Builder {
pub fn channel_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.channel_arn = Some(input.into());
self
}
pub fn set_channel_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.channel_arn = input;
self
}
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.next_token = Some(input.into());
self
}
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.next_token = input;
self
}
pub fn channel_moderators(mut self, input: crate::model::ChannelModeratorSummary) -> Self {
let mut v = self.channel_moderators.unwrap_or_default();
v.push(input);
self.channel_moderators = Some(v);
self
}
pub fn set_channel_moderators(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::ChannelModeratorSummary>>,
) -> Self {
self.channel_moderators = input;
self
}
pub fn build(self) -> crate::output::ListChannelModeratorsOutput {
crate::output::ListChannelModeratorsOutput {
channel_arn: self.channel_arn,
next_token: self.next_token,
channel_moderators: self.channel_moderators,
}
}
}
impl std::fmt::Debug for Builder {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("Builder");
formatter.field("channel_arn", &self.channel_arn);
formatter.field("next_token", &"*** Sensitive Data Redacted ***");
formatter.field("channel_moderators", &self.channel_moderators);
formatter.finish()
}
}
}
impl ListChannelModeratorsOutput {
pub fn builder() -> crate::output::list_channel_moderators_output::Builder {
crate::output::list_channel_moderators_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ListChannelMessagesOutput {
#[doc(hidden)]
pub channel_arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub next_token: std::option::Option<std::string::String>,
#[doc(hidden)]
pub channel_messages: std::option::Option<std::vec::Vec<crate::model::ChannelMessageSummary>>,
#[doc(hidden)]
pub sub_channel_id: std::option::Option<std::string::String>,
}
impl ListChannelMessagesOutput {
pub fn channel_arn(&self) -> std::option::Option<&str> {
self.channel_arn.as_deref()
}
pub fn next_token(&self) -> std::option::Option<&str> {
self.next_token.as_deref()
}
pub fn channel_messages(&self) -> std::option::Option<&[crate::model::ChannelMessageSummary]> {
self.channel_messages.as_deref()
}
pub fn sub_channel_id(&self) -> std::option::Option<&str> {
self.sub_channel_id.as_deref()
}
}
impl std::fmt::Debug for ListChannelMessagesOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ListChannelMessagesOutput");
formatter.field("channel_arn", &self.channel_arn);
formatter.field("next_token", &"*** Sensitive Data Redacted ***");
formatter.field("channel_messages", &self.channel_messages);
formatter.field("sub_channel_id", &self.sub_channel_id);
formatter.finish()
}
}
pub mod list_channel_messages_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default)]
pub struct Builder {
pub(crate) channel_arn: std::option::Option<std::string::String>,
pub(crate) next_token: std::option::Option<std::string::String>,
pub(crate) channel_messages:
std::option::Option<std::vec::Vec<crate::model::ChannelMessageSummary>>,
pub(crate) sub_channel_id: std::option::Option<std::string::String>,
}
impl Builder {
pub fn channel_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.channel_arn = Some(input.into());
self
}
pub fn set_channel_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.channel_arn = input;
self
}
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.next_token = Some(input.into());
self
}
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.next_token = input;
self
}
pub fn channel_messages(mut self, input: crate::model::ChannelMessageSummary) -> Self {
let mut v = self.channel_messages.unwrap_or_default();
v.push(input);
self.channel_messages = Some(v);
self
}
pub fn set_channel_messages(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::ChannelMessageSummary>>,
) -> Self {
self.channel_messages = input;
self
}
pub fn sub_channel_id(mut self, input: impl Into<std::string::String>) -> Self {
self.sub_channel_id = Some(input.into());
self
}
pub fn set_sub_channel_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.sub_channel_id = input;
self
}
pub fn build(self) -> crate::output::ListChannelMessagesOutput {
crate::output::ListChannelMessagesOutput {
channel_arn: self.channel_arn,
next_token: self.next_token,
channel_messages: self.channel_messages,
sub_channel_id: self.sub_channel_id,
}
}
}
impl std::fmt::Debug for Builder {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("Builder");
formatter.field("channel_arn", &self.channel_arn);
formatter.field("next_token", &"*** Sensitive Data Redacted ***");
formatter.field("channel_messages", &self.channel_messages);
formatter.field("sub_channel_id", &self.sub_channel_id);
formatter.finish()
}
}
}
impl ListChannelMessagesOutput {
pub fn builder() -> crate::output::list_channel_messages_output::Builder {
crate::output::list_channel_messages_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ListChannelMembershipsForAppInstanceUserOutput {
#[doc(hidden)]
pub channel_memberships: std::option::Option<
std::vec::Vec<crate::model::ChannelMembershipForAppInstanceUserSummary>,
>,
#[doc(hidden)]
pub next_token: std::option::Option<std::string::String>,
}
impl ListChannelMembershipsForAppInstanceUserOutput {
pub fn channel_memberships(
&self,
) -> std::option::Option<&[crate::model::ChannelMembershipForAppInstanceUserSummary]> {
self.channel_memberships.as_deref()
}
pub fn next_token(&self) -> std::option::Option<&str> {
self.next_token.as_deref()
}
}
impl std::fmt::Debug for ListChannelMembershipsForAppInstanceUserOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ListChannelMembershipsForAppInstanceUserOutput");
formatter.field("channel_memberships", &self.channel_memberships);
formatter.field("next_token", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
pub mod list_channel_memberships_for_app_instance_user_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default)]
pub struct Builder {
pub(crate) channel_memberships: std::option::Option<
std::vec::Vec<crate::model::ChannelMembershipForAppInstanceUserSummary>,
>,
pub(crate) next_token: std::option::Option<std::string::String>,
}
impl Builder {
pub fn channel_memberships(
mut self,
input: crate::model::ChannelMembershipForAppInstanceUserSummary,
) -> Self {
let mut v = self.channel_memberships.unwrap_or_default();
v.push(input);
self.channel_memberships = Some(v);
self
}
pub fn set_channel_memberships(
mut self,
input: std::option::Option<
std::vec::Vec<crate::model::ChannelMembershipForAppInstanceUserSummary>,
>,
) -> Self {
self.channel_memberships = input;
self
}
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.next_token = Some(input.into());
self
}
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.next_token = input;
self
}
pub fn build(self) -> crate::output::ListChannelMembershipsForAppInstanceUserOutput {
crate::output::ListChannelMembershipsForAppInstanceUserOutput {
channel_memberships: self.channel_memberships,
next_token: self.next_token,
}
}
}
impl std::fmt::Debug for Builder {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("Builder");
formatter.field("channel_memberships", &self.channel_memberships);
formatter.field("next_token", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
}
impl ListChannelMembershipsForAppInstanceUserOutput {
pub fn builder() -> crate::output::list_channel_memberships_for_app_instance_user_output::Builder
{
crate::output::list_channel_memberships_for_app_instance_user_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ListChannelMembershipsOutput {
#[doc(hidden)]
pub channel_arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub channel_memberships:
std::option::Option<std::vec::Vec<crate::model::ChannelMembershipSummary>>,
#[doc(hidden)]
pub next_token: std::option::Option<std::string::String>,
}
impl ListChannelMembershipsOutput {
pub fn channel_arn(&self) -> std::option::Option<&str> {
self.channel_arn.as_deref()
}
pub fn channel_memberships(
&self,
) -> std::option::Option<&[crate::model::ChannelMembershipSummary]> {
self.channel_memberships.as_deref()
}
pub fn next_token(&self) -> std::option::Option<&str> {
self.next_token.as_deref()
}
}
impl std::fmt::Debug for ListChannelMembershipsOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ListChannelMembershipsOutput");
formatter.field("channel_arn", &self.channel_arn);
formatter.field("channel_memberships", &self.channel_memberships);
formatter.field("next_token", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
pub mod list_channel_memberships_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default)]
pub struct Builder {
pub(crate) channel_arn: std::option::Option<std::string::String>,
pub(crate) channel_memberships:
std::option::Option<std::vec::Vec<crate::model::ChannelMembershipSummary>>,
pub(crate) next_token: std::option::Option<std::string::String>,
}
impl Builder {
pub fn channel_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.channel_arn = Some(input.into());
self
}
pub fn set_channel_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.channel_arn = input;
self
}
pub fn channel_memberships(
mut self,
input: crate::model::ChannelMembershipSummary,
) -> Self {
let mut v = self.channel_memberships.unwrap_or_default();
v.push(input);
self.channel_memberships = Some(v);
self
}
pub fn set_channel_memberships(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::ChannelMembershipSummary>>,
) -> Self {
self.channel_memberships = input;
self
}
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.next_token = Some(input.into());
self
}
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.next_token = input;
self
}
pub fn build(self) -> crate::output::ListChannelMembershipsOutput {
crate::output::ListChannelMembershipsOutput {
channel_arn: self.channel_arn,
channel_memberships: self.channel_memberships,
next_token: self.next_token,
}
}
}
impl std::fmt::Debug for Builder {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("Builder");
formatter.field("channel_arn", &self.channel_arn);
formatter.field("channel_memberships", &self.channel_memberships);
formatter.field("next_token", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
}
impl ListChannelMembershipsOutput {
pub fn builder() -> crate::output::list_channel_memberships_output::Builder {
crate::output::list_channel_memberships_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ListChannelFlowsOutput {
#[doc(hidden)]
pub channel_flows: std::option::Option<std::vec::Vec<crate::model::ChannelFlowSummary>>,
#[doc(hidden)]
pub next_token: std::option::Option<std::string::String>,
}
impl ListChannelFlowsOutput {
pub fn channel_flows(&self) -> std::option::Option<&[crate::model::ChannelFlowSummary]> {
self.channel_flows.as_deref()
}
pub fn next_token(&self) -> std::option::Option<&str> {
self.next_token.as_deref()
}
}
impl std::fmt::Debug for ListChannelFlowsOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ListChannelFlowsOutput");
formatter.field("channel_flows", &self.channel_flows);
formatter.field("next_token", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
pub mod list_channel_flows_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default)]
pub struct Builder {
pub(crate) channel_flows:
std::option::Option<std::vec::Vec<crate::model::ChannelFlowSummary>>,
pub(crate) next_token: std::option::Option<std::string::String>,
}
impl Builder {
pub fn channel_flows(mut self, input: crate::model::ChannelFlowSummary) -> Self {
let mut v = self.channel_flows.unwrap_or_default();
v.push(input);
self.channel_flows = Some(v);
self
}
pub fn set_channel_flows(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::ChannelFlowSummary>>,
) -> Self {
self.channel_flows = input;
self
}
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.next_token = Some(input.into());
self
}
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.next_token = input;
self
}
pub fn build(self) -> crate::output::ListChannelFlowsOutput {
crate::output::ListChannelFlowsOutput {
channel_flows: self.channel_flows,
next_token: self.next_token,
}
}
}
impl std::fmt::Debug for Builder {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("Builder");
formatter.field("channel_flows", &self.channel_flows);
formatter.field("next_token", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
}
impl ListChannelFlowsOutput {
pub fn builder() -> crate::output::list_channel_flows_output::Builder {
crate::output::list_channel_flows_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ListChannelBansOutput {
#[doc(hidden)]
pub channel_arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub next_token: std::option::Option<std::string::String>,
#[doc(hidden)]
pub channel_bans: std::option::Option<std::vec::Vec<crate::model::ChannelBanSummary>>,
}
impl ListChannelBansOutput {
pub fn channel_arn(&self) -> std::option::Option<&str> {
self.channel_arn.as_deref()
}
pub fn next_token(&self) -> std::option::Option<&str> {
self.next_token.as_deref()
}
pub fn channel_bans(&self) -> std::option::Option<&[crate::model::ChannelBanSummary]> {
self.channel_bans.as_deref()
}
}
impl std::fmt::Debug for ListChannelBansOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ListChannelBansOutput");
formatter.field("channel_arn", &self.channel_arn);
formatter.field("next_token", &"*** Sensitive Data Redacted ***");
formatter.field("channel_bans", &self.channel_bans);
formatter.finish()
}
}
pub mod list_channel_bans_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default)]
pub struct Builder {
pub(crate) channel_arn: std::option::Option<std::string::String>,
pub(crate) next_token: std::option::Option<std::string::String>,
pub(crate) channel_bans:
std::option::Option<std::vec::Vec<crate::model::ChannelBanSummary>>,
}
impl Builder {
pub fn channel_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.channel_arn = Some(input.into());
self
}
pub fn set_channel_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.channel_arn = input;
self
}
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.next_token = Some(input.into());
self
}
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.next_token = input;
self
}
pub fn channel_bans(mut self, input: crate::model::ChannelBanSummary) -> Self {
let mut v = self.channel_bans.unwrap_or_default();
v.push(input);
self.channel_bans = Some(v);
self
}
pub fn set_channel_bans(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::ChannelBanSummary>>,
) -> Self {
self.channel_bans = input;
self
}
pub fn build(self) -> crate::output::ListChannelBansOutput {
crate::output::ListChannelBansOutput {
channel_arn: self.channel_arn,
next_token: self.next_token,
channel_bans: self.channel_bans,
}
}
}
impl std::fmt::Debug for Builder {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("Builder");
formatter.field("channel_arn", &self.channel_arn);
formatter.field("next_token", &"*** Sensitive Data Redacted ***");
formatter.field("channel_bans", &self.channel_bans);
formatter.finish()
}
}
}
impl ListChannelBansOutput {
pub fn builder() -> crate::output::list_channel_bans_output::Builder {
crate::output::list_channel_bans_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GetMessagingSessionEndpointOutput {
#[doc(hidden)]
pub endpoint: std::option::Option<crate::model::MessagingSessionEndpoint>,
}
impl GetMessagingSessionEndpointOutput {
pub fn endpoint(&self) -> std::option::Option<&crate::model::MessagingSessionEndpoint> {
self.endpoint.as_ref()
}
}
pub mod get_messaging_session_endpoint_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) endpoint: std::option::Option<crate::model::MessagingSessionEndpoint>,
}
impl Builder {
pub fn endpoint(mut self, input: crate::model::MessagingSessionEndpoint) -> Self {
self.endpoint = Some(input);
self
}
pub fn set_endpoint(
mut self,
input: std::option::Option<crate::model::MessagingSessionEndpoint>,
) -> Self {
self.endpoint = input;
self
}
pub fn build(self) -> crate::output::GetMessagingSessionEndpointOutput {
crate::output::GetMessagingSessionEndpointOutput {
endpoint: self.endpoint,
}
}
}
}
impl GetMessagingSessionEndpointOutput {
pub fn builder() -> crate::output::get_messaging_session_endpoint_output::Builder {
crate::output::get_messaging_session_endpoint_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GetChannelMessageStatusOutput {
#[doc(hidden)]
pub status: std::option::Option<crate::model::ChannelMessageStatusStructure>,
}
impl GetChannelMessageStatusOutput {
pub fn status(&self) -> std::option::Option<&crate::model::ChannelMessageStatusStructure> {
self.status.as_ref()
}
}
pub mod get_channel_message_status_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) status: std::option::Option<crate::model::ChannelMessageStatusStructure>,
}
impl Builder {
pub fn status(mut self, input: crate::model::ChannelMessageStatusStructure) -> Self {
self.status = Some(input);
self
}
pub fn set_status(
mut self,
input: std::option::Option<crate::model::ChannelMessageStatusStructure>,
) -> Self {
self.status = input;
self
}
pub fn build(self) -> crate::output::GetChannelMessageStatusOutput {
crate::output::GetChannelMessageStatusOutput {
status: self.status,
}
}
}
}
impl GetChannelMessageStatusOutput {
pub fn builder() -> crate::output::get_channel_message_status_output::Builder {
crate::output::get_channel_message_status_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GetChannelMessageOutput {
#[doc(hidden)]
pub channel_message: std::option::Option<crate::model::ChannelMessage>,
}
impl GetChannelMessageOutput {
pub fn channel_message(&self) -> std::option::Option<&crate::model::ChannelMessage> {
self.channel_message.as_ref()
}
}
pub mod get_channel_message_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) channel_message: std::option::Option<crate::model::ChannelMessage>,
}
impl Builder {
pub fn channel_message(mut self, input: crate::model::ChannelMessage) -> Self {
self.channel_message = Some(input);
self
}
pub fn set_channel_message(
mut self,
input: std::option::Option<crate::model::ChannelMessage>,
) -> Self {
self.channel_message = input;
self
}
pub fn build(self) -> crate::output::GetChannelMessageOutput {
crate::output::GetChannelMessageOutput {
channel_message: self.channel_message,
}
}
}
}
impl GetChannelMessageOutput {
pub fn builder() -> crate::output::get_channel_message_output::Builder {
crate::output::get_channel_message_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GetChannelMembershipPreferencesOutput {
#[doc(hidden)]
pub channel_arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub member: std::option::Option<crate::model::Identity>,
#[doc(hidden)]
pub preferences: std::option::Option<crate::model::ChannelMembershipPreferences>,
}
impl GetChannelMembershipPreferencesOutput {
pub fn channel_arn(&self) -> std::option::Option<&str> {
self.channel_arn.as_deref()
}
pub fn member(&self) -> std::option::Option<&crate::model::Identity> {
self.member.as_ref()
}
pub fn preferences(&self) -> std::option::Option<&crate::model::ChannelMembershipPreferences> {
self.preferences.as_ref()
}
}
pub mod get_channel_membership_preferences_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) channel_arn: std::option::Option<std::string::String>,
pub(crate) member: std::option::Option<crate::model::Identity>,
pub(crate) preferences: std::option::Option<crate::model::ChannelMembershipPreferences>,
}
impl Builder {
pub fn channel_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.channel_arn = Some(input.into());
self
}
pub fn set_channel_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.channel_arn = input;
self
}
pub fn member(mut self, input: crate::model::Identity) -> Self {
self.member = Some(input);
self
}
pub fn set_member(mut self, input: std::option::Option<crate::model::Identity>) -> Self {
self.member = input;
self
}
pub fn preferences(mut self, input: crate::model::ChannelMembershipPreferences) -> Self {
self.preferences = Some(input);
self
}
pub fn set_preferences(
mut self,
input: std::option::Option<crate::model::ChannelMembershipPreferences>,
) -> Self {
self.preferences = input;
self
}
pub fn build(self) -> crate::output::GetChannelMembershipPreferencesOutput {
crate::output::GetChannelMembershipPreferencesOutput {
channel_arn: self.channel_arn,
member: self.member,
preferences: self.preferences,
}
}
}
}
impl GetChannelMembershipPreferencesOutput {
pub fn builder() -> crate::output::get_channel_membership_preferences_output::Builder {
crate::output::get_channel_membership_preferences_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DisassociateChannelFlowOutput {}
pub mod disassociate_channel_flow_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
pub fn build(self) -> crate::output::DisassociateChannelFlowOutput {
crate::output::DisassociateChannelFlowOutput {}
}
}
}
impl DisassociateChannelFlowOutput {
pub fn builder() -> crate::output::disassociate_channel_flow_output::Builder {
crate::output::disassociate_channel_flow_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DescribeChannelModeratorOutput {
#[doc(hidden)]
pub channel_moderator: std::option::Option<crate::model::ChannelModerator>,
}
impl DescribeChannelModeratorOutput {
pub fn channel_moderator(&self) -> std::option::Option<&crate::model::ChannelModerator> {
self.channel_moderator.as_ref()
}
}
pub mod describe_channel_moderator_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) channel_moderator: std::option::Option<crate::model::ChannelModerator>,
}
impl Builder {
pub fn channel_moderator(mut self, input: crate::model::ChannelModerator) -> Self {
self.channel_moderator = Some(input);
self
}
pub fn set_channel_moderator(
mut self,
input: std::option::Option<crate::model::ChannelModerator>,
) -> Self {
self.channel_moderator = input;
self
}
pub fn build(self) -> crate::output::DescribeChannelModeratorOutput {
crate::output::DescribeChannelModeratorOutput {
channel_moderator: self.channel_moderator,
}
}
}
}
impl DescribeChannelModeratorOutput {
pub fn builder() -> crate::output::describe_channel_moderator_output::Builder {
crate::output::describe_channel_moderator_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DescribeChannelModeratedByAppInstanceUserOutput {
#[doc(hidden)]
pub channel: std::option::Option<crate::model::ChannelModeratedByAppInstanceUserSummary>,
}
impl DescribeChannelModeratedByAppInstanceUserOutput {
pub fn channel(
&self,
) -> std::option::Option<&crate::model::ChannelModeratedByAppInstanceUserSummary> {
self.channel.as_ref()
}
}
pub mod describe_channel_moderated_by_app_instance_user_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) channel:
std::option::Option<crate::model::ChannelModeratedByAppInstanceUserSummary>,
}
impl Builder {
pub fn channel(
mut self,
input: crate::model::ChannelModeratedByAppInstanceUserSummary,
) -> Self {
self.channel = Some(input);
self
}
pub fn set_channel(
mut self,
input: std::option::Option<crate::model::ChannelModeratedByAppInstanceUserSummary>,
) -> Self {
self.channel = input;
self
}
pub fn build(self) -> crate::output::DescribeChannelModeratedByAppInstanceUserOutput {
crate::output::DescribeChannelModeratedByAppInstanceUserOutput {
channel: self.channel,
}
}
}
}
impl DescribeChannelModeratedByAppInstanceUserOutput {
pub fn builder(
) -> crate::output::describe_channel_moderated_by_app_instance_user_output::Builder {
crate::output::describe_channel_moderated_by_app_instance_user_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DescribeChannelMembershipForAppInstanceUserOutput {
#[doc(hidden)]
pub channel_membership:
std::option::Option<crate::model::ChannelMembershipForAppInstanceUserSummary>,
}
impl DescribeChannelMembershipForAppInstanceUserOutput {
pub fn channel_membership(
&self,
) -> std::option::Option<&crate::model::ChannelMembershipForAppInstanceUserSummary> {
self.channel_membership.as_ref()
}
}
pub mod describe_channel_membership_for_app_instance_user_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) channel_membership:
std::option::Option<crate::model::ChannelMembershipForAppInstanceUserSummary>,
}
impl Builder {
pub fn channel_membership(
mut self,
input: crate::model::ChannelMembershipForAppInstanceUserSummary,
) -> Self {
self.channel_membership = Some(input);
self
}
pub fn set_channel_membership(
mut self,
input: std::option::Option<crate::model::ChannelMembershipForAppInstanceUserSummary>,
) -> Self {
self.channel_membership = input;
self
}
pub fn build(self) -> crate::output::DescribeChannelMembershipForAppInstanceUserOutput {
crate::output::DescribeChannelMembershipForAppInstanceUserOutput {
channel_membership: self.channel_membership,
}
}
}
}
impl DescribeChannelMembershipForAppInstanceUserOutput {
pub fn builder(
) -> crate::output::describe_channel_membership_for_app_instance_user_output::Builder {
crate::output::describe_channel_membership_for_app_instance_user_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DescribeChannelMembershipOutput {
#[doc(hidden)]
pub channel_membership: std::option::Option<crate::model::ChannelMembership>,
}
impl DescribeChannelMembershipOutput {
pub fn channel_membership(&self) -> std::option::Option<&crate::model::ChannelMembership> {
self.channel_membership.as_ref()
}
}
pub mod describe_channel_membership_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) channel_membership: std::option::Option<crate::model::ChannelMembership>,
}
impl Builder {
pub fn channel_membership(mut self, input: crate::model::ChannelMembership) -> Self {
self.channel_membership = Some(input);
self
}
pub fn set_channel_membership(
mut self,
input: std::option::Option<crate::model::ChannelMembership>,
) -> Self {
self.channel_membership = input;
self
}
pub fn build(self) -> crate::output::DescribeChannelMembershipOutput {
crate::output::DescribeChannelMembershipOutput {
channel_membership: self.channel_membership,
}
}
}
}
impl DescribeChannelMembershipOutput {
pub fn builder() -> crate::output::describe_channel_membership_output::Builder {
crate::output::describe_channel_membership_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DescribeChannelFlowOutput {
#[doc(hidden)]
pub channel_flow: std::option::Option<crate::model::ChannelFlow>,
}
impl DescribeChannelFlowOutput {
pub fn channel_flow(&self) -> std::option::Option<&crate::model::ChannelFlow> {
self.channel_flow.as_ref()
}
}
pub mod describe_channel_flow_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) channel_flow: std::option::Option<crate::model::ChannelFlow>,
}
impl Builder {
pub fn channel_flow(mut self, input: crate::model::ChannelFlow) -> Self {
self.channel_flow = Some(input);
self
}
pub fn set_channel_flow(
mut self,
input: std::option::Option<crate::model::ChannelFlow>,
) -> Self {
self.channel_flow = input;
self
}
pub fn build(self) -> crate::output::DescribeChannelFlowOutput {
crate::output::DescribeChannelFlowOutput {
channel_flow: self.channel_flow,
}
}
}
}
impl DescribeChannelFlowOutput {
pub fn builder() -> crate::output::describe_channel_flow_output::Builder {
crate::output::describe_channel_flow_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DescribeChannelBanOutput {
#[doc(hidden)]
pub channel_ban: std::option::Option<crate::model::ChannelBan>,
}
impl DescribeChannelBanOutput {
pub fn channel_ban(&self) -> std::option::Option<&crate::model::ChannelBan> {
self.channel_ban.as_ref()
}
}
pub mod describe_channel_ban_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) channel_ban: std::option::Option<crate::model::ChannelBan>,
}
impl Builder {
pub fn channel_ban(mut self, input: crate::model::ChannelBan) -> Self {
self.channel_ban = Some(input);
self
}
pub fn set_channel_ban(
mut self,
input: std::option::Option<crate::model::ChannelBan>,
) -> Self {
self.channel_ban = input;
self
}
pub fn build(self) -> crate::output::DescribeChannelBanOutput {
crate::output::DescribeChannelBanOutput {
channel_ban: self.channel_ban,
}
}
}
}
impl DescribeChannelBanOutput {
pub fn builder() -> crate::output::describe_channel_ban_output::Builder {
crate::output::describe_channel_ban_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DescribeChannelOutput {
#[doc(hidden)]
pub channel: std::option::Option<crate::model::Channel>,
}
impl DescribeChannelOutput {
pub fn channel(&self) -> std::option::Option<&crate::model::Channel> {
self.channel.as_ref()
}
}
pub mod describe_channel_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) channel: std::option::Option<crate::model::Channel>,
}
impl Builder {
pub fn channel(mut self, input: crate::model::Channel) -> Self {
self.channel = Some(input);
self
}
pub fn set_channel(mut self, input: std::option::Option<crate::model::Channel>) -> Self {
self.channel = input;
self
}
pub fn build(self) -> crate::output::DescribeChannelOutput {
crate::output::DescribeChannelOutput {
channel: self.channel,
}
}
}
}
impl DescribeChannelOutput {
pub fn builder() -> crate::output::describe_channel_output::Builder {
crate::output::describe_channel_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeleteChannelModeratorOutput {}
pub mod delete_channel_moderator_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
pub fn build(self) -> crate::output::DeleteChannelModeratorOutput {
crate::output::DeleteChannelModeratorOutput {}
}
}
}
impl DeleteChannelModeratorOutput {
pub fn builder() -> crate::output::delete_channel_moderator_output::Builder {
crate::output::delete_channel_moderator_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeleteChannelMessageOutput {}
pub mod delete_channel_message_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
pub fn build(self) -> crate::output::DeleteChannelMessageOutput {
crate::output::DeleteChannelMessageOutput {}
}
}
}
impl DeleteChannelMessageOutput {
pub fn builder() -> crate::output::delete_channel_message_output::Builder {
crate::output::delete_channel_message_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeleteChannelMembershipOutput {}
pub mod delete_channel_membership_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
pub fn build(self) -> crate::output::DeleteChannelMembershipOutput {
crate::output::DeleteChannelMembershipOutput {}
}
}
}
impl DeleteChannelMembershipOutput {
pub fn builder() -> crate::output::delete_channel_membership_output::Builder {
crate::output::delete_channel_membership_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeleteChannelFlowOutput {}
pub mod delete_channel_flow_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
pub fn build(self) -> crate::output::DeleteChannelFlowOutput {
crate::output::DeleteChannelFlowOutput {}
}
}
}
impl DeleteChannelFlowOutput {
pub fn builder() -> crate::output::delete_channel_flow_output::Builder {
crate::output::delete_channel_flow_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeleteChannelBanOutput {}
pub mod delete_channel_ban_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
pub fn build(self) -> crate::output::DeleteChannelBanOutput {
crate::output::DeleteChannelBanOutput {}
}
}
}
impl DeleteChannelBanOutput {
pub fn builder() -> crate::output::delete_channel_ban_output::Builder {
crate::output::delete_channel_ban_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeleteChannelOutput {}
pub mod delete_channel_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
pub fn build(self) -> crate::output::DeleteChannelOutput {
crate::output::DeleteChannelOutput {}
}
}
}
impl DeleteChannelOutput {
pub fn builder() -> crate::output::delete_channel_output::Builder {
crate::output::delete_channel_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct CreateChannelModeratorOutput {
#[doc(hidden)]
pub channel_arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub channel_moderator: std::option::Option<crate::model::Identity>,
}
impl CreateChannelModeratorOutput {
pub fn channel_arn(&self) -> std::option::Option<&str> {
self.channel_arn.as_deref()
}
pub fn channel_moderator(&self) -> std::option::Option<&crate::model::Identity> {
self.channel_moderator.as_ref()
}
}
pub mod create_channel_moderator_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) channel_arn: std::option::Option<std::string::String>,
pub(crate) channel_moderator: std::option::Option<crate::model::Identity>,
}
impl Builder {
pub fn channel_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.channel_arn = Some(input.into());
self
}
pub fn set_channel_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.channel_arn = input;
self
}
pub fn channel_moderator(mut self, input: crate::model::Identity) -> Self {
self.channel_moderator = Some(input);
self
}
pub fn set_channel_moderator(
mut self,
input: std::option::Option<crate::model::Identity>,
) -> Self {
self.channel_moderator = input;
self
}
pub fn build(self) -> crate::output::CreateChannelModeratorOutput {
crate::output::CreateChannelModeratorOutput {
channel_arn: self.channel_arn,
channel_moderator: self.channel_moderator,
}
}
}
}
impl CreateChannelModeratorOutput {
pub fn builder() -> crate::output::create_channel_moderator_output::Builder {
crate::output::create_channel_moderator_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct CreateChannelMembershipOutput {
#[doc(hidden)]
pub channel_arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub member: std::option::Option<crate::model::Identity>,
#[doc(hidden)]
pub sub_channel_id: std::option::Option<std::string::String>,
}
impl CreateChannelMembershipOutput {
pub fn channel_arn(&self) -> std::option::Option<&str> {
self.channel_arn.as_deref()
}
pub fn member(&self) -> std::option::Option<&crate::model::Identity> {
self.member.as_ref()
}
pub fn sub_channel_id(&self) -> std::option::Option<&str> {
self.sub_channel_id.as_deref()
}
}
pub mod create_channel_membership_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) channel_arn: std::option::Option<std::string::String>,
pub(crate) member: std::option::Option<crate::model::Identity>,
pub(crate) sub_channel_id: std::option::Option<std::string::String>,
}
impl Builder {
pub fn channel_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.channel_arn = Some(input.into());
self
}
pub fn set_channel_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.channel_arn = input;
self
}
pub fn member(mut self, input: crate::model::Identity) -> Self {
self.member = Some(input);
self
}
pub fn set_member(mut self, input: std::option::Option<crate::model::Identity>) -> Self {
self.member = input;
self
}
pub fn sub_channel_id(mut self, input: impl Into<std::string::String>) -> Self {
self.sub_channel_id = Some(input.into());
self
}
pub fn set_sub_channel_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.sub_channel_id = input;
self
}
pub fn build(self) -> crate::output::CreateChannelMembershipOutput {
crate::output::CreateChannelMembershipOutput {
channel_arn: self.channel_arn,
member: self.member,
sub_channel_id: self.sub_channel_id,
}
}
}
}
impl CreateChannelMembershipOutput {
pub fn builder() -> crate::output::create_channel_membership_output::Builder {
crate::output::create_channel_membership_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct CreateChannelFlowOutput {
#[doc(hidden)]
pub channel_flow_arn: std::option::Option<std::string::String>,
}
impl CreateChannelFlowOutput {
pub fn channel_flow_arn(&self) -> std::option::Option<&str> {
self.channel_flow_arn.as_deref()
}
}
pub mod create_channel_flow_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) channel_flow_arn: std::option::Option<std::string::String>,
}
impl Builder {
pub fn channel_flow_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.channel_flow_arn = Some(input.into());
self
}
pub fn set_channel_flow_arn(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.channel_flow_arn = input;
self
}
pub fn build(self) -> crate::output::CreateChannelFlowOutput {
crate::output::CreateChannelFlowOutput {
channel_flow_arn: self.channel_flow_arn,
}
}
}
}
impl CreateChannelFlowOutput {
pub fn builder() -> crate::output::create_channel_flow_output::Builder {
crate::output::create_channel_flow_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct CreateChannelBanOutput {
#[doc(hidden)]
pub channel_arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub member: std::option::Option<crate::model::Identity>,
}
impl CreateChannelBanOutput {
pub fn channel_arn(&self) -> std::option::Option<&str> {
self.channel_arn.as_deref()
}
pub fn member(&self) -> std::option::Option<&crate::model::Identity> {
self.member.as_ref()
}
}
pub mod create_channel_ban_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) channel_arn: std::option::Option<std::string::String>,
pub(crate) member: std::option::Option<crate::model::Identity>,
}
impl Builder {
pub fn channel_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.channel_arn = Some(input.into());
self
}
pub fn set_channel_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.channel_arn = input;
self
}
pub fn member(mut self, input: crate::model::Identity) -> Self {
self.member = Some(input);
self
}
pub fn set_member(mut self, input: std::option::Option<crate::model::Identity>) -> Self {
self.member = input;
self
}
pub fn build(self) -> crate::output::CreateChannelBanOutput {
crate::output::CreateChannelBanOutput {
channel_arn: self.channel_arn,
member: self.member,
}
}
}
}
impl CreateChannelBanOutput {
pub fn builder() -> crate::output::create_channel_ban_output::Builder {
crate::output::create_channel_ban_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct CreateChannelOutput {
#[doc(hidden)]
pub channel_arn: std::option::Option<std::string::String>,
}
impl CreateChannelOutput {
pub fn channel_arn(&self) -> std::option::Option<&str> {
self.channel_arn.as_deref()
}
}
pub mod create_channel_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) channel_arn: std::option::Option<std::string::String>,
}
impl Builder {
pub fn channel_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.channel_arn = Some(input.into());
self
}
pub fn set_channel_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.channel_arn = input;
self
}
pub fn build(self) -> crate::output::CreateChannelOutput {
crate::output::CreateChannelOutput {
channel_arn: self.channel_arn,
}
}
}
}
impl CreateChannelOutput {
pub fn builder() -> crate::output::create_channel_output::Builder {
crate::output::create_channel_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ChannelFlowCallbackOutput {
#[doc(hidden)]
pub channel_arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub callback_id: std::option::Option<std::string::String>,
}
impl ChannelFlowCallbackOutput {
pub fn channel_arn(&self) -> std::option::Option<&str> {
self.channel_arn.as_deref()
}
pub fn callback_id(&self) -> std::option::Option<&str> {
self.callback_id.as_deref()
}
}
pub mod channel_flow_callback_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) channel_arn: std::option::Option<std::string::String>,
pub(crate) callback_id: std::option::Option<std::string::String>,
}
impl Builder {
pub fn channel_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.channel_arn = Some(input.into());
self
}
pub fn set_channel_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.channel_arn = input;
self
}
pub fn callback_id(mut self, input: impl Into<std::string::String>) -> Self {
self.callback_id = Some(input.into());
self
}
pub fn set_callback_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.callback_id = input;
self
}
pub fn build(self) -> crate::output::ChannelFlowCallbackOutput {
crate::output::ChannelFlowCallbackOutput {
channel_arn: self.channel_arn,
callback_id: self.callback_id,
}
}
}
}
impl ChannelFlowCallbackOutput {
pub fn builder() -> crate::output::channel_flow_callback_output::Builder {
crate::output::channel_flow_callback_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct BatchCreateChannelMembershipOutput {
#[doc(hidden)]
pub batch_channel_memberships: std::option::Option<crate::model::BatchChannelMemberships>,
#[doc(hidden)]
pub errors: std::option::Option<std::vec::Vec<crate::model::BatchCreateChannelMembershipError>>,
}
impl BatchCreateChannelMembershipOutput {
pub fn batch_channel_memberships(
&self,
) -> std::option::Option<&crate::model::BatchChannelMemberships> {
self.batch_channel_memberships.as_ref()
}
pub fn errors(
&self,
) -> std::option::Option<&[crate::model::BatchCreateChannelMembershipError]> {
self.errors.as_deref()
}
}
pub mod batch_create_channel_membership_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) batch_channel_memberships:
std::option::Option<crate::model::BatchChannelMemberships>,
pub(crate) errors:
std::option::Option<std::vec::Vec<crate::model::BatchCreateChannelMembershipError>>,
}
impl Builder {
pub fn batch_channel_memberships(
mut self,
input: crate::model::BatchChannelMemberships,
) -> Self {
self.batch_channel_memberships = Some(input);
self
}
pub fn set_batch_channel_memberships(
mut self,
input: std::option::Option<crate::model::BatchChannelMemberships>,
) -> Self {
self.batch_channel_memberships = input;
self
}
pub fn errors(mut self, input: crate::model::BatchCreateChannelMembershipError) -> Self {
let mut v = self.errors.unwrap_or_default();
v.push(input);
self.errors = Some(v);
self
}
pub fn set_errors(
mut self,
input: std::option::Option<
std::vec::Vec<crate::model::BatchCreateChannelMembershipError>,
>,
) -> Self {
self.errors = input;
self
}
pub fn build(self) -> crate::output::BatchCreateChannelMembershipOutput {
crate::output::BatchCreateChannelMembershipOutput {
batch_channel_memberships: self.batch_channel_memberships,
errors: self.errors,
}
}
}
}
impl BatchCreateChannelMembershipOutput {
pub fn builder() -> crate::output::batch_create_channel_membership_output::Builder {
crate::output::batch_create_channel_membership_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct AssociateChannelFlowOutput {}
pub mod associate_channel_flow_output {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {}
impl Builder {
pub fn build(self) -> crate::output::AssociateChannelFlowOutput {
crate::output::AssociateChannelFlowOutput {}
}
}
}
impl AssociateChannelFlowOutput {
pub fn builder() -> crate::output::associate_channel_flow_output::Builder {
crate::output::associate_channel_flow_output::Builder::default()
}
}