aws_sdk_ec2/operation/create_vpc_endpoint_connection_notification/
builders.rs1pub use crate::operation::create_vpc_endpoint_connection_notification::_create_vpc_endpoint_connection_notification_output::CreateVpcEndpointConnectionNotificationOutputBuilder;
3
4pub use crate::operation::create_vpc_endpoint_connection_notification::_create_vpc_endpoint_connection_notification_input::CreateVpcEndpointConnectionNotificationInputBuilder;
5
6impl crate::operation::create_vpc_endpoint_connection_notification::builders::CreateVpcEndpointConnectionNotificationInputBuilder {
7    pub async fn send_with(
9        self,
10        client: &crate::Client,
11    ) -> ::std::result::Result<
12        crate::operation::create_vpc_endpoint_connection_notification::CreateVpcEndpointConnectionNotificationOutput,
13        ::aws_smithy_runtime_api::client::result::SdkError<
14            crate::operation::create_vpc_endpoint_connection_notification::CreateVpcEndpointConnectionNotificationError,
15            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16        >,
17    > {
18        let mut fluent_builder = client.create_vpc_endpoint_connection_notification();
19        fluent_builder.inner = self;
20        fluent_builder.send().await
21    }
22}
23#[derive(::std::clone::Clone, ::std::fmt::Debug)]
28pub struct CreateVpcEndpointConnectionNotificationFluentBuilder {
29    handle: ::std::sync::Arc<crate::client::Handle>,
30    inner: crate::operation::create_vpc_endpoint_connection_notification::builders::CreateVpcEndpointConnectionNotificationInputBuilder,
31    config_override: ::std::option::Option<crate::config::Builder>,
32}
33impl
34    crate::client::customize::internal::CustomizableSend<
35        crate::operation::create_vpc_endpoint_connection_notification::CreateVpcEndpointConnectionNotificationOutput,
36        crate::operation::create_vpc_endpoint_connection_notification::CreateVpcEndpointConnectionNotificationError,
37    > for CreateVpcEndpointConnectionNotificationFluentBuilder
38{
39    fn send(
40        self,
41        config_override: crate::config::Builder,
42    ) -> crate::client::customize::internal::BoxFuture<
43        crate::client::customize::internal::SendResult<
44            crate::operation::create_vpc_endpoint_connection_notification::CreateVpcEndpointConnectionNotificationOutput,
45            crate::operation::create_vpc_endpoint_connection_notification::CreateVpcEndpointConnectionNotificationError,
46        >,
47    > {
48        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
49    }
50}
51impl CreateVpcEndpointConnectionNotificationFluentBuilder {
52    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
54        Self {
55            handle,
56            inner: ::std::default::Default::default(),
57            config_override: ::std::option::Option::None,
58        }
59    }
60    pub fn as_input(
62        &self,
63    ) -> &crate::operation::create_vpc_endpoint_connection_notification::builders::CreateVpcEndpointConnectionNotificationInputBuilder {
64        &self.inner
65    }
66    pub async fn send(
75        self,
76    ) -> ::std::result::Result<
77        crate::operation::create_vpc_endpoint_connection_notification::CreateVpcEndpointConnectionNotificationOutput,
78        ::aws_smithy_runtime_api::client::result::SdkError<
79            crate::operation::create_vpc_endpoint_connection_notification::CreateVpcEndpointConnectionNotificationError,
80            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
81        >,
82    > {
83        let input = self
84            .inner
85            .build()
86            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
87        let runtime_plugins =
88            crate::operation::create_vpc_endpoint_connection_notification::CreateVpcEndpointConnectionNotification::operation_runtime_plugins(
89                self.handle.runtime_plugins.clone(),
90                &self.handle.conf,
91                self.config_override,
92            );
93        crate::operation::create_vpc_endpoint_connection_notification::CreateVpcEndpointConnectionNotification::orchestrate(&runtime_plugins, input)
94            .await
95    }
96
97    pub fn customize(
99        self,
100    ) -> crate::client::customize::CustomizableOperation<
101        crate::operation::create_vpc_endpoint_connection_notification::CreateVpcEndpointConnectionNotificationOutput,
102        crate::operation::create_vpc_endpoint_connection_notification::CreateVpcEndpointConnectionNotificationError,
103        Self,
104    > {
105        crate::client::customize::CustomizableOperation::new(self)
106    }
107    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
108        self.set_config_override(::std::option::Option::Some(config_override.into()));
109        self
110    }
111
112    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
113        self.config_override = config_override;
114        self
115    }
116    pub fn dry_run(mut self, input: bool) -> Self {
118        self.inner = self.inner.dry_run(input);
119        self
120    }
121    pub fn set_dry_run(mut self, input: ::std::option::Option<bool>) -> Self {
123        self.inner = self.inner.set_dry_run(input);
124        self
125    }
126    pub fn get_dry_run(&self) -> &::std::option::Option<bool> {
128        self.inner.get_dry_run()
129    }
130    pub fn service_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
132        self.inner = self.inner.service_id(input.into());
133        self
134    }
135    pub fn set_service_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
137        self.inner = self.inner.set_service_id(input);
138        self
139    }
140    pub fn get_service_id(&self) -> &::std::option::Option<::std::string::String> {
142        self.inner.get_service_id()
143    }
144    pub fn vpc_endpoint_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
146        self.inner = self.inner.vpc_endpoint_id(input.into());
147        self
148    }
149    pub fn set_vpc_endpoint_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
151        self.inner = self.inner.set_vpc_endpoint_id(input);
152        self
153    }
154    pub fn get_vpc_endpoint_id(&self) -> &::std::option::Option<::std::string::String> {
156        self.inner.get_vpc_endpoint_id()
157    }
158    pub fn connection_notification_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
160        self.inner = self.inner.connection_notification_arn(input.into());
161        self
162    }
163    pub fn set_connection_notification_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
165        self.inner = self.inner.set_connection_notification_arn(input);
166        self
167    }
168    pub fn get_connection_notification_arn(&self) -> &::std::option::Option<::std::string::String> {
170        self.inner.get_connection_notification_arn()
171    }
172    pub fn connection_events(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
179        self.inner = self.inner.connection_events(input.into());
180        self
181    }
182    pub fn set_connection_events(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
184        self.inner = self.inner.set_connection_events(input);
185        self
186    }
187    pub fn get_connection_events(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
189        self.inner.get_connection_events()
190    }
191    pub fn client_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
193        self.inner = self.inner.client_token(input.into());
194        self
195    }
196    pub fn set_client_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
198        self.inner = self.inner.set_client_token(input);
199        self
200    }
201    pub fn get_client_token(&self) -> &::std::option::Option<::std::string::String> {
203        self.inner.get_client_token()
204    }
205}