aws_sdk_appstream/operation/update_theme_for_stack/
builders.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub 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    /// Sends a request with this input using the given client.
8    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/// Fluent builder constructing a request to `UpdateThemeForStack`.
24///
25/// <p>Updates custom branding that customizes the appearance of the streaming application catalog page.</p>
26#[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    /// Creates a new `UpdateThemeForStackFluentBuilder`.
52    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    /// Access the UpdateThemeForStack as a reference.
60    pub fn as_input(&self) -> &crate::operation::update_theme_for_stack::builders::UpdateThemeForStackInputBuilder {
61        &self.inner
62    }
63    /// Sends the request and returns the response.
64    ///
65    /// If an error occurs, an `SdkError` will be returned with additional details that
66    /// can be matched against.
67    ///
68    /// By default, any retryable failures will be retried twice. Retry behavior
69    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
70    /// set when configuring the client.
71    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    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
93    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    /// <p>The name of the stack for the theme.</p>
112    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    /// <p>The name of the stack for the theme.</p>
117    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    /// <p>The name of the stack for the theme.</p>
122    pub fn get_stack_name(&self) -> &::std::option::Option<::std::string::String> {
123        self.inner.get_stack_name()
124    }
125    ///
126    /// Appends an item to `FooterLinks`.
127    ///
128    /// To override the contents of this collection use [`set_footer_links`](Self::set_footer_links).
129    ///
130    /// <p>The links that are displayed in the footer of the streaming application catalog page. These links are helpful resources for users, such as the organization's IT support and product marketing sites.</p>
131    pub fn footer_links(mut self, input: crate::types::ThemeFooterLink) -> Self {
132        self.inner = self.inner.footer_links(input);
133        self
134    }
135    /// <p>The links that are displayed in the footer of the streaming application catalog page. These links are helpful resources for users, such as the organization's IT support and product marketing sites.</p>
136    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    /// <p>The links that are displayed in the footer of the streaming application catalog page. These links are helpful resources for users, such as the organization's IT support and product marketing sites.</p>
141    pub fn get_footer_links(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::ThemeFooterLink>> {
142        self.inner.get_footer_links()
143    }
144    /// <p>The title that is displayed at the top of the browser tab during users' application streaming sessions.</p>
145    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    /// <p>The title that is displayed at the top of the browser tab during users' application streaming sessions.</p>
150    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    /// <p>The title that is displayed at the top of the browser tab during users' application streaming sessions.</p>
155    pub fn get_title_text(&self) -> &::std::option::Option<::std::string::String> {
156        self.inner.get_title_text()
157    }
158    /// <p>The color theme that is applied to website links, text, and buttons. These colors are also applied as accents in the background for the streaming application catalog page.</p>
159    pub fn theme_styling(mut self, input: crate::types::ThemeStyling) -> Self {
160        self.inner = self.inner.theme_styling(input);
161        self
162    }
163    /// <p>The color theme that is applied to website links, text, and buttons. These colors are also applied as accents in the background for the streaming application catalog page.</p>
164    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    /// <p>The color theme that is applied to website links, text, and buttons. These colors are also applied as accents in the background for the streaming application catalog page.</p>
169    pub fn get_theme_styling(&self) -> &::std::option::Option<crate::types::ThemeStyling> {
170        self.inner.get_theme_styling()
171    }
172    /// <p>The organization logo that appears on the streaming application catalog page.</p>
173    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    /// <p>The organization logo that appears on the streaming application catalog page.</p>
178    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    /// <p>The organization logo that appears on the streaming application catalog page.</p>
183    pub fn get_organization_logo_s3_location(&self) -> &::std::option::Option<crate::types::S3Location> {
184        self.inner.get_organization_logo_s3_location()
185    }
186    /// <p>The S3 location of the favicon. The favicon enables users to recognize their application streaming site in a browser full of tabs or bookmarks. It is displayed at the top of the browser tab for the application streaming site during users' streaming sessions.</p>
187    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    /// <p>The S3 location of the favicon. The favicon enables users to recognize their application streaming site in a browser full of tabs or bookmarks. It is displayed at the top of the browser tab for the application streaming site during users' streaming sessions.</p>
192    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    /// <p>The S3 location of the favicon. The favicon enables users to recognize their application streaming site in a browser full of tabs or bookmarks. It is displayed at the top of the browser tab for the application streaming site during users' streaming sessions.</p>
197    pub fn get_favicon_s3_location(&self) -> &::std::option::Option<crate::types::S3Location> {
198        self.inner.get_favicon_s3_location()
199    }
200    /// <p>Specifies whether custom branding should be applied to catalog page or not.</p>
201    pub fn state(mut self, input: crate::types::ThemeState) -> Self {
202        self.inner = self.inner.state(input);
203        self
204    }
205    /// <p>Specifies whether custom branding should be applied to catalog page or not.</p>
206    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    /// <p>Specifies whether custom branding should be applied to catalog page or not.</p>
211    pub fn get_state(&self) -> &::std::option::Option<crate::types::ThemeState> {
212        self.inner.get_state()
213    }
214    ///
215    /// Appends an item to `AttributesToDelete`.
216    ///
217    /// To override the contents of this collection use [`set_attributes_to_delete`](Self::set_attributes_to_delete).
218    ///
219    /// <p>The attributes to delete.</p>
220    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    /// <p>The attributes to delete.</p>
225    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    /// <p>The attributes to delete.</p>
230    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}