aws_sdk_customerprofiles/operation/create_segment_snapshot/
builders.rspub use crate::operation::create_segment_snapshot::_create_segment_snapshot_output::CreateSegmentSnapshotOutputBuilder;
pub use crate::operation::create_segment_snapshot::_create_segment_snapshot_input::CreateSegmentSnapshotInputBuilder;
impl crate::operation::create_segment_snapshot::builders::CreateSegmentSnapshotInputBuilder {
pub async fn send_with(
self,
client: &crate::Client,
) -> ::std::result::Result<
crate::operation::create_segment_snapshot::CreateSegmentSnapshotOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::create_segment_snapshot::CreateSegmentSnapshotError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let mut fluent_builder = client.create_segment_snapshot();
fluent_builder.inner = self;
fluent_builder.send().await
}
}
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct CreateSegmentSnapshotFluentBuilder {
handle: ::std::sync::Arc<crate::client::Handle>,
inner: crate::operation::create_segment_snapshot::builders::CreateSegmentSnapshotInputBuilder,
config_override: ::std::option::Option<crate::config::Builder>,
}
impl
crate::client::customize::internal::CustomizableSend<
crate::operation::create_segment_snapshot::CreateSegmentSnapshotOutput,
crate::operation::create_segment_snapshot::CreateSegmentSnapshotError,
> for CreateSegmentSnapshotFluentBuilder
{
fn send(
self,
config_override: crate::config::Builder,
) -> crate::client::customize::internal::BoxFuture<
crate::client::customize::internal::SendResult<
crate::operation::create_segment_snapshot::CreateSegmentSnapshotOutput,
crate::operation::create_segment_snapshot::CreateSegmentSnapshotError,
>,
> {
::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
}
}
impl CreateSegmentSnapshotFluentBuilder {
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::create_segment_snapshot::builders::CreateSegmentSnapshotInputBuilder {
&self.inner
}
pub async fn send(
self,
) -> ::std::result::Result<
crate::operation::create_segment_snapshot::CreateSegmentSnapshotOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::create_segment_snapshot::CreateSegmentSnapshotError,
::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::create_segment_snapshot::CreateSegmentSnapshot::operation_runtime_plugins(
self.handle.runtime_plugins.clone(),
&self.handle.conf,
self.config_override,
);
crate::operation::create_segment_snapshot::CreateSegmentSnapshot::orchestrate(&runtime_plugins, input).await
}
pub fn customize(
self,
) -> crate::client::customize::CustomizableOperation<
crate::operation::create_segment_snapshot::CreateSegmentSnapshotOutput,
crate::operation::create_segment_snapshot::CreateSegmentSnapshotError,
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 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()
}
pub fn segment_definition_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.segment_definition_name(input.into());
self
}
pub fn set_segment_definition_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_segment_definition_name(input);
self
}
pub fn get_segment_definition_name(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_segment_definition_name()
}
pub fn data_format(mut self, input: crate::types::DataFormat) -> Self {
self.inner = self.inner.data_format(input);
self
}
pub fn set_data_format(mut self, input: ::std::option::Option<crate::types::DataFormat>) -> Self {
self.inner = self.inner.set_data_format(input);
self
}
pub fn get_data_format(&self) -> &::std::option::Option<crate::types::DataFormat> {
self.inner.get_data_format()
}
pub fn encryption_key(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.encryption_key(input.into());
self
}
pub fn set_encryption_key(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_encryption_key(input);
self
}
pub fn get_encryption_key(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_encryption_key()
}
pub fn role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.role_arn(input.into());
self
}
pub fn set_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_role_arn(input);
self
}
pub fn get_role_arn(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_role_arn()
}
pub fn destination_uri(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.destination_uri(input.into());
self
}
pub fn set_destination_uri(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_destination_uri(input);
self
}
pub fn get_destination_uri(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_destination_uri()
}
}