pub use crate::operation::delete_profile_key::_delete_profile_key_output::DeleteProfileKeyOutputBuilder;
pub use crate::operation::delete_profile_key::_delete_profile_key_input::DeleteProfileKeyInputBuilder;
impl DeleteProfileKeyInputBuilder {
pub async fn send_with(
self,
client: &crate::Client,
) -> ::std::result::Result<
crate::operation::delete_profile_key::DeleteProfileKeyOutput,
::aws_smithy_http::result::SdkError<
crate::operation::delete_profile_key::DeleteProfileKeyError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let mut fluent_builder = client.delete_profile_key();
fluent_builder.inner = self;
fluent_builder.send().await
}
}
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct DeleteProfileKeyFluentBuilder {
handle: ::std::sync::Arc<crate::client::Handle>,
inner: crate::operation::delete_profile_key::builders::DeleteProfileKeyInputBuilder,
config_override: ::std::option::Option<crate::config::Builder>,
}
impl DeleteProfileKeyFluentBuilder {
pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
Self {
handle,
inner: ::std::default::Default::default(),
config_override: ::std::option::Option::None,
}
}
pub fn as_input(&self) -> &crate::operation::delete_profile_key::builders::DeleteProfileKeyInputBuilder {
&self.inner
}
pub async fn send(
self,
) -> ::std::result::Result<
crate::operation::delete_profile_key::DeleteProfileKeyOutput,
::aws_smithy_http::result::SdkError<
crate::operation::delete_profile_key::DeleteProfileKeyError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let input = self.inner.build().map_err(::aws_smithy_http::result::SdkError::construction_failure)?;
let runtime_plugins = crate::operation::delete_profile_key::DeleteProfileKey::operation_runtime_plugins(
self.handle.runtime_plugins.clone(),
&self.handle.conf,
self.config_override,
);
crate::operation::delete_profile_key::DeleteProfileKey::orchestrate(&runtime_plugins, input).await
}
pub async fn customize(
self,
) -> ::std::result::Result<
crate::client::customize::orchestrator::CustomizableOperation<
crate::operation::delete_profile_key::DeleteProfileKeyOutput,
crate::operation::delete_profile_key::DeleteProfileKeyError,
>,
::aws_smithy_http::result::SdkError<crate::operation::delete_profile_key::DeleteProfileKeyError>,
> {
::std::result::Result::Ok(crate::client::customize::orchestrator::CustomizableOperation {
customizable_send: ::std::boxed::Box::new(move |config_override| {
::std::boxed::Box::pin(async { self.config_override(config_override).send().await })
}),
config_override: None,
interceptors: vec![],
runtime_plugins: vec![],
})
}
pub(crate) fn config_override(mut self, config_override: impl Into<crate::config::Builder>) -> Self {
self.set_config_override(Some(config_override.into()));
self
}
pub(crate) fn set_config_override(&mut self, config_override: Option<crate::config::Builder>) -> &mut Self {
self.config_override = config_override;
self
}
pub fn profile_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.profile_id(input.into());
self
}
pub fn set_profile_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_profile_id(input);
self
}
pub fn get_profile_id(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_profile_id()
}
pub fn key_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.key_name(input.into());
self
}
pub fn set_key_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_key_name(input);
self
}
pub fn get_key_name(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_key_name()
}
pub fn values(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.values(input.into());
self
}
pub fn set_values(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.inner = self.inner.set_values(input);
self
}
pub fn get_values(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
self.inner.get_values()
}
pub fn domain_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.domain_name(input.into());
self
}
pub fn set_domain_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_domain_name(input);
self
}
pub fn get_domain_name(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_domain_name()
}
}