aws_sdk_iottwinmaker/operation/get_property_value/
builders.rs1pub use crate::operation::get_property_value::_get_property_value_output::GetPropertyValueOutputBuilder;
3
4pub use crate::operation::get_property_value::_get_property_value_input::GetPropertyValueInputBuilder;
5
6impl crate::operation::get_property_value::builders::GetPropertyValueInputBuilder {
7 pub async fn send_with(
9 self,
10 client: &crate::Client,
11 ) -> ::std::result::Result<
12 crate::operation::get_property_value::GetPropertyValueOutput,
13 ::aws_smithy_runtime_api::client::result::SdkError<
14 crate::operation::get_property_value::GetPropertyValueError,
15 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16 >,
17 > {
18 let mut fluent_builder = client.get_property_value();
19 fluent_builder.inner = self;
20 fluent_builder.send().await
21 }
22}
23#[derive(::std::clone::Clone, ::std::fmt::Debug)]
28pub struct GetPropertyValueFluentBuilder {
29 handle: ::std::sync::Arc<crate::client::Handle>,
30 inner: crate::operation::get_property_value::builders::GetPropertyValueInputBuilder,
31 config_override: ::std::option::Option<crate::config::Builder>,
32}
33impl
34 crate::client::customize::internal::CustomizableSend<
35 crate::operation::get_property_value::GetPropertyValueOutput,
36 crate::operation::get_property_value::GetPropertyValueError,
37 > for GetPropertyValueFluentBuilder
38{
39 fn send(
40 self,
41 config_override: crate::config::Builder,
42 ) -> crate::client::customize::internal::BoxFuture<
43 crate::client::customize::internal::SendResult<
44 crate::operation::get_property_value::GetPropertyValueOutput,
45 crate::operation::get_property_value::GetPropertyValueError,
46 >,
47 > {
48 ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
49 }
50}
51impl GetPropertyValueFluentBuilder {
52 pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
54 Self {
55 handle,
56 inner: ::std::default::Default::default(),
57 config_override: ::std::option::Option::None,
58 }
59 }
60 pub fn as_input(&self) -> &crate::operation::get_property_value::builders::GetPropertyValueInputBuilder {
62 &self.inner
63 }
64 pub async fn send(
73 self,
74 ) -> ::std::result::Result<
75 crate::operation::get_property_value::GetPropertyValueOutput,
76 ::aws_smithy_runtime_api::client::result::SdkError<
77 crate::operation::get_property_value::GetPropertyValueError,
78 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
79 >,
80 > {
81 let input = self
82 .inner
83 .build()
84 .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
85 let runtime_plugins = crate::operation::get_property_value::GetPropertyValue::operation_runtime_plugins(
86 self.handle.runtime_plugins.clone(),
87 &self.handle.conf,
88 self.config_override,
89 );
90 crate::operation::get_property_value::GetPropertyValue::orchestrate(&runtime_plugins, input).await
91 }
92
93 pub fn customize(
95 self,
96 ) -> crate::client::customize::CustomizableOperation<
97 crate::operation::get_property_value::GetPropertyValueOutput,
98 crate::operation::get_property_value::GetPropertyValueError,
99 Self,
100 > {
101 crate::client::customize::CustomizableOperation::new(self)
102 }
103 pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
104 self.set_config_override(::std::option::Option::Some(config_override.into()));
105 self
106 }
107
108 pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
109 self.config_override = config_override;
110 self
111 }
112 pub fn into_paginator(self) -> crate::operation::get_property_value::paginator::GetPropertyValuePaginator {
116 crate::operation::get_property_value::paginator::GetPropertyValuePaginator::new(self.handle, self.inner)
117 }
118 pub fn component_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
120 self.inner = self.inner.component_name(input.into());
121 self
122 }
123 pub fn set_component_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
125 self.inner = self.inner.set_component_name(input);
126 self
127 }
128 pub fn get_component_name(&self) -> &::std::option::Option<::std::string::String> {
130 self.inner.get_component_name()
131 }
132 pub fn component_path(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
134 self.inner = self.inner.component_path(input.into());
135 self
136 }
137 pub fn set_component_path(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
139 self.inner = self.inner.set_component_path(input);
140 self
141 }
142 pub fn get_component_path(&self) -> &::std::option::Option<::std::string::String> {
144 self.inner.get_component_path()
145 }
146 pub fn component_type_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
148 self.inner = self.inner.component_type_id(input.into());
149 self
150 }
151 pub fn set_component_type_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
153 self.inner = self.inner.set_component_type_id(input);
154 self
155 }
156 pub fn get_component_type_id(&self) -> &::std::option::Option<::std::string::String> {
158 self.inner.get_component_type_id()
159 }
160 pub fn entity_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
162 self.inner = self.inner.entity_id(input.into());
163 self
164 }
165 pub fn set_entity_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
167 self.inner = self.inner.set_entity_id(input);
168 self
169 }
170 pub fn get_entity_id(&self) -> &::std::option::Option<::std::string::String> {
172 self.inner.get_entity_id()
173 }
174 pub fn selected_properties(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
181 self.inner = self.inner.selected_properties(input.into());
182 self
183 }
184 pub fn set_selected_properties(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
186 self.inner = self.inner.set_selected_properties(input);
187 self
188 }
189 pub fn get_selected_properties(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
191 self.inner.get_selected_properties()
192 }
193 pub fn workspace_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
195 self.inner = self.inner.workspace_id(input.into());
196 self
197 }
198 pub fn set_workspace_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
200 self.inner = self.inner.set_workspace_id(input);
201 self
202 }
203 pub fn get_workspace_id(&self) -> &::std::option::Option<::std::string::String> {
205 self.inner.get_workspace_id()
206 }
207 pub fn max_results(mut self, input: i32) -> Self {
210 self.inner = self.inner.max_results(input);
211 self
212 }
213 pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
216 self.inner = self.inner.set_max_results(input);
217 self
218 }
219 pub fn get_max_results(&self) -> &::std::option::Option<i32> {
222 self.inner.get_max_results()
223 }
224 pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
226 self.inner = self.inner.next_token(input.into());
227 self
228 }
229 pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
231 self.inner = self.inner.set_next_token(input);
232 self
233 }
234 pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
236 self.inner.get_next_token()
237 }
238 pub fn property_group_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
240 self.inner = self.inner.property_group_name(input.into());
241 self
242 }
243 pub fn set_property_group_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
245 self.inner = self.inner.set_property_group_name(input);
246 self
247 }
248 pub fn get_property_group_name(&self) -> &::std::option::Option<::std::string::String> {
250 self.inner.get_property_group_name()
251 }
252 pub fn tabular_conditions(mut self, input: crate::types::TabularConditions) -> Self {
254 self.inner = self.inner.tabular_conditions(input);
255 self
256 }
257 pub fn set_tabular_conditions(mut self, input: ::std::option::Option<crate::types::TabularConditions>) -> Self {
259 self.inner = self.inner.set_tabular_conditions(input);
260 self
261 }
262 pub fn get_tabular_conditions(&self) -> &::std::option::Option<crate::types::TabularConditions> {
264 self.inner.get_tabular_conditions()
265 }
266}