aws-sdk-iot 1.112.0

AWS SDK for AWS IoT
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>A specific software bill of matrerials associated with a software package version.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Sbom {
    /// <p>The S3 location.</p>
    pub s3_location: ::std::option::Option<crate::types::S3Location>,
}
impl Sbom {
    /// <p>The S3 location.</p>
    pub fn s3_location(&self) -> ::std::option::Option<&crate::types::S3Location> {
        self.s3_location.as_ref()
    }
}
impl Sbom {
    /// Creates a new builder-style object to manufacture [`Sbom`](crate::types::Sbom).
    pub fn builder() -> crate::types::builders::SbomBuilder {
        crate::types::builders::SbomBuilder::default()
    }
}

/// A builder for [`Sbom`](crate::types::Sbom).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct SbomBuilder {
    pub(crate) s3_location: ::std::option::Option<crate::types::S3Location>,
}
impl SbomBuilder {
    /// <p>The S3 location.</p>
    pub fn s3_location(mut self, input: crate::types::S3Location) -> Self {
        self.s3_location = ::std::option::Option::Some(input);
        self
    }
    /// <p>The S3 location.</p>
    pub fn set_s3_location(mut self, input: ::std::option::Option<crate::types::S3Location>) -> Self {
        self.s3_location = input;
        self
    }
    /// <p>The S3 location.</p>
    pub fn get_s3_location(&self) -> &::std::option::Option<crate::types::S3Location> {
        &self.s3_location
    }
    /// Consumes the builder and constructs a [`Sbom`](crate::types::Sbom).
    pub fn build(self) -> crate::types::Sbom {
        crate::types::Sbom {
            s3_location: self.s3_location,
        }
    }
}