aws_sdk_chatbot/operation/create_chime_webhook_configuration/
builders.rs1pub use crate::operation::create_chime_webhook_configuration::_create_chime_webhook_configuration_output::CreateChimeWebhookConfigurationOutputBuilder;
3
4pub use crate::operation::create_chime_webhook_configuration::_create_chime_webhook_configuration_input::CreateChimeWebhookConfigurationInputBuilder;
5
6impl crate::operation::create_chime_webhook_configuration::builders::CreateChimeWebhookConfigurationInputBuilder {
7 pub async fn send_with(
9 self,
10 client: &crate::Client,
11 ) -> ::std::result::Result<
12 crate::operation::create_chime_webhook_configuration::CreateChimeWebhookConfigurationOutput,
13 ::aws_smithy_runtime_api::client::result::SdkError<
14 crate::operation::create_chime_webhook_configuration::CreateChimeWebhookConfigurationError,
15 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16 >,
17 > {
18 let mut fluent_builder = client.create_chime_webhook_configuration();
19 fluent_builder.inner = self;
20 fluent_builder.send().await
21 }
22}
23#[derive(::std::clone::Clone, ::std::fmt::Debug)]
27pub struct CreateChimeWebhookConfigurationFluentBuilder {
28 handle: ::std::sync::Arc<crate::client::Handle>,
29 inner: crate::operation::create_chime_webhook_configuration::builders::CreateChimeWebhookConfigurationInputBuilder,
30 config_override: ::std::option::Option<crate::config::Builder>,
31}
32impl
33 crate::client::customize::internal::CustomizableSend<
34 crate::operation::create_chime_webhook_configuration::CreateChimeWebhookConfigurationOutput,
35 crate::operation::create_chime_webhook_configuration::CreateChimeWebhookConfigurationError,
36 > for CreateChimeWebhookConfigurationFluentBuilder
37{
38 fn send(
39 self,
40 config_override: crate::config::Builder,
41 ) -> crate::client::customize::internal::BoxFuture<
42 crate::client::customize::internal::SendResult<
43 crate::operation::create_chime_webhook_configuration::CreateChimeWebhookConfigurationOutput,
44 crate::operation::create_chime_webhook_configuration::CreateChimeWebhookConfigurationError,
45 >,
46 > {
47 ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
48 }
49}
50impl CreateChimeWebhookConfigurationFluentBuilder {
51 pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
53 Self {
54 handle,
55 inner: ::std::default::Default::default(),
56 config_override: ::std::option::Option::None,
57 }
58 }
59 pub fn as_input(&self) -> &crate::operation::create_chime_webhook_configuration::builders::CreateChimeWebhookConfigurationInputBuilder {
61 &self.inner
62 }
63 pub async fn send(
72 self,
73 ) -> ::std::result::Result<
74 crate::operation::create_chime_webhook_configuration::CreateChimeWebhookConfigurationOutput,
75 ::aws_smithy_runtime_api::client::result::SdkError<
76 crate::operation::create_chime_webhook_configuration::CreateChimeWebhookConfigurationError,
77 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
78 >,
79 > {
80 let input = self
81 .inner
82 .build()
83 .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
84 let runtime_plugins = crate::operation::create_chime_webhook_configuration::CreateChimeWebhookConfiguration::operation_runtime_plugins(
85 self.handle.runtime_plugins.clone(),
86 &self.handle.conf,
87 self.config_override,
88 );
89 crate::operation::create_chime_webhook_configuration::CreateChimeWebhookConfiguration::orchestrate(&runtime_plugins, input).await
90 }
91
92 pub fn customize(
94 self,
95 ) -> crate::client::customize::CustomizableOperation<
96 crate::operation::create_chime_webhook_configuration::CreateChimeWebhookConfigurationOutput,
97 crate::operation::create_chime_webhook_configuration::CreateChimeWebhookConfigurationError,
98 Self,
99 > {
100 crate::client::customize::CustomizableOperation::new(self)
101 }
102 pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
103 self.set_config_override(::std::option::Option::Some(config_override.into()));
104 self
105 }
106
107 pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
108 self.config_override = config_override;
109 self
110 }
111 pub fn webhook_description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
114 self.inner = self.inner.webhook_description(input.into());
115 self
116 }
117 pub fn set_webhook_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
120 self.inner = self.inner.set_webhook_description(input);
121 self
122 }
123 pub fn get_webhook_description(&self) -> &::std::option::Option<::std::string::String> {
126 self.inner.get_webhook_description()
127 }
128 pub fn webhook_url(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
130 self.inner = self.inner.webhook_url(input.into());
131 self
132 }
133 pub fn set_webhook_url(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
135 self.inner = self.inner.set_webhook_url(input);
136 self
137 }
138 pub fn get_webhook_url(&self) -> &::std::option::Option<::std::string::String> {
140 self.inner.get_webhook_url()
141 }
142 pub fn sns_topic_arns(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
149 self.inner = self.inner.sns_topic_arns(input.into());
150 self
151 }
152 pub fn set_sns_topic_arns(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
154 self.inner = self.inner.set_sns_topic_arns(input);
155 self
156 }
157 pub fn get_sns_topic_arns(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
159 self.inner.get_sns_topic_arns()
160 }
161 pub fn iam_role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
164 self.inner = self.inner.iam_role_arn(input.into());
165 self
166 }
167 pub fn set_iam_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
170 self.inner = self.inner.set_iam_role_arn(input);
171 self
172 }
173 pub fn get_iam_role_arn(&self) -> &::std::option::Option<::std::string::String> {
176 self.inner.get_iam_role_arn()
177 }
178 pub fn configuration_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
180 self.inner = self.inner.configuration_name(input.into());
181 self
182 }
183 pub fn set_configuration_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
185 self.inner = self.inner.set_configuration_name(input);
186 self
187 }
188 pub fn get_configuration_name(&self) -> &::std::option::Option<::std::string::String> {
190 self.inner.get_configuration_name()
191 }
192 pub fn logging_level(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
194 self.inner = self.inner.logging_level(input.into());
195 self
196 }
197 pub fn set_logging_level(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
199 self.inner = self.inner.set_logging_level(input);
200 self
201 }
202 pub fn get_logging_level(&self) -> &::std::option::Option<::std::string::String> {
204 self.inner.get_logging_level()
205 }
206 pub fn tags(mut self, input: crate::types::Tag) -> Self {
213 self.inner = self.inner.tags(input);
214 self
215 }
216 pub fn set_tags(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>) -> Self {
218 self.inner = self.inner.set_tags(input);
219 self
220 }
221 pub fn get_tags(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Tag>> {
223 self.inner.get_tags()
224 }
225}