aws_sdk_guardduty/operation/update_ip_set/
builders.rs1pub use crate::operation::update_ip_set::_update_ip_set_output::UpdateIpSetOutputBuilder;
3
4pub use crate::operation::update_ip_set::_update_ip_set_input::UpdateIpSetInputBuilder;
5
6impl crate::operation::update_ip_set::builders::UpdateIpSetInputBuilder {
7 pub async fn send_with(
9 self,
10 client: &crate::Client,
11 ) -> ::std::result::Result<
12 crate::operation::update_ip_set::UpdateIpSetOutput,
13 ::aws_smithy_runtime_api::client::result::SdkError<
14 crate::operation::update_ip_set::UpdateIPSetError,
15 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16 >,
17 > {
18 let mut fluent_builder = client.update_ip_set();
19 fluent_builder.inner = self;
20 fluent_builder.send().await
21 }
22}
23#[derive(::std::clone::Clone, ::std::fmt::Debug)]
27pub struct UpdateIPSetFluentBuilder {
28 handle: ::std::sync::Arc<crate::client::Handle>,
29 inner: crate::operation::update_ip_set::builders::UpdateIpSetInputBuilder,
30 config_override: ::std::option::Option<crate::config::Builder>,
31}
32impl
33 crate::client::customize::internal::CustomizableSend<
34 crate::operation::update_ip_set::UpdateIpSetOutput,
35 crate::operation::update_ip_set::UpdateIPSetError,
36 > for UpdateIPSetFluentBuilder
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_ip_set::UpdateIpSetOutput,
44 crate::operation::update_ip_set::UpdateIPSetError,
45 >,
46 > {
47 ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
48 }
49}
50impl UpdateIPSetFluentBuilder {
51 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 pub fn as_input(&self) -> &crate::operation::update_ip_set::builders::UpdateIpSetInputBuilder {
61 &self.inner
62 }
63 pub async fn send(
72 self,
73 ) -> ::std::result::Result<
74 crate::operation::update_ip_set::UpdateIpSetOutput,
75 ::aws_smithy_runtime_api::client::result::SdkError<
76 crate::operation::update_ip_set::UpdateIPSetError,
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_ip_set::UpdateIPSet::operation_runtime_plugins(
85 self.handle.runtime_plugins.clone(),
86 &self.handle.conf,
87 self.config_override,
88 );
89 crate::operation::update_ip_set::UpdateIPSet::orchestrate(&runtime_plugins, input).await
90 }
91
92 pub fn customize(
94 self,
95 ) -> crate::client::customize::CustomizableOperation<
96 crate::operation::update_ip_set::UpdateIpSetOutput,
97 crate::operation::update_ip_set::UpdateIPSetError,
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 pub fn detector_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
114 self.inner = self.inner.detector_id(input.into());
115 self
116 }
117 pub fn set_detector_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
120 self.inner = self.inner.set_detector_id(input);
121 self
122 }
123 pub fn get_detector_id(&self) -> &::std::option::Option<::std::string::String> {
126 self.inner.get_detector_id()
127 }
128 pub fn ip_set_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
130 self.inner = self.inner.ip_set_id(input.into());
131 self
132 }
133 pub fn set_ip_set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
135 self.inner = self.inner.set_ip_set_id(input);
136 self
137 }
138 pub fn get_ip_set_id(&self) -> &::std::option::Option<::std::string::String> {
140 self.inner.get_ip_set_id()
141 }
142 pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
144 self.inner = self.inner.name(input.into());
145 self
146 }
147 pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
149 self.inner = self.inner.set_name(input);
150 self
151 }
152 pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
154 self.inner.get_name()
155 }
156 pub fn location(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
158 self.inner = self.inner.location(input.into());
159 self
160 }
161 pub fn set_location(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
163 self.inner = self.inner.set_location(input);
164 self
165 }
166 pub fn get_location(&self) -> &::std::option::Option<::std::string::String> {
168 self.inner.get_location()
169 }
170 pub fn activate(mut self, input: bool) -> Self {
172 self.inner = self.inner.activate(input);
173 self
174 }
175 pub fn set_activate(mut self, input: ::std::option::Option<bool>) -> Self {
177 self.inner = self.inner.set_activate(input);
178 self
179 }
180 pub fn get_activate(&self) -> &::std::option::Option<bool> {
182 self.inner.get_activate()
183 }
184 pub fn expected_bucket_owner(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
186 self.inner = self.inner.expected_bucket_owner(input.into());
187 self
188 }
189 pub fn set_expected_bucket_owner(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
191 self.inner = self.inner.set_expected_bucket_owner(input);
192 self
193 }
194 pub fn get_expected_bucket_owner(&self) -> &::std::option::Option<::std::string::String> {
196 self.inner.get_expected_bucket_owner()
197 }
198}