aws_sdk_waf/operation/update_regex_pattern_set/
builders.rs1pub use crate::operation::update_regex_pattern_set::_update_regex_pattern_set_output::UpdateRegexPatternSetOutputBuilder;
3
4pub use crate::operation::update_regex_pattern_set::_update_regex_pattern_set_input::UpdateRegexPatternSetInputBuilder;
5
6impl crate::operation::update_regex_pattern_set::builders::UpdateRegexPatternSetInputBuilder {
7 pub async fn send_with(
9 self,
10 client: &crate::Client,
11 ) -> ::std::result::Result<
12 crate::operation::update_regex_pattern_set::UpdateRegexPatternSetOutput,
13 ::aws_smithy_runtime_api::client::result::SdkError<
14 crate::operation::update_regex_pattern_set::UpdateRegexPatternSetError,
15 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16 >,
17 > {
18 let mut fluent_builder = client.update_regex_pattern_set();
19 fluent_builder.inner = self;
20 fluent_builder.send().await
21 }
22}
23#[derive(::std::clone::Clone, ::std::fmt::Debug)]
58pub struct UpdateRegexPatternSetFluentBuilder {
59 handle: ::std::sync::Arc<crate::client::Handle>,
60 inner: crate::operation::update_regex_pattern_set::builders::UpdateRegexPatternSetInputBuilder,
61 config_override: ::std::option::Option<crate::config::Builder>,
62}
63impl
64 crate::client::customize::internal::CustomizableSend<
65 crate::operation::update_regex_pattern_set::UpdateRegexPatternSetOutput,
66 crate::operation::update_regex_pattern_set::UpdateRegexPatternSetError,
67 > for UpdateRegexPatternSetFluentBuilder
68{
69 fn send(
70 self,
71 config_override: crate::config::Builder,
72 ) -> crate::client::customize::internal::BoxFuture<
73 crate::client::customize::internal::SendResult<
74 crate::operation::update_regex_pattern_set::UpdateRegexPatternSetOutput,
75 crate::operation::update_regex_pattern_set::UpdateRegexPatternSetError,
76 >,
77 > {
78 ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
79 }
80}
81impl UpdateRegexPatternSetFluentBuilder {
82 pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
84 Self {
85 handle,
86 inner: ::std::default::Default::default(),
87 config_override: ::std::option::Option::None,
88 }
89 }
90 pub fn as_input(&self) -> &crate::operation::update_regex_pattern_set::builders::UpdateRegexPatternSetInputBuilder {
92 &self.inner
93 }
94 pub async fn send(
103 self,
104 ) -> ::std::result::Result<
105 crate::operation::update_regex_pattern_set::UpdateRegexPatternSetOutput,
106 ::aws_smithy_runtime_api::client::result::SdkError<
107 crate::operation::update_regex_pattern_set::UpdateRegexPatternSetError,
108 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
109 >,
110 > {
111 let input = self
112 .inner
113 .build()
114 .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
115 let runtime_plugins = crate::operation::update_regex_pattern_set::UpdateRegexPatternSet::operation_runtime_plugins(
116 self.handle.runtime_plugins.clone(),
117 &self.handle.conf,
118 self.config_override,
119 );
120 crate::operation::update_regex_pattern_set::UpdateRegexPatternSet::orchestrate(&runtime_plugins, input).await
121 }
122
123 pub fn customize(
125 self,
126 ) -> crate::client::customize::CustomizableOperation<
127 crate::operation::update_regex_pattern_set::UpdateRegexPatternSetOutput,
128 crate::operation::update_regex_pattern_set::UpdateRegexPatternSetError,
129 Self,
130 > {
131 crate::client::customize::CustomizableOperation::new(self)
132 }
133 pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
134 self.set_config_override(::std::option::Option::Some(config_override.into()));
135 self
136 }
137
138 pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
139 self.config_override = config_override;
140 self
141 }
142 pub fn regex_pattern_set_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
144 self.inner = self.inner.regex_pattern_set_id(input.into());
145 self
146 }
147 pub fn set_regex_pattern_set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
149 self.inner = self.inner.set_regex_pattern_set_id(input);
150 self
151 }
152 pub fn get_regex_pattern_set_id(&self) -> &::std::option::Option<::std::string::String> {
154 self.inner.get_regex_pattern_set_id()
155 }
156 pub fn updates(mut self, input: crate::types::RegexPatternSetUpdate) -> Self {
163 self.inner = self.inner.updates(input);
164 self
165 }
166 pub fn set_updates(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::RegexPatternSetUpdate>>) -> Self {
168 self.inner = self.inner.set_updates(input);
169 self
170 }
171 pub fn get_updates(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::RegexPatternSetUpdate>> {
173 self.inner.get_updates()
174 }
175 pub fn change_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
177 self.inner = self.inner.change_token(input.into());
178 self
179 }
180 pub fn set_change_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
182 self.inner = self.inner.set_change_token(input);
183 self
184 }
185 pub fn get_change_token(&self) -> &::std::option::Option<::std::string::String> {
187 self.inner.get_change_token()
188 }
189}