#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteNodeInput {
pub appliance_arn: ::std::option::Option<::std::string::String>,
pub node_arn: ::std::option::Option<::std::string::String>,
}
impl DeleteNodeInput {
pub fn appliance_arn(&self) -> ::std::option::Option<&str> {
self.appliance_arn.as_deref()
}
pub fn node_arn(&self) -> ::std::option::Option<&str> {
self.node_arn.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) appliance_arn: ::std::option::Option<::std::string::String>,
pub(crate) node_arn: ::std::option::Option<::std::string::String>,
}
impl DeleteNodeInputBuilder {
pub fn appliance_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.appliance_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_appliance_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.appliance_arn = input;
self
}
pub fn get_appliance_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.appliance_arn
}
pub fn node_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.node_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_node_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.node_arn = input;
self
}
pub fn get_node_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.node_arn
}
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 {
appliance_arn: self.appliance_arn,
node_arn: self.node_arn,
})
}
}