aws_sdk_verifiedpermissions/operation/update_identity_source/
builders.rspub use crate::operation::update_identity_source::_update_identity_source_output::UpdateIdentitySourceOutputBuilder;
pub use crate::operation::update_identity_source::_update_identity_source_input::UpdateIdentitySourceInputBuilder;
impl crate::operation::update_identity_source::builders::UpdateIdentitySourceInputBuilder {
pub async fn send_with(
self,
client: &crate::Client,
) -> ::std::result::Result<
crate::operation::update_identity_source::UpdateIdentitySourceOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_identity_source::UpdateIdentitySourceError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let mut fluent_builder = client.update_identity_source();
fluent_builder.inner = self;
fluent_builder.send().await
}
}
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct UpdateIdentitySourceFluentBuilder {
handle: ::std::sync::Arc<crate::client::Handle>,
inner: crate::operation::update_identity_source::builders::UpdateIdentitySourceInputBuilder,
config_override: ::std::option::Option<crate::config::Builder>,
}
impl
crate::client::customize::internal::CustomizableSend<
crate::operation::update_identity_source::UpdateIdentitySourceOutput,
crate::operation::update_identity_source::UpdateIdentitySourceError,
> for UpdateIdentitySourceFluentBuilder
{
fn send(
self,
config_override: crate::config::Builder,
) -> crate::client::customize::internal::BoxFuture<
crate::client::customize::internal::SendResult<
crate::operation::update_identity_source::UpdateIdentitySourceOutput,
crate::operation::update_identity_source::UpdateIdentitySourceError,
>,
> {
::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
}
}
impl UpdateIdentitySourceFluentBuilder {
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::update_identity_source::builders::UpdateIdentitySourceInputBuilder {
&self.inner
}
pub async fn send(
self,
) -> ::std::result::Result<
crate::operation::update_identity_source::UpdateIdentitySourceOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_identity_source::UpdateIdentitySourceError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let input = self
.inner
.build()
.map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
let runtime_plugins = crate::operation::update_identity_source::UpdateIdentitySource::operation_runtime_plugins(
self.handle.runtime_plugins.clone(),
&self.handle.conf,
self.config_override,
);
crate::operation::update_identity_source::UpdateIdentitySource::orchestrate(&runtime_plugins, input).await
}
pub fn customize(
self,
) -> crate::client::customize::CustomizableOperation<
crate::operation::update_identity_source::UpdateIdentitySourceOutput,
crate::operation::update_identity_source::UpdateIdentitySourceError,
Self,
> {
crate::client::customize::CustomizableOperation::new(self)
}
pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
self.set_config_override(::std::option::Option::Some(config_override.into()));
self
}
pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
self.config_override = config_override;
self
}
pub fn policy_store_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.policy_store_id(input.into());
self
}
pub fn set_policy_store_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_policy_store_id(input);
self
}
pub fn get_policy_store_id(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_policy_store_id()
}
pub fn identity_source_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.identity_source_id(input.into());
self
}
pub fn set_identity_source_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_identity_source_id(input);
self
}
pub fn get_identity_source_id(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_identity_source_id()
}
pub fn update_configuration(mut self, input: crate::types::UpdateConfiguration) -> Self {
self.inner = self.inner.update_configuration(input);
self
}
pub fn set_update_configuration(mut self, input: ::std::option::Option<crate::types::UpdateConfiguration>) -> Self {
self.inner = self.inner.set_update_configuration(input);
self
}
pub fn get_update_configuration(&self) -> &::std::option::Option<crate::types::UpdateConfiguration> {
self.inner.get_update_configuration()
}
pub fn principal_entity_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.principal_entity_type(input.into());
self
}
pub fn set_principal_entity_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_principal_entity_type(input);
self
}
pub fn get_principal_entity_type(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_principal_entity_type()
}
}