aws_sdk_connectcases/operation/update_template/
builders.rs1pub use crate::operation::update_template::_update_template_output::UpdateTemplateOutputBuilder;
3
4pub use crate::operation::update_template::_update_template_input::UpdateTemplateInputBuilder;
5
6impl crate::operation::update_template::builders::UpdateTemplateInputBuilder {
7 pub async fn send_with(
9 self,
10 client: &crate::Client,
11 ) -> ::std::result::Result<
12 crate::operation::update_template::UpdateTemplateOutput,
13 ::aws_smithy_runtime_api::client::result::SdkError<
14 crate::operation::update_template::UpdateTemplateError,
15 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16 >,
17 > {
18 let mut fluent_builder = client.update_template();
19 fluent_builder.inner = self;
20 fluent_builder.send().await
21 }
22}
23#[derive(::std::clone::Clone, ::std::fmt::Debug)]
38pub struct UpdateTemplateFluentBuilder {
39 handle: ::std::sync::Arc<crate::client::Handle>,
40 inner: crate::operation::update_template::builders::UpdateTemplateInputBuilder,
41 config_override: ::std::option::Option<crate::config::Builder>,
42}
43impl
44 crate::client::customize::internal::CustomizableSend<
45 crate::operation::update_template::UpdateTemplateOutput,
46 crate::operation::update_template::UpdateTemplateError,
47 > for UpdateTemplateFluentBuilder
48{
49 fn send(
50 self,
51 config_override: crate::config::Builder,
52 ) -> crate::client::customize::internal::BoxFuture<
53 crate::client::customize::internal::SendResult<
54 crate::operation::update_template::UpdateTemplateOutput,
55 crate::operation::update_template::UpdateTemplateError,
56 >,
57 > {
58 ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
59 }
60}
61impl UpdateTemplateFluentBuilder {
62 pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
64 Self {
65 handle,
66 inner: ::std::default::Default::default(),
67 config_override: ::std::option::Option::None,
68 }
69 }
70 pub fn as_input(&self) -> &crate::operation::update_template::builders::UpdateTemplateInputBuilder {
72 &self.inner
73 }
74 pub async fn send(
83 self,
84 ) -> ::std::result::Result<
85 crate::operation::update_template::UpdateTemplateOutput,
86 ::aws_smithy_runtime_api::client::result::SdkError<
87 crate::operation::update_template::UpdateTemplateError,
88 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
89 >,
90 > {
91 let input = self
92 .inner
93 .build()
94 .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
95 let runtime_plugins = crate::operation::update_template::UpdateTemplate::operation_runtime_plugins(
96 self.handle.runtime_plugins.clone(),
97 &self.handle.conf,
98 self.config_override,
99 );
100 crate::operation::update_template::UpdateTemplate::orchestrate(&runtime_plugins, input).await
101 }
102
103 pub fn customize(
105 self,
106 ) -> crate::client::customize::CustomizableOperation<
107 crate::operation::update_template::UpdateTemplateOutput,
108 crate::operation::update_template::UpdateTemplateError,
109 Self,
110 > {
111 crate::client::customize::CustomizableOperation::new(self)
112 }
113 pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
114 self.set_config_override(::std::option::Option::Some(config_override.into()));
115 self
116 }
117
118 pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
119 self.config_override = config_override;
120 self
121 }
122 pub fn domain_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
124 self.inner = self.inner.domain_id(input.into());
125 self
126 }
127 pub fn set_domain_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
129 self.inner = self.inner.set_domain_id(input);
130 self
131 }
132 pub fn get_domain_id(&self) -> &::std::option::Option<::std::string::String> {
134 self.inner.get_domain_id()
135 }
136 pub fn template_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
138 self.inner = self.inner.template_id(input.into());
139 self
140 }
141 pub fn set_template_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
143 self.inner = self.inner.set_template_id(input);
144 self
145 }
146 pub fn get_template_id(&self) -> &::std::option::Option<::std::string::String> {
148 self.inner.get_template_id()
149 }
150 pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
152 self.inner = self.inner.name(input.into());
153 self
154 }
155 pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
157 self.inner = self.inner.set_name(input);
158 self
159 }
160 pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
162 self.inner.get_name()
163 }
164 pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
166 self.inner = self.inner.description(input.into());
167 self
168 }
169 pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
171 self.inner = self.inner.set_description(input);
172 self
173 }
174 pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
176 self.inner.get_description()
177 }
178 pub fn layout_configuration(mut self, input: crate::types::LayoutConfiguration) -> Self {
180 self.inner = self.inner.layout_configuration(input);
181 self
182 }
183 pub fn set_layout_configuration(mut self, input: ::std::option::Option<crate::types::LayoutConfiguration>) -> Self {
185 self.inner = self.inner.set_layout_configuration(input);
186 self
187 }
188 pub fn get_layout_configuration(&self) -> &::std::option::Option<crate::types::LayoutConfiguration> {
190 self.inner.get_layout_configuration()
191 }
192 pub fn required_fields(mut self, input: crate::types::RequiredField) -> Self {
199 self.inner = self.inner.required_fields(input);
200 self
201 }
202 pub fn set_required_fields(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::RequiredField>>) -> Self {
204 self.inner = self.inner.set_required_fields(input);
205 self
206 }
207 pub fn get_required_fields(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::RequiredField>> {
209 self.inner.get_required_fields()
210 }
211 pub fn status(mut self, input: crate::types::TemplateStatus) -> Self {
213 self.inner = self.inner.status(input);
214 self
215 }
216 pub fn set_status(mut self, input: ::std::option::Option<crate::types::TemplateStatus>) -> Self {
218 self.inner = self.inner.set_status(input);
219 self
220 }
221 pub fn get_status(&self) -> &::std::option::Option<crate::types::TemplateStatus> {
223 self.inner.get_status()
224 }
225 pub fn rules(mut self, input: crate::types::TemplateRule) -> Self {
232 self.inner = self.inner.rules(input);
233 self
234 }
235 pub fn set_rules(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::TemplateRule>>) -> Self {
237 self.inner = self.inner.set_rules(input);
238 self
239 }
240 pub fn get_rules(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::TemplateRule>> {
242 self.inner.get_rules()
243 }
244}