// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT. #[allow(missing_docs)] // documentation missing in model #[non_exhaustive] #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)] pub struct GetKxVolumeInput { ///
A unique identifier for the kdb environment, whose clusters can attach to the volume.
pub environment_id: ::std::option::Option<::std::string::String>, ///A unique identifier for the volume.
pub volume_name: ::std::option::Option<::std::string::String>, } impl GetKxVolumeInput { ///A unique identifier for the kdb environment, whose clusters can attach to the volume.
pub fn environment_id(&self) -> ::std::option::Option<&str> { self.environment_id.as_deref() } ///A unique identifier for the volume.
pub fn volume_name(&self) -> ::std::option::Option<&str> { self.volume_name.as_deref() } } impl GetKxVolumeInput { /// Creates a new builder-style object to manufacture [`GetKxVolumeInput`](crate::operation::get_kx_volume::GetKxVolumeInput). pub fn builder() -> crate::operation::get_kx_volume::builders::GetKxVolumeInputBuilder { crate::operation::get_kx_volume::builders::GetKxVolumeInputBuilder::default() } } /// A builder for [`GetKxVolumeInput`](crate::operation::get_kx_volume::GetKxVolumeInput). #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)] #[non_exhaustive] pub struct GetKxVolumeInputBuilder { pub(crate) environment_id: ::std::option::Option<::std::string::String>, pub(crate) volume_name: ::std::option::Option<::std::string::String>, } impl GetKxVolumeInputBuilder { ///A unique identifier for the kdb environment, whose clusters can attach to the volume.
/// This field is required. pub fn environment_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.environment_id = ::std::option::Option::Some(input.into()); self } ///A unique identifier for the kdb environment, whose clusters can attach to the volume.
pub fn set_environment_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self { self.environment_id = input; self } ///A unique identifier for the kdb environment, whose clusters can attach to the volume.
pub fn get_environment_id(&self) -> &::std::option::Option<::std::string::String> { &self.environment_id } ///A unique identifier for the volume.
/// This field is required. pub fn volume_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self { self.volume_name = ::std::option::Option::Some(input.into()); self } ///A unique identifier for the volume.
pub fn set_volume_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self { self.volume_name = input; self } ///A unique identifier for the volume.
pub fn get_volume_name(&self) -> &::std::option::Option<::std::string::String> { &self.volume_name } /// Consumes the builder and constructs a [`GetKxVolumeInput`](crate::operation::get_kx_volume::GetKxVolumeInput). pub fn build(self) -> ::std::result::Result