aws_sdk_dax/operation/reboot_node/
_reboot_node_input.rs#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct RebootNodeInput {
pub cluster_name: ::std::option::Option<::std::string::String>,
pub node_id: ::std::option::Option<::std::string::String>,
}
impl RebootNodeInput {
pub fn cluster_name(&self) -> ::std::option::Option<&str> {
self.cluster_name.as_deref()
}
pub fn node_id(&self) -> ::std::option::Option<&str> {
self.node_id.as_deref()
}
}
impl RebootNodeInput {
pub fn builder() -> crate::operation::reboot_node::builders::RebootNodeInputBuilder {
crate::operation::reboot_node::builders::RebootNodeInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct RebootNodeInputBuilder {
pub(crate) cluster_name: ::std::option::Option<::std::string::String>,
pub(crate) node_id: ::std::option::Option<::std::string::String>,
}
impl RebootNodeInputBuilder {
pub fn cluster_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.cluster_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_cluster_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.cluster_name = input;
self
}
pub fn get_cluster_name(&self) -> &::std::option::Option<::std::string::String> {
&self.cluster_name
}
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::reboot_node::RebootNodeInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::reboot_node::RebootNodeInput {
cluster_name: self.cluster_name,
node_id: self.node_id,
})
}
}