aws_sdk_connectcases/operation/delete_field/
builders.rs1pub use crate::operation::delete_field::_delete_field_output::DeleteFieldOutputBuilder;
3
4pub use crate::operation::delete_field::_delete_field_input::DeleteFieldInputBuilder;
5
6impl crate::operation::delete_field::builders::DeleteFieldInputBuilder {
7 pub async fn send_with(
9 self,
10 client: &crate::Client,
11 ) -> ::std::result::Result<
12 crate::operation::delete_field::DeleteFieldOutput,
13 ::aws_smithy_runtime_api::client::result::SdkError<
14 crate::operation::delete_field::DeleteFieldError,
15 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16 >,
17 > {
18 let mut fluent_builder = client.delete_field();
19 fluent_builder.inner = self;
20 fluent_builder.send().await
21 }
22}
23#[derive(::std::clone::Clone, ::std::fmt::Debug)]
54pub struct DeleteFieldFluentBuilder {
55 handle: ::std::sync::Arc<crate::client::Handle>,
56 inner: crate::operation::delete_field::builders::DeleteFieldInputBuilder,
57 config_override: ::std::option::Option<crate::config::Builder>,
58}
59impl
60 crate::client::customize::internal::CustomizableSend<
61 crate::operation::delete_field::DeleteFieldOutput,
62 crate::operation::delete_field::DeleteFieldError,
63 > for DeleteFieldFluentBuilder
64{
65 fn send(
66 self,
67 config_override: crate::config::Builder,
68 ) -> crate::client::customize::internal::BoxFuture<
69 crate::client::customize::internal::SendResult<
70 crate::operation::delete_field::DeleteFieldOutput,
71 crate::operation::delete_field::DeleteFieldError,
72 >,
73 > {
74 ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
75 }
76}
77impl DeleteFieldFluentBuilder {
78 pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
80 Self {
81 handle,
82 inner: ::std::default::Default::default(),
83 config_override: ::std::option::Option::None,
84 }
85 }
86 pub fn as_input(&self) -> &crate::operation::delete_field::builders::DeleteFieldInputBuilder {
88 &self.inner
89 }
90 pub async fn send(
99 self,
100 ) -> ::std::result::Result<
101 crate::operation::delete_field::DeleteFieldOutput,
102 ::aws_smithy_runtime_api::client::result::SdkError<
103 crate::operation::delete_field::DeleteFieldError,
104 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
105 >,
106 > {
107 let input = self
108 .inner
109 .build()
110 .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
111 let runtime_plugins = crate::operation::delete_field::DeleteField::operation_runtime_plugins(
112 self.handle.runtime_plugins.clone(),
113 &self.handle.conf,
114 self.config_override,
115 );
116 crate::operation::delete_field::DeleteField::orchestrate(&runtime_plugins, input).await
117 }
118
119 pub fn customize(
121 self,
122 ) -> crate::client::customize::CustomizableOperation<
123 crate::operation::delete_field::DeleteFieldOutput,
124 crate::operation::delete_field::DeleteFieldError,
125 Self,
126 > {
127 crate::client::customize::CustomizableOperation::new(self)
128 }
129 pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
130 self.set_config_override(::std::option::Option::Some(config_override.into()));
131 self
132 }
133
134 pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
135 self.config_override = config_override;
136 self
137 }
138 pub fn domain_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
140 self.inner = self.inner.domain_id(input.into());
141 self
142 }
143 pub fn set_domain_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
145 self.inner = self.inner.set_domain_id(input);
146 self
147 }
148 pub fn get_domain_id(&self) -> &::std::option::Option<::std::string::String> {
150 self.inner.get_domain_id()
151 }
152 pub fn field_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
154 self.inner = self.inner.field_id(input.into());
155 self
156 }
157 pub fn set_field_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
159 self.inner = self.inner.set_field_id(input);
160 self
161 }
162 pub fn get_field_id(&self) -> &::std::option::Option<::std::string::String> {
164 self.inner.get_field_id()
165 }
166}