aws-sdk-panorama 0.26.0

AWS SDK for AWS Panorama
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DescribeNodeInput {
    /// <p>The node's ID.</p>
    #[doc(hidden)]
    pub node_id: std::option::Option<std::string::String>,
    /// <p>The account ID of the node's owner.</p>
    #[doc(hidden)]
    pub owner_account: std::option::Option<std::string::String>,
}
impl DescribeNodeInput {
    /// <p>The node's ID.</p>
    pub fn node_id(&self) -> std::option::Option<&str> {
        self.node_id.as_deref()
    }
    /// <p>The account ID of the node's owner.</p>
    pub fn owner_account(&self) -> std::option::Option<&str> {
        self.owner_account.as_deref()
    }
}
impl DescribeNodeInput {
    /// Creates a new builder-style object to manufacture [`DescribeNodeInput`](crate::operation::describe_node::DescribeNodeInput).
    pub fn builder() -> crate::operation::describe_node::builders::DescribeNodeInputBuilder {
        crate::operation::describe_node::builders::DescribeNodeInputBuilder::default()
    }
}

/// A builder for [`DescribeNodeInput`](crate::operation::describe_node::DescribeNodeInput).
#[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 {
    /// <p>The node's ID.</p>
    pub fn node_id(mut self, input: impl Into<std::string::String>) -> Self {
        self.node_id = Some(input.into());
        self
    }
    /// <p>The node's ID.</p>
    pub fn set_node_id(mut self, input: std::option::Option<std::string::String>) -> Self {
        self.node_id = input;
        self
    }
    /// <p>The account ID of the node's owner.</p>
    pub fn owner_account(mut self, input: impl Into<std::string::String>) -> Self {
        self.owner_account = Some(input.into());
        self
    }
    /// <p>The account ID of the node's owner.</p>
    pub fn set_owner_account(mut self, input: std::option::Option<std::string::String>) -> Self {
        self.owner_account = input;
        self
    }
    /// Consumes the builder and constructs a [`DescribeNodeInput`](crate::operation::describe_node::DescribeNodeInput).
    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,
        })
    }
}