#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetDbNodeInput {
pub cloud_vm_cluster_id: ::std::option::Option<::std::string::String>,
pub db_node_id: ::std::option::Option<::std::string::String>,
}
impl GetDbNodeInput {
pub fn cloud_vm_cluster_id(&self) -> ::std::option::Option<&str> {
self.cloud_vm_cluster_id.as_deref()
}
pub fn db_node_id(&self) -> ::std::option::Option<&str> {
self.db_node_id.as_deref()
}
}
impl GetDbNodeInput {
pub fn builder() -> crate::operation::get_db_node::builders::GetDbNodeInputBuilder {
crate::operation::get_db_node::builders::GetDbNodeInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetDbNodeInputBuilder {
pub(crate) cloud_vm_cluster_id: ::std::option::Option<::std::string::String>,
pub(crate) db_node_id: ::std::option::Option<::std::string::String>,
}
impl GetDbNodeInputBuilder {
pub fn cloud_vm_cluster_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.cloud_vm_cluster_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_cloud_vm_cluster_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.cloud_vm_cluster_id = input;
self
}
pub fn get_cloud_vm_cluster_id(&self) -> &::std::option::Option<::std::string::String> {
&self.cloud_vm_cluster_id
}
pub fn db_node_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.db_node_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_db_node_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.db_node_id = input;
self
}
pub fn get_db_node_id(&self) -> &::std::option::Option<::std::string::String> {
&self.db_node_id
}
pub fn build(self) -> ::std::result::Result<crate::operation::get_db_node::GetDbNodeInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::get_db_node::GetDbNodeInput {
cloud_vm_cluster_id: self.cloud_vm_cluster_id,
db_node_id: self.db_node_id,
})
}
}