aws_sdk_appstream/operation/update_theme_for_stack/
builders.rs1pub use crate::operation::update_theme_for_stack::_update_theme_for_stack_output::UpdateThemeForStackOutputBuilder;
3
4pub use crate::operation::update_theme_for_stack::_update_theme_for_stack_input::UpdateThemeForStackInputBuilder;
5
6impl crate::operation::update_theme_for_stack::builders::UpdateThemeForStackInputBuilder {
7 pub async fn send_with(
9 self,
10 client: &crate::Client,
11 ) -> ::std::result::Result<
12 crate::operation::update_theme_for_stack::UpdateThemeForStackOutput,
13 ::aws_smithy_runtime_api::client::result::SdkError<
14 crate::operation::update_theme_for_stack::UpdateThemeForStackError,
15 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16 >,
17 > {
18 let mut fluent_builder = client.update_theme_for_stack();
19 fluent_builder.inner = self;
20 fluent_builder.send().await
21 }
22}
23#[derive(::std::clone::Clone, ::std::fmt::Debug)]
27pub struct UpdateThemeForStackFluentBuilder {
28 handle: ::std::sync::Arc<crate::client::Handle>,
29 inner: crate::operation::update_theme_for_stack::builders::UpdateThemeForStackInputBuilder,
30 config_override: ::std::option::Option<crate::config::Builder>,
31}
32impl
33 crate::client::customize::internal::CustomizableSend<
34 crate::operation::update_theme_for_stack::UpdateThemeForStackOutput,
35 crate::operation::update_theme_for_stack::UpdateThemeForStackError,
36 > for UpdateThemeForStackFluentBuilder
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::update_theme_for_stack::UpdateThemeForStackOutput,
44 crate::operation::update_theme_for_stack::UpdateThemeForStackError,
45 >,
46 > {
47 ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
48 }
49}
50impl UpdateThemeForStackFluentBuilder {
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::update_theme_for_stack::builders::UpdateThemeForStackInputBuilder {
61 &self.inner
62 }
63 pub async fn send(
72 self,
73 ) -> ::std::result::Result<
74 crate::operation::update_theme_for_stack::UpdateThemeForStackOutput,
75 ::aws_smithy_runtime_api::client::result::SdkError<
76 crate::operation::update_theme_for_stack::UpdateThemeForStackError,
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::update_theme_for_stack::UpdateThemeForStack::operation_runtime_plugins(
85 self.handle.runtime_plugins.clone(),
86 &self.handle.conf,
87 self.config_override,
88 );
89 crate::operation::update_theme_for_stack::UpdateThemeForStack::orchestrate(&runtime_plugins, input).await
90 }
91
92 pub fn customize(
94 self,
95 ) -> crate::client::customize::CustomizableOperation<
96 crate::operation::update_theme_for_stack::UpdateThemeForStackOutput,
97 crate::operation::update_theme_for_stack::UpdateThemeForStackError,
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 stack_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
113 self.inner = self.inner.stack_name(input.into());
114 self
115 }
116 pub fn set_stack_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
118 self.inner = self.inner.set_stack_name(input);
119 self
120 }
121 pub fn get_stack_name(&self) -> &::std::option::Option<::std::string::String> {
123 self.inner.get_stack_name()
124 }
125 pub fn footer_links(mut self, input: crate::types::ThemeFooterLink) -> Self {
132 self.inner = self.inner.footer_links(input);
133 self
134 }
135 pub fn set_footer_links(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::ThemeFooterLink>>) -> Self {
137 self.inner = self.inner.set_footer_links(input);
138 self
139 }
140 pub fn get_footer_links(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::ThemeFooterLink>> {
142 self.inner.get_footer_links()
143 }
144 pub fn title_text(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
146 self.inner = self.inner.title_text(input.into());
147 self
148 }
149 pub fn set_title_text(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
151 self.inner = self.inner.set_title_text(input);
152 self
153 }
154 pub fn get_title_text(&self) -> &::std::option::Option<::std::string::String> {
156 self.inner.get_title_text()
157 }
158 pub fn theme_styling(mut self, input: crate::types::ThemeStyling) -> Self {
160 self.inner = self.inner.theme_styling(input);
161 self
162 }
163 pub fn set_theme_styling(mut self, input: ::std::option::Option<crate::types::ThemeStyling>) -> Self {
165 self.inner = self.inner.set_theme_styling(input);
166 self
167 }
168 pub fn get_theme_styling(&self) -> &::std::option::Option<crate::types::ThemeStyling> {
170 self.inner.get_theme_styling()
171 }
172 pub fn organization_logo_s3_location(mut self, input: crate::types::S3Location) -> Self {
174 self.inner = self.inner.organization_logo_s3_location(input);
175 self
176 }
177 pub fn set_organization_logo_s3_location(mut self, input: ::std::option::Option<crate::types::S3Location>) -> Self {
179 self.inner = self.inner.set_organization_logo_s3_location(input);
180 self
181 }
182 pub fn get_organization_logo_s3_location(&self) -> &::std::option::Option<crate::types::S3Location> {
184 self.inner.get_organization_logo_s3_location()
185 }
186 pub fn favicon_s3_location(mut self, input: crate::types::S3Location) -> Self {
188 self.inner = self.inner.favicon_s3_location(input);
189 self
190 }
191 pub fn set_favicon_s3_location(mut self, input: ::std::option::Option<crate::types::S3Location>) -> Self {
193 self.inner = self.inner.set_favicon_s3_location(input);
194 self
195 }
196 pub fn get_favicon_s3_location(&self) -> &::std::option::Option<crate::types::S3Location> {
198 self.inner.get_favicon_s3_location()
199 }
200 pub fn state(mut self, input: crate::types::ThemeState) -> Self {
202 self.inner = self.inner.state(input);
203 self
204 }
205 pub fn set_state(mut self, input: ::std::option::Option<crate::types::ThemeState>) -> Self {
207 self.inner = self.inner.set_state(input);
208 self
209 }
210 pub fn get_state(&self) -> &::std::option::Option<crate::types::ThemeState> {
212 self.inner.get_state()
213 }
214 pub fn attributes_to_delete(mut self, input: crate::types::ThemeAttribute) -> Self {
221 self.inner = self.inner.attributes_to_delete(input);
222 self
223 }
224 pub fn set_attributes_to_delete(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::ThemeAttribute>>) -> Self {
226 self.inner = self.inner.set_attributes_to_delete(input);
227 self
228 }
229 pub fn get_attributes_to_delete(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::ThemeAttribute>> {
231 self.inner.get_attributes_to_delete()
232 }
233}