pub use crate::operation::update_file_system::_update_file_system_output::UpdateFileSystemOutputBuilder;
pub use crate::operation::update_file_system::_update_file_system_input::UpdateFileSystemInputBuilder;
impl UpdateFileSystemInputBuilder {
pub async fn send_with(
self,
client: &crate::Client,
) -> ::std::result::Result<
crate::operation::update_file_system::UpdateFileSystemOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_file_system::UpdateFileSystemError,
::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
>,
> {
let mut fluent_builder = client.update_file_system();
fluent_builder.inner = self;
fluent_builder.send().await
}
}
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
pub struct UpdateFileSystemFluentBuilder {
handle: ::std::sync::Arc<crate::client::Handle>,
inner: crate::operation::update_file_system::builders::UpdateFileSystemInputBuilder,
config_override: ::std::option::Option<crate::config::Builder>,
}
impl
crate::client::customize::internal::CustomizableSend<
crate::operation::update_file_system::UpdateFileSystemOutput,
crate::operation::update_file_system::UpdateFileSystemError,
> for UpdateFileSystemFluentBuilder
{
fn send(
self,
config_override: crate::config::Builder,
) -> crate::client::customize::internal::BoxFuture<
crate::client::customize::internal::SendResult<
crate::operation::update_file_system::UpdateFileSystemOutput,
crate::operation::update_file_system::UpdateFileSystemError,
>,
> {
::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
}
}
impl UpdateFileSystemFluentBuilder {
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_file_system::builders::UpdateFileSystemInputBuilder {
&self.inner
}
pub async fn send(
self,
) -> ::std::result::Result<
crate::operation::update_file_system::UpdateFileSystemOutput,
::aws_smithy_runtime_api::client::result::SdkError<
crate::operation::update_file_system::UpdateFileSystemError,
::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_file_system::UpdateFileSystem::operation_runtime_plugins(
self.handle.runtime_plugins.clone(),
&self.handle.conf,
self.config_override,
);
crate::operation::update_file_system::UpdateFileSystem::orchestrate(&runtime_plugins, input).await
}
pub fn customize(
self,
) -> crate::client::customize::CustomizableOperation<
crate::operation::update_file_system::UpdateFileSystemOutput,
crate::operation::update_file_system::UpdateFileSystemError,
Self,
> {
crate::client::customize::CustomizableOperation::new(self)
}
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 file_system_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.file_system_id(input.into());
self
}
pub fn set_file_system_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_file_system_id(input);
self
}
pub fn get_file_system_id(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_file_system_id()
}
pub fn client_request_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.inner = self.inner.client_request_token(input.into());
self
}
pub fn set_client_request_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.inner = self.inner.set_client_request_token(input);
self
}
pub fn get_client_request_token(&self) -> &::std::option::Option<::std::string::String> {
self.inner.get_client_request_token()
}
pub fn storage_capacity(mut self, input: i32) -> Self {
self.inner = self.inner.storage_capacity(input);
self
}
pub fn set_storage_capacity(mut self, input: ::std::option::Option<i32>) -> Self {
self.inner = self.inner.set_storage_capacity(input);
self
}
pub fn get_storage_capacity(&self) -> &::std::option::Option<i32> {
self.inner.get_storage_capacity()
}
pub fn windows_configuration(mut self, input: crate::types::UpdateFileSystemWindowsConfiguration) -> Self {
self.inner = self.inner.windows_configuration(input);
self
}
pub fn set_windows_configuration(mut self, input: ::std::option::Option<crate::types::UpdateFileSystemWindowsConfiguration>) -> Self {
self.inner = self.inner.set_windows_configuration(input);
self
}
pub fn get_windows_configuration(&self) -> &::std::option::Option<crate::types::UpdateFileSystemWindowsConfiguration> {
self.inner.get_windows_configuration()
}
pub fn lustre_configuration(mut self, input: crate::types::UpdateFileSystemLustreConfiguration) -> Self {
self.inner = self.inner.lustre_configuration(input);
self
}
pub fn set_lustre_configuration(mut self, input: ::std::option::Option<crate::types::UpdateFileSystemLustreConfiguration>) -> Self {
self.inner = self.inner.set_lustre_configuration(input);
self
}
pub fn get_lustre_configuration(&self) -> &::std::option::Option<crate::types::UpdateFileSystemLustreConfiguration> {
self.inner.get_lustre_configuration()
}
pub fn ontap_configuration(mut self, input: crate::types::UpdateFileSystemOntapConfiguration) -> Self {
self.inner = self.inner.ontap_configuration(input);
self
}
pub fn set_ontap_configuration(mut self, input: ::std::option::Option<crate::types::UpdateFileSystemOntapConfiguration>) -> Self {
self.inner = self.inner.set_ontap_configuration(input);
self
}
pub fn get_ontap_configuration(&self) -> &::std::option::Option<crate::types::UpdateFileSystemOntapConfiguration> {
self.inner.get_ontap_configuration()
}
pub fn open_zfs_configuration(mut self, input: crate::types::UpdateFileSystemOpenZfsConfiguration) -> Self {
self.inner = self.inner.open_zfs_configuration(input);
self
}
pub fn set_open_zfs_configuration(mut self, input: ::std::option::Option<crate::types::UpdateFileSystemOpenZfsConfiguration>) -> Self {
self.inner = self.inner.set_open_zfs_configuration(input);
self
}
pub fn get_open_zfs_configuration(&self) -> &::std::option::Option<crate::types::UpdateFileSystemOpenZfsConfiguration> {
self.inner.get_open_zfs_configuration()
}
pub fn storage_type(mut self, input: crate::types::StorageType) -> Self {
self.inner = self.inner.storage_type(input);
self
}
pub fn set_storage_type(mut self, input: ::std::option::Option<crate::types::StorageType>) -> Self {
self.inner = self.inner.set_storage_type(input);
self
}
pub fn get_storage_type(&self) -> &::std::option::Option<crate::types::StorageType> {
self.inner.get_storage_type()
}
}