aws_sdk_appstream/operation/describe_user_stack_associations/
builders.rs1pub use crate::operation::describe_user_stack_associations::_describe_user_stack_associations_output::DescribeUserStackAssociationsOutputBuilder;
3
4pub use crate::operation::describe_user_stack_associations::_describe_user_stack_associations_input::DescribeUserStackAssociationsInputBuilder;
5
6impl crate::operation::describe_user_stack_associations::builders::DescribeUserStackAssociationsInputBuilder {
7 pub async fn send_with(
9 self,
10 client: &crate::Client,
11 ) -> ::std::result::Result<
12 crate::operation::describe_user_stack_associations::DescribeUserStackAssociationsOutput,
13 ::aws_smithy_runtime_api::client::result::SdkError<
14 crate::operation::describe_user_stack_associations::DescribeUserStackAssociationsError,
15 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16 >,
17 > {
18 let mut fluent_builder = client.describe_user_stack_associations();
19 fluent_builder.inner = self;
20 fluent_builder.send().await
21 }
22}
23#[derive(::std::clone::Clone, ::std::fmt::Debug)]
33pub struct DescribeUserStackAssociationsFluentBuilder {
34 handle: ::std::sync::Arc<crate::client::Handle>,
35 inner: crate::operation::describe_user_stack_associations::builders::DescribeUserStackAssociationsInputBuilder,
36 config_override: ::std::option::Option<crate::config::Builder>,
37}
38impl
39 crate::client::customize::internal::CustomizableSend<
40 crate::operation::describe_user_stack_associations::DescribeUserStackAssociationsOutput,
41 crate::operation::describe_user_stack_associations::DescribeUserStackAssociationsError,
42 > for DescribeUserStackAssociationsFluentBuilder
43{
44 fn send(
45 self,
46 config_override: crate::config::Builder,
47 ) -> crate::client::customize::internal::BoxFuture<
48 crate::client::customize::internal::SendResult<
49 crate::operation::describe_user_stack_associations::DescribeUserStackAssociationsOutput,
50 crate::operation::describe_user_stack_associations::DescribeUserStackAssociationsError,
51 >,
52 > {
53 ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
54 }
55}
56impl DescribeUserStackAssociationsFluentBuilder {
57 pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
59 Self {
60 handle,
61 inner: ::std::default::Default::default(),
62 config_override: ::std::option::Option::None,
63 }
64 }
65 pub fn as_input(&self) -> &crate::operation::describe_user_stack_associations::builders::DescribeUserStackAssociationsInputBuilder {
67 &self.inner
68 }
69 pub async fn send(
78 self,
79 ) -> ::std::result::Result<
80 crate::operation::describe_user_stack_associations::DescribeUserStackAssociationsOutput,
81 ::aws_smithy_runtime_api::client::result::SdkError<
82 crate::operation::describe_user_stack_associations::DescribeUserStackAssociationsError,
83 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
84 >,
85 > {
86 let input = self
87 .inner
88 .build()
89 .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
90 let runtime_plugins = crate::operation::describe_user_stack_associations::DescribeUserStackAssociations::operation_runtime_plugins(
91 self.handle.runtime_plugins.clone(),
92 &self.handle.conf,
93 self.config_override,
94 );
95 crate::operation::describe_user_stack_associations::DescribeUserStackAssociations::orchestrate(&runtime_plugins, input).await
96 }
97
98 pub fn customize(
100 self,
101 ) -> crate::client::customize::CustomizableOperation<
102 crate::operation::describe_user_stack_associations::DescribeUserStackAssociationsOutput,
103 crate::operation::describe_user_stack_associations::DescribeUserStackAssociationsError,
104 Self,
105 > {
106 crate::client::customize::CustomizableOperation::new(self)
107 }
108 pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
109 self.set_config_override(::std::option::Option::Some(config_override.into()));
110 self
111 }
112
113 pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
114 self.config_override = config_override;
115 self
116 }
117 pub fn stack_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
119 self.inner = self.inner.stack_name(input.into());
120 self
121 }
122 pub fn set_stack_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
124 self.inner = self.inner.set_stack_name(input);
125 self
126 }
127 pub fn get_stack_name(&self) -> &::std::option::Option<::std::string::String> {
129 self.inner.get_stack_name()
130 }
131 pub fn user_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
135 self.inner = self.inner.user_name(input.into());
136 self
137 }
138 pub fn set_user_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
142 self.inner = self.inner.set_user_name(input);
143 self
144 }
145 pub fn get_user_name(&self) -> &::std::option::Option<::std::string::String> {
149 self.inner.get_user_name()
150 }
151 pub fn authentication_type(mut self, input: crate::types::AuthenticationType) -> Self {
153 self.inner = self.inner.authentication_type(input);
154 self
155 }
156 pub fn set_authentication_type(mut self, input: ::std::option::Option<crate::types::AuthenticationType>) -> Self {
158 self.inner = self.inner.set_authentication_type(input);
159 self
160 }
161 pub fn get_authentication_type(&self) -> &::std::option::Option<crate::types::AuthenticationType> {
163 self.inner.get_authentication_type()
164 }
165 pub fn max_results(mut self, input: i32) -> Self {
167 self.inner = self.inner.max_results(input);
168 self
169 }
170 pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
172 self.inner = self.inner.set_max_results(input);
173 self
174 }
175 pub fn get_max_results(&self) -> &::std::option::Option<i32> {
177 self.inner.get_max_results()
178 }
179 pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
181 self.inner = self.inner.next_token(input.into());
182 self
183 }
184 pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
186 self.inner = self.inner.set_next_token(input);
187 self
188 }
189 pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
191 self.inner.get_next_token()
192 }
193}