aws_sdk_rbin/operation/lock_rule/
builders.rs1pub use crate::operation::lock_rule::_lock_rule_output::LockRuleOutputBuilder;
3
4pub use crate::operation::lock_rule::_lock_rule_input::LockRuleInputBuilder;
5
6impl crate::operation::lock_rule::builders::LockRuleInputBuilder {
7 pub async fn send_with(
9 self,
10 client: &crate::Client,
11 ) -> ::std::result::Result<
12 crate::operation::lock_rule::LockRuleOutput,
13 ::aws_smithy_runtime_api::client::result::SdkError<
14 crate::operation::lock_rule::LockRuleError,
15 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16 >,
17 > {
18 let mut fluent_builder = client.lock_rule();
19 fluent_builder.inner = self;
20 fluent_builder.send().await
21 }
22}
23#[derive(::std::clone::Clone, ::std::fmt::Debug)]
29pub struct LockRuleFluentBuilder {
30 handle: ::std::sync::Arc<crate::client::Handle>,
31 inner: crate::operation::lock_rule::builders::LockRuleInputBuilder,
32 config_override: ::std::option::Option<crate::config::Builder>,
33}
34impl crate::client::customize::internal::CustomizableSend<crate::operation::lock_rule::LockRuleOutput, crate::operation::lock_rule::LockRuleError>
35 for LockRuleFluentBuilder
36{
37 fn send(
38 self,
39 config_override: crate::config::Builder,
40 ) -> crate::client::customize::internal::BoxFuture<
41 crate::client::customize::internal::SendResult<crate::operation::lock_rule::LockRuleOutput, crate::operation::lock_rule::LockRuleError>,
42 > {
43 ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
44 }
45}
46impl LockRuleFluentBuilder {
47 pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
49 Self {
50 handle,
51 inner: ::std::default::Default::default(),
52 config_override: ::std::option::Option::None,
53 }
54 }
55 pub fn as_input(&self) -> &crate::operation::lock_rule::builders::LockRuleInputBuilder {
57 &self.inner
58 }
59 pub async fn send(
68 self,
69 ) -> ::std::result::Result<
70 crate::operation::lock_rule::LockRuleOutput,
71 ::aws_smithy_runtime_api::client::result::SdkError<
72 crate::operation::lock_rule::LockRuleError,
73 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
74 >,
75 > {
76 let input = self
77 .inner
78 .build()
79 .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
80 let runtime_plugins = crate::operation::lock_rule::LockRule::operation_runtime_plugins(
81 self.handle.runtime_plugins.clone(),
82 &self.handle.conf,
83 self.config_override,
84 );
85 crate::operation::lock_rule::LockRule::orchestrate(&runtime_plugins, input).await
86 }
87
88 pub fn customize(
90 self,
91 ) -> crate::client::customize::CustomizableOperation<crate::operation::lock_rule::LockRuleOutput, crate::operation::lock_rule::LockRuleError, Self>
92 {
93 crate::client::customize::CustomizableOperation::new(self)
94 }
95 pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
96 self.set_config_override(::std::option::Option::Some(config_override.into()));
97 self
98 }
99
100 pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
101 self.config_override = config_override;
102 self
103 }
104 pub fn identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
106 self.inner = self.inner.identifier(input.into());
107 self
108 }
109 pub fn set_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
111 self.inner = self.inner.set_identifier(input);
112 self
113 }
114 pub fn get_identifier(&self) -> &::std::option::Option<::std::string::String> {
116 self.inner.get_identifier()
117 }
118 pub fn lock_configuration(mut self, input: crate::types::LockConfiguration) -> Self {
120 self.inner = self.inner.lock_configuration(input);
121 self
122 }
123 pub fn set_lock_configuration(mut self, input: ::std::option::Option<crate::types::LockConfiguration>) -> Self {
125 self.inner = self.inner.set_lock_configuration(input);
126 self
127 }
128 pub fn get_lock_configuration(&self) -> &::std::option::Option<crate::types::LockConfiguration> {
130 self.inner.get_lock_configuration()
131 }
132}