aws_sdk_ses/operation/delete_configuration_set_tracking_options/
builders.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::delete_configuration_set_tracking_options::_delete_configuration_set_tracking_options_output::DeleteConfigurationSetTrackingOptionsOutputBuilder;
3
4pub use crate::operation::delete_configuration_set_tracking_options::_delete_configuration_set_tracking_options_input::DeleteConfigurationSetTrackingOptionsInputBuilder;
5
6impl crate::operation::delete_configuration_set_tracking_options::builders::DeleteConfigurationSetTrackingOptionsInputBuilder {
7    /// Sends a request with this input using the given client.
8    pub async fn send_with(
9        self,
10        client: &crate::Client,
11    ) -> ::std::result::Result<
12        crate::operation::delete_configuration_set_tracking_options::DeleteConfigurationSetTrackingOptionsOutput,
13        ::aws_smithy_runtime_api::client::result::SdkError<
14            crate::operation::delete_configuration_set_tracking_options::DeleteConfigurationSetTrackingOptionsError,
15            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16        >,
17    > {
18        let mut fluent_builder = client.delete_configuration_set_tracking_options();
19        fluent_builder.inner = self;
20        fluent_builder.send().await
21    }
22}
23/// Fluent builder constructing a request to `DeleteConfigurationSetTrackingOptions`.
24///
25/// <p>Deletes an association between a configuration set and a custom domain for open and click event tracking.</p>
26/// <p>By default, images and links used for tracking open and click events are hosted on domains operated by Amazon SES. You can configure a subdomain of your own to handle these events. For information about using custom domains, see the <a href="https://docs.aws.amazon.com/ses/latest/dg/configure-custom-open-click-domains.html">Amazon SES Developer Guide</a>.</p><note>
27/// <p>Deleting this kind of association results in emails sent using the specified configuration set to capture open and click events using the standard, Amazon SES-operated domains.</p>
28/// </note>
29#[derive(::std::clone::Clone, ::std::fmt::Debug)]
30pub struct DeleteConfigurationSetTrackingOptionsFluentBuilder {
31    handle: ::std::sync::Arc<crate::client::Handle>,
32    inner: crate::operation::delete_configuration_set_tracking_options::builders::DeleteConfigurationSetTrackingOptionsInputBuilder,
33    config_override: ::std::option::Option<crate::config::Builder>,
34}
35impl
36    crate::client::customize::internal::CustomizableSend<
37        crate::operation::delete_configuration_set_tracking_options::DeleteConfigurationSetTrackingOptionsOutput,
38        crate::operation::delete_configuration_set_tracking_options::DeleteConfigurationSetTrackingOptionsError,
39    > for DeleteConfigurationSetTrackingOptionsFluentBuilder
40{
41    fn send(
42        self,
43        config_override: crate::config::Builder,
44    ) -> crate::client::customize::internal::BoxFuture<
45        crate::client::customize::internal::SendResult<
46            crate::operation::delete_configuration_set_tracking_options::DeleteConfigurationSetTrackingOptionsOutput,
47            crate::operation::delete_configuration_set_tracking_options::DeleteConfigurationSetTrackingOptionsError,
48        >,
49    > {
50        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
51    }
52}
53impl DeleteConfigurationSetTrackingOptionsFluentBuilder {
54    /// Creates a new `DeleteConfigurationSetTrackingOptionsFluentBuilder`.
55    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
56        Self {
57            handle,
58            inner: ::std::default::Default::default(),
59            config_override: ::std::option::Option::None,
60        }
61    }
62    /// Access the DeleteConfigurationSetTrackingOptions as a reference.
63    pub fn as_input(
64        &self,
65    ) -> &crate::operation::delete_configuration_set_tracking_options::builders::DeleteConfigurationSetTrackingOptionsInputBuilder {
66        &self.inner
67    }
68    /// Sends the request and returns the response.
69    ///
70    /// If an error occurs, an `SdkError` will be returned with additional details that
71    /// can be matched against.
72    ///
73    /// By default, any retryable failures will be retried twice. Retry behavior
74    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
75    /// set when configuring the client.
76    pub async fn send(
77        self,
78    ) -> ::std::result::Result<
79        crate::operation::delete_configuration_set_tracking_options::DeleteConfigurationSetTrackingOptionsOutput,
80        ::aws_smithy_runtime_api::client::result::SdkError<
81            crate::operation::delete_configuration_set_tracking_options::DeleteConfigurationSetTrackingOptionsError,
82            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
83        >,
84    > {
85        let input = self
86            .inner
87            .build()
88            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
89        let runtime_plugins =
90            crate::operation::delete_configuration_set_tracking_options::DeleteConfigurationSetTrackingOptions::operation_runtime_plugins(
91                self.handle.runtime_plugins.clone(),
92                &self.handle.conf,
93                self.config_override,
94            );
95        crate::operation::delete_configuration_set_tracking_options::DeleteConfigurationSetTrackingOptions::orchestrate(&runtime_plugins, input).await
96    }
97
98    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
99    pub fn customize(
100        self,
101    ) -> crate::client::customize::CustomizableOperation<
102        crate::operation::delete_configuration_set_tracking_options::DeleteConfigurationSetTrackingOptionsOutput,
103        crate::operation::delete_configuration_set_tracking_options::DeleteConfigurationSetTrackingOptionsError,
104        Self,
105    > {
106        crate::client::customize::CustomizableOperation::new(self)
107    }
108    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
109        self.set_config_override(::std::option::Option::Some(config_override.into()));
110        self
111    }
112
113    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
114        self.config_override = config_override;
115        self
116    }
117    /// <p>The name of the configuration set.</p>
118    pub fn configuration_set_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
119        self.inner = self.inner.configuration_set_name(input.into());
120        self
121    }
122    /// <p>The name of the configuration set.</p>
123    pub fn set_configuration_set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
124        self.inner = self.inner.set_configuration_set_name(input);
125        self
126    }
127    /// <p>The name of the configuration set.</p>
128    pub fn get_configuration_set_name(&self) -> &::std::option::Option<::std::string::String> {
129        self.inner.get_configuration_set_name()
130    }
131}