aws_sdk_deadline/operation/create_storage_profile/
builders.rspub use crate::operation::create_storage_profile::_create_storage_profile_output::CreateStorageProfileOutputBuilder;
pub use crate::operation::create_storage_profile::_create_storage_profile_input::CreateStorageProfileInputBuilder;
impl crate::operation::create_storage_profile::builders::CreateStorageProfileInputBuilder {
pub async fn send_with(
self,
client: &crate::Client,
) -> ::std::result::Result<
crate::operation::create_storage_profile::CreateStorageProfileOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::create_storage_profile::CreateStorageProfileError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let mut fluent_builder = client.create_storage_profile();
fluent_builder.inner = self;
fluent_builder.send().await
}
}
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct CreateStorageProfileFluentBuilder {
handle: ::std::sync::Arc<crate::client::Handle>,
inner: crate::operation::create_storage_profile::builders::CreateStorageProfileInputBuilder,
config_override: ::std::option::Option<crate::config::Builder>,
}
impl
crate::client::customize::internal::CustomizableSend<
crate::operation::create_storage_profile::CreateStorageProfileOutput,
crate::operation::create_storage_profile::CreateStorageProfileError,
> for CreateStorageProfileFluentBuilder
{
fn send(
self,
config_override: crate::config::Builder,
) -> crate::client::customize::internal::BoxFuture<
crate::client::customize::internal::SendResult<
crate::operation::create_storage_profile::CreateStorageProfileOutput,
crate::operation::create_storage_profile::CreateStorageProfileError,
>,
> {
::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
}
}
impl CreateStorageProfileFluentBuilder {
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_storage_profile::builders::CreateStorageProfileInputBuilder {
&self.inner
}
pub async fn send(
self,
) -> ::std::result::Result<
crate::operation::create_storage_profile::CreateStorageProfileOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::create_storage_profile::CreateStorageProfileError,
::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_storage_profile::CreateStorageProfile::operation_runtime_plugins(
self.handle.runtime_plugins.clone(),
&self.handle.conf,
self.config_override,
);
crate::operation::create_storage_profile::CreateStorageProfile::orchestrate(&runtime_plugins, input).await
}
pub fn customize(
self,
) -> crate::client::customize::CustomizableOperation<
crate::operation::create_storage_profile::CreateStorageProfileOutput,
crate::operation::create_storage_profile::CreateStorageProfileError,
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 client_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.client_token(input.into());
self
}
pub fn set_client_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_client_token(input);
self
}
pub fn get_client_token(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_client_token()
}
pub fn farm_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.farm_id(input.into());
self
}
pub fn set_farm_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_farm_id(input);
self
}
pub fn get_farm_id(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_farm_id()
}
pub fn display_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.display_name(input.into());
self
}
pub fn set_display_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_display_name(input);
self
}
pub fn get_display_name(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_display_name()
}
pub fn os_family(mut self, input: crate::types::StorageProfileOperatingSystemFamily) -> Self {
self.inner = self.inner.os_family(input);
self
}
pub fn set_os_family(mut self, input: ::std::option::Option<crate::types::StorageProfileOperatingSystemFamily>) -> Self {
self.inner = self.inner.set_os_family(input);
self
}
pub fn get_os_family(&self) -> &::std::option::Option<crate::types::StorageProfileOperatingSystemFamily> {
self.inner.get_os_family()
}
pub fn file_system_locations(mut self, input: crate::types::FileSystemLocation) -> Self {
self.inner = self.inner.file_system_locations(input);
self
}
pub fn set_file_system_locations(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::FileSystemLocation>>) -> Self {
self.inner = self.inner.set_file_system_locations(input);
self
}
pub fn get_file_system_locations(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::FileSystemLocation>> {
self.inner.get_file_system_locations()
}
}