#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteNodeInput {
pub cluster_id: ::std::option::Option<::std::string::String>,
pub node_id: ::std::option::Option<::std::string::String>,
}
impl DeleteNodeInput {
pub fn cluster_id(&self) -> ::std::option::Option<&str> {
self.cluster_id.as_deref()
}
pub fn node_id(&self) -> ::std::option::Option<&str> {
self.node_id.as_deref()
}
}
impl DeleteNodeInput {
pub fn builder() -> crate::operation::delete_node::builders::DeleteNodeInputBuilder {
crate::operation::delete_node::builders::DeleteNodeInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteNodeInputBuilder {
pub(crate) cluster_id: ::std::option::Option<::std::string::String>,
pub(crate) node_id: ::std::option::Option<::std::string::String>,
}
impl DeleteNodeInputBuilder {
pub fn cluster_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.cluster_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_cluster_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.cluster_id = input;
self
}
pub fn get_cluster_id(&self) -> &::std::option::Option<::std::string::String> {
&self.cluster_id
}
pub fn node_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.node_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_node_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.node_id = input;
self
}
pub fn get_node_id(&self) -> &::std::option::Option<::std::string::String> {
&self.node_id
}
pub fn build(self) -> ::std::result::Result<crate::operation::delete_node::DeleteNodeInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::delete_node::DeleteNodeInput {
cluster_id: self.cluster_id,
node_id: self.node_id,
})
}
}