#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DescribeNodeInput {
#[doc(hidden)]
pub node_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub owner_account: std::option::Option<std::string::String>,
}
impl DescribeNodeInput {
pub fn node_id(&self) -> std::option::Option<&str> {
self.node_id.as_deref()
}
pub fn owner_account(&self) -> std::option::Option<&str> {
self.owner_account.as_deref()
}
}
impl DescribeNodeInput {
pub fn builder() -> crate::operation::describe_node::builders::DescribeNodeInputBuilder {
crate::operation::describe_node::builders::DescribeNodeInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct DescribeNodeInputBuilder {
pub(crate) node_id: std::option::Option<std::string::String>,
pub(crate) owner_account: std::option::Option<std::string::String>,
}
impl DescribeNodeInputBuilder {
pub fn node_id(mut self, input: impl Into<std::string::String>) -> Self {
self.node_id = 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 owner_account(mut self, input: impl Into<std::string::String>) -> Self {
self.owner_account = Some(input.into());
self
}
pub fn set_owner_account(mut self, input: std::option::Option<std::string::String>) -> Self {
self.owner_account = input;
self
}
pub fn build(
self,
) -> Result<
crate::operation::describe_node::DescribeNodeInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(crate::operation::describe_node::DescribeNodeInput {
node_id: self.node_id,
owner_account: self.owner_account,
})
}
}