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 DescribePackageInput {
    /// <p>The package's ID.</p>
    #[doc(hidden)]
    pub package_id: std::option::Option<std::string::String>,
}
impl DescribePackageInput {
    /// <p>The package's ID.</p>
    pub fn package_id(&self) -> std::option::Option<&str> {
        self.package_id.as_deref()
    }
}
impl DescribePackageInput {
    /// Creates a new builder-style object to manufacture [`DescribePackageInput`](crate::operation::describe_package::DescribePackageInput).
    pub fn builder() -> crate::operation::describe_package::builders::DescribePackageInputBuilder {
        crate::operation::describe_package::builders::DescribePackageInputBuilder::default()
    }
}

/// A builder for [`DescribePackageInput`](crate::operation::describe_package::DescribePackageInput).
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct DescribePackageInputBuilder {
    pub(crate) package_id: std::option::Option<std::string::String>,
}
impl DescribePackageInputBuilder {
    /// <p>The package's ID.</p>
    pub fn package_id(mut self, input: impl Into<std::string::String>) -> Self {
        self.package_id = Some(input.into());
        self
    }
    /// <p>The package's ID.</p>
    pub fn set_package_id(mut self, input: std::option::Option<std::string::String>) -> Self {
        self.package_id = input;
        self
    }
    /// Consumes the builder and constructs a [`DescribePackageInput`](crate::operation::describe_package::DescribePackageInput).
    pub fn build(
        self,
    ) -> Result<
        crate::operation::describe_package::DescribePackageInput,
        aws_smithy_http::operation::error::BuildError,
    > {
        Ok(crate::operation::describe_package::DescribePackageInput {
            package_id: self.package_id,
        })
    }
}