#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateStorageInput {
pub cluster_arn: ::std::option::Option<::std::string::String>,
pub current_version: ::std::option::Option<::std::string::String>,
pub provisioned_throughput: ::std::option::Option<crate::types::ProvisionedThroughput>,
pub storage_mode: ::std::option::Option<crate::types::StorageMode>,
pub volume_size_gb: ::std::option::Option<i32>,
}
impl UpdateStorageInput {
pub fn cluster_arn(&self) -> ::std::option::Option<&str> {
self.cluster_arn.as_deref()
}
pub fn current_version(&self) -> ::std::option::Option<&str> {
self.current_version.as_deref()
}
pub fn provisioned_throughput(&self) -> ::std::option::Option<&crate::types::ProvisionedThroughput> {
self.provisioned_throughput.as_ref()
}
pub fn storage_mode(&self) -> ::std::option::Option<&crate::types::StorageMode> {
self.storage_mode.as_ref()
}
pub fn volume_size_gb(&self) -> ::std::option::Option<i32> {
self.volume_size_gb
}
}
impl UpdateStorageInput {
pub fn builder() -> crate::operation::update_storage::builders::UpdateStorageInputBuilder {
crate::operation::update_storage::builders::UpdateStorageInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateStorageInputBuilder {
pub(crate) cluster_arn: ::std::option::Option<::std::string::String>,
pub(crate) current_version: ::std::option::Option<::std::string::String>,
pub(crate) provisioned_throughput: ::std::option::Option<crate::types::ProvisionedThroughput>,
pub(crate) storage_mode: ::std::option::Option<crate::types::StorageMode>,
pub(crate) volume_size_gb: ::std::option::Option<i32>,
}
impl UpdateStorageInputBuilder {
pub fn cluster_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.cluster_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_cluster_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.cluster_arn = input;
self
}
pub fn get_cluster_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.cluster_arn
}
pub fn current_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.current_version = ::std::option::Option::Some(input.into());
self
}
pub fn set_current_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.current_version = input;
self
}
pub fn get_current_version(&self) -> &::std::option::Option<::std::string::String> {
&self.current_version
}
pub fn provisioned_throughput(mut self, input: crate::types::ProvisionedThroughput) -> Self {
self.provisioned_throughput = ::std::option::Option::Some(input);
self
}
pub fn set_provisioned_throughput(mut self, input: ::std::option::Option<crate::types::ProvisionedThroughput>) -> Self {
self.provisioned_throughput = input;
self
}
pub fn get_provisioned_throughput(&self) -> &::std::option::Option<crate::types::ProvisionedThroughput> {
&self.provisioned_throughput
}
pub fn storage_mode(mut self, input: crate::types::StorageMode) -> Self {
self.storage_mode = ::std::option::Option::Some(input);
self
}
pub fn set_storage_mode(mut self, input: ::std::option::Option<crate::types::StorageMode>) -> Self {
self.storage_mode = input;
self
}
pub fn get_storage_mode(&self) -> &::std::option::Option<crate::types::StorageMode> {
&self.storage_mode
}
pub fn volume_size_gb(mut self, input: i32) -> Self {
self.volume_size_gb = ::std::option::Option::Some(input);
self
}
pub fn set_volume_size_gb(mut self, input: ::std::option::Option<i32>) -> Self {
self.volume_size_gb = input;
self
}
pub fn get_volume_size_gb(&self) -> &::std::option::Option<i32> {
&self.volume_size_gb
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::update_storage::UpdateStorageInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::update_storage::UpdateStorageInput {
cluster_arn: self.cluster_arn,
current_version: self.current_version,
provisioned_throughput: self.provisioned_throughput,
storage_mode: self.storage_mode,
volume_size_gb: self.volume_size_gb,
})
}
}