pub use crate::operation::create_slack_channel_configuration::_create_slack_channel_configuration_input::CreateSlackChannelConfigurationInputBuilder;
pub use crate::operation::create_slack_channel_configuration::_create_slack_channel_configuration_output::CreateSlackChannelConfigurationOutputBuilder;
impl crate::operation::create_slack_channel_configuration::builders::CreateSlackChannelConfigurationInputBuilder {
pub async fn send_with(
self,
client: &crate::Client,
) -> ::std::result::Result<
crate::operation::create_slack_channel_configuration::CreateSlackChannelConfigurationOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::create_slack_channel_configuration::CreateSlackChannelConfigurationError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let mut fluent_builder = client.create_slack_channel_configuration();
fluent_builder.inner = self;
fluent_builder.send().await
}
}
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct CreateSlackChannelConfigurationFluentBuilder {
handle: ::std::sync::Arc<crate::client::Handle>,
inner: crate::operation::create_slack_channel_configuration::builders::CreateSlackChannelConfigurationInputBuilder,
config_override: ::std::option::Option<crate::config::Builder>,
}
impl
crate::client::customize::internal::CustomizableSend<
crate::operation::create_slack_channel_configuration::CreateSlackChannelConfigurationOutput,
crate::operation::create_slack_channel_configuration::CreateSlackChannelConfigurationError,
> for CreateSlackChannelConfigurationFluentBuilder
{
fn send(
self,
config_override: crate::config::Builder,
) -> crate::client::customize::internal::BoxFuture<
crate::client::customize::internal::SendResult<
crate::operation::create_slack_channel_configuration::CreateSlackChannelConfigurationOutput,
crate::operation::create_slack_channel_configuration::CreateSlackChannelConfigurationError,
>,
> {
::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
}
}
impl CreateSlackChannelConfigurationFluentBuilder {
pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
Self {
handle,
inner: ::std::default::Default::default(),
config_override: ::std::option::Option::None,
}
}
pub fn as_input(&self) -> &crate::operation::create_slack_channel_configuration::builders::CreateSlackChannelConfigurationInputBuilder {
&self.inner
}
pub async fn send(
self,
) -> ::std::result::Result<
crate::operation::create_slack_channel_configuration::CreateSlackChannelConfigurationOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::create_slack_channel_configuration::CreateSlackChannelConfigurationError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let input = self
.inner
.build()
.map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
let runtime_plugins = crate::operation::create_slack_channel_configuration::CreateSlackChannelConfiguration::operation_runtime_plugins(
self.handle.runtime_plugins.clone(),
&self.handle.conf,
self.config_override,
);
crate::operation::create_slack_channel_configuration::CreateSlackChannelConfiguration::orchestrate(&runtime_plugins, input).await
}
pub fn customize(
self,
) -> crate::client::customize::CustomizableOperation<
crate::operation::create_slack_channel_configuration::CreateSlackChannelConfigurationOutput,
crate::operation::create_slack_channel_configuration::CreateSlackChannelConfigurationError,
Self,
> {
crate::client::customize::CustomizableOperation::new(self)
}
pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
self.set_config_override(::std::option::Option::Some(config_override.into()));
self
}
pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
self.config_override = config_override;
self
}
pub fn team_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.team_id(input.into());
self
}
pub fn set_team_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_team_id(input);
self
}
pub fn get_team_id(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_team_id()
}
pub fn channel_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.channel_id(input.into());
self
}
pub fn set_channel_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_channel_id(input);
self
}
pub fn get_channel_id(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_channel_id()
}
pub fn channel_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.channel_name(input.into());
self
}
pub fn set_channel_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_channel_name(input);
self
}
pub fn get_channel_name(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_channel_name()
}
pub fn notify_on_create_or_reopen_case(mut self, input: bool) -> Self {
self.inner = self.inner.notify_on_create_or_reopen_case(input);
self
}
pub fn set_notify_on_create_or_reopen_case(mut self, input: ::std::option::Option<bool>) -> Self {
self.inner = self.inner.set_notify_on_create_or_reopen_case(input);
self
}
pub fn get_notify_on_create_or_reopen_case(&self) -> &::std::option::Option<bool> {
self.inner.get_notify_on_create_or_reopen_case()
}
pub fn notify_on_add_correspondence_to_case(mut self, input: bool) -> Self {
self.inner = self.inner.notify_on_add_correspondence_to_case(input);
self
}
pub fn set_notify_on_add_correspondence_to_case(mut self, input: ::std::option::Option<bool>) -> Self {
self.inner = self.inner.set_notify_on_add_correspondence_to_case(input);
self
}
pub fn get_notify_on_add_correspondence_to_case(&self) -> &::std::option::Option<bool> {
self.inner.get_notify_on_add_correspondence_to_case()
}
pub fn notify_on_resolve_case(mut self, input: bool) -> Self {
self.inner = self.inner.notify_on_resolve_case(input);
self
}
pub fn set_notify_on_resolve_case(mut self, input: ::std::option::Option<bool>) -> Self {
self.inner = self.inner.set_notify_on_resolve_case(input);
self
}
pub fn get_notify_on_resolve_case(&self) -> &::std::option::Option<bool> {
self.inner.get_notify_on_resolve_case()
}
pub fn notify_on_case_severity(mut self, input: crate::types::NotificationSeverityLevel) -> Self {
self.inner = self.inner.notify_on_case_severity(input);
self
}
pub fn set_notify_on_case_severity(mut self, input: ::std::option::Option<crate::types::NotificationSeverityLevel>) -> Self {
self.inner = self.inner.set_notify_on_case_severity(input);
self
}
pub fn get_notify_on_case_severity(&self) -> &::std::option::Option<crate::types::NotificationSeverityLevel> {
self.inner.get_notify_on_case_severity()
}
pub fn channel_role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.channel_role_arn(input.into());
self
}
pub fn set_channel_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_channel_role_arn(input);
self
}
pub fn get_channel_role_arn(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_channel_role_arn()
}
}