aws_sdk_securityir/operation/update_case/
builders.rs1pub use crate::operation::update_case::_update_case_output::UpdateCaseOutputBuilder;
3
4pub use crate::operation::update_case::_update_case_input::UpdateCaseInputBuilder;
5
6impl crate::operation::update_case::builders::UpdateCaseInputBuilder {
7 pub async fn send_with(
9 self,
10 client: &crate::Client,
11 ) -> ::std::result::Result<
12 crate::operation::update_case::UpdateCaseOutput,
13 ::aws_smithy_runtime_api::client::result::SdkError<
14 crate::operation::update_case::UpdateCaseError,
15 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16 >,
17 > {
18 let mut fluent_builder = client.update_case();
19 fluent_builder.inner = self;
20 fluent_builder.send().await
21 }
22}
23#[derive(::std::clone::Clone, ::std::fmt::Debug)]
27pub struct UpdateCaseFluentBuilder {
28 handle: ::std::sync::Arc<crate::client::Handle>,
29 inner: crate::operation::update_case::builders::UpdateCaseInputBuilder,
30 config_override: ::std::option::Option<crate::config::Builder>,
31}
32impl
33 crate::client::customize::internal::CustomizableSend<
34 crate::operation::update_case::UpdateCaseOutput,
35 crate::operation::update_case::UpdateCaseError,
36 > for UpdateCaseFluentBuilder
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_case::UpdateCaseOutput,
44 crate::operation::update_case::UpdateCaseError,
45 >,
46 > {
47 ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
48 }
49}
50impl UpdateCaseFluentBuilder {
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_case::builders::UpdateCaseInputBuilder {
61 &self.inner
62 }
63 pub async fn send(
72 self,
73 ) -> ::std::result::Result<
74 crate::operation::update_case::UpdateCaseOutput,
75 ::aws_smithy_runtime_api::client::result::SdkError<
76 crate::operation::update_case::UpdateCaseError,
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_case::UpdateCase::operation_runtime_plugins(
85 self.handle.runtime_plugins.clone(),
86 &self.handle.conf,
87 self.config_override,
88 );
89 crate::operation::update_case::UpdateCase::orchestrate(&runtime_plugins, input).await
90 }
91
92 pub fn customize(
94 self,
95 ) -> crate::client::customize::CustomizableOperation<
96 crate::operation::update_case::UpdateCaseOutput,
97 crate::operation::update_case::UpdateCaseError,
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 case_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
113 self.inner = self.inner.case_id(input.into());
114 self
115 }
116 pub fn set_case_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
118 self.inner = self.inner.set_case_id(input);
119 self
120 }
121 pub fn get_case_id(&self) -> &::std::option::Option<::std::string::String> {
123 self.inner.get_case_id()
124 }
125 pub fn title(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
127 self.inner = self.inner.title(input.into());
128 self
129 }
130 pub fn set_title(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
132 self.inner = self.inner.set_title(input);
133 self
134 }
135 pub fn get_title(&self) -> &::std::option::Option<::std::string::String> {
137 self.inner.get_title()
138 }
139 pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
141 self.inner = self.inner.description(input.into());
142 self
143 }
144 pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
146 self.inner = self.inner.set_description(input);
147 self
148 }
149 pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
151 self.inner.get_description()
152 }
153 pub fn reported_incident_start_date(mut self, input: ::aws_smithy_types::DateTime) -> Self {
155 self.inner = self.inner.reported_incident_start_date(input);
156 self
157 }
158 pub fn set_reported_incident_start_date(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
160 self.inner = self.inner.set_reported_incident_start_date(input);
161 self
162 }
163 pub fn get_reported_incident_start_date(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
165 self.inner.get_reported_incident_start_date()
166 }
167 pub fn actual_incident_start_date(mut self, input: ::aws_smithy_types::DateTime) -> Self {
169 self.inner = self.inner.actual_incident_start_date(input);
170 self
171 }
172 pub fn set_actual_incident_start_date(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
174 self.inner = self.inner.set_actual_incident_start_date(input);
175 self
176 }
177 pub fn get_actual_incident_start_date(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
179 self.inner.get_actual_incident_start_date()
180 }
181 pub fn engagement_type(mut self, input: crate::types::EngagementType) -> Self {
183 self.inner = self.inner.engagement_type(input);
184 self
185 }
186 pub fn set_engagement_type(mut self, input: ::std::option::Option<crate::types::EngagementType>) -> Self {
188 self.inner = self.inner.set_engagement_type(input);
189 self
190 }
191 pub fn get_engagement_type(&self) -> &::std::option::Option<crate::types::EngagementType> {
193 self.inner.get_engagement_type()
194 }
195 pub fn watchers_to_add(mut self, input: crate::types::Watcher) -> Self {
202 self.inner = self.inner.watchers_to_add(input);
203 self
204 }
205 pub fn set_watchers_to_add(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Watcher>>) -> Self {
207 self.inner = self.inner.set_watchers_to_add(input);
208 self
209 }
210 pub fn get_watchers_to_add(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Watcher>> {
212 self.inner.get_watchers_to_add()
213 }
214 pub fn watchers_to_delete(mut self, input: crate::types::Watcher) -> Self {
221 self.inner = self.inner.watchers_to_delete(input);
222 self
223 }
224 pub fn set_watchers_to_delete(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Watcher>>) -> Self {
226 self.inner = self.inner.set_watchers_to_delete(input);
227 self
228 }
229 pub fn get_watchers_to_delete(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Watcher>> {
231 self.inner.get_watchers_to_delete()
232 }
233 pub fn threat_actor_ip_addresses_to_add(mut self, input: crate::types::ThreatActorIp) -> Self {
240 self.inner = self.inner.threat_actor_ip_addresses_to_add(input);
241 self
242 }
243 pub fn set_threat_actor_ip_addresses_to_add(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::ThreatActorIp>>) -> Self {
245 self.inner = self.inner.set_threat_actor_ip_addresses_to_add(input);
246 self
247 }
248 pub fn get_threat_actor_ip_addresses_to_add(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::ThreatActorIp>> {
250 self.inner.get_threat_actor_ip_addresses_to_add()
251 }
252 pub fn threat_actor_ip_addresses_to_delete(mut self, input: crate::types::ThreatActorIp) -> Self {
259 self.inner = self.inner.threat_actor_ip_addresses_to_delete(input);
260 self
261 }
262 pub fn set_threat_actor_ip_addresses_to_delete(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::ThreatActorIp>>) -> Self {
264 self.inner = self.inner.set_threat_actor_ip_addresses_to_delete(input);
265 self
266 }
267 pub fn get_threat_actor_ip_addresses_to_delete(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::ThreatActorIp>> {
269 self.inner.get_threat_actor_ip_addresses_to_delete()
270 }
271 pub fn impacted_services_to_add(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
278 self.inner = self.inner.impacted_services_to_add(input.into());
279 self
280 }
281 pub fn set_impacted_services_to_add(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
283 self.inner = self.inner.set_impacted_services_to_add(input);
284 self
285 }
286 pub fn get_impacted_services_to_add(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
288 self.inner.get_impacted_services_to_add()
289 }
290 pub fn impacted_services_to_delete(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
297 self.inner = self.inner.impacted_services_to_delete(input.into());
298 self
299 }
300 pub fn set_impacted_services_to_delete(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
302 self.inner = self.inner.set_impacted_services_to_delete(input);
303 self
304 }
305 pub fn get_impacted_services_to_delete(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
307 self.inner.get_impacted_services_to_delete()
308 }
309 pub fn impacted_aws_regions_to_add(mut self, input: crate::types::ImpactedAwsRegion) -> Self {
316 self.inner = self.inner.impacted_aws_regions_to_add(input);
317 self
318 }
319 pub fn set_impacted_aws_regions_to_add(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::ImpactedAwsRegion>>) -> Self {
321 self.inner = self.inner.set_impacted_aws_regions_to_add(input);
322 self
323 }
324 pub fn get_impacted_aws_regions_to_add(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::ImpactedAwsRegion>> {
326 self.inner.get_impacted_aws_regions_to_add()
327 }
328 pub fn impacted_aws_regions_to_delete(mut self, input: crate::types::ImpactedAwsRegion) -> Self {
335 self.inner = self.inner.impacted_aws_regions_to_delete(input);
336 self
337 }
338 pub fn set_impacted_aws_regions_to_delete(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::ImpactedAwsRegion>>) -> Self {
340 self.inner = self.inner.set_impacted_aws_regions_to_delete(input);
341 self
342 }
343 pub fn get_impacted_aws_regions_to_delete(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::ImpactedAwsRegion>> {
345 self.inner.get_impacted_aws_regions_to_delete()
346 }
347 pub fn impacted_accounts_to_add(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
356 self.inner = self.inner.impacted_accounts_to_add(input.into());
357 self
358 }
359 pub fn set_impacted_accounts_to_add(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
363 self.inner = self.inner.set_impacted_accounts_to_add(input);
364 self
365 }
366 pub fn get_impacted_accounts_to_add(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
370 self.inner.get_impacted_accounts_to_add()
371 }
372 pub fn impacted_accounts_to_delete(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
381 self.inner = self.inner.impacted_accounts_to_delete(input.into());
382 self
383 }
384 pub fn set_impacted_accounts_to_delete(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
388 self.inner = self.inner.set_impacted_accounts_to_delete(input);
389 self
390 }
391 pub fn get_impacted_accounts_to_delete(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
395 self.inner.get_impacted_accounts_to_delete()
396 }
397 pub fn case_metadata(mut self, input: crate::types::CaseMetadataEntry) -> Self {
404 self.inner = self.inner.case_metadata(input);
405 self
406 }
407 pub fn set_case_metadata(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::CaseMetadataEntry>>) -> Self {
409 self.inner = self.inner.set_case_metadata(input);
410 self
411 }
412 pub fn get_case_metadata(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::CaseMetadataEntry>> {
414 self.inner.get_case_metadata()
415 }
416}