aws-sdk-codeartifact 1.101.0

AWS SDK for CodeArtifact
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 DescribePackageGroupOutput {
    /// <p>A <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageGroupDescription.html">PackageGroupDescription</a> object that contains information about the requested package group.</p>
    pub package_group: ::std::option::Option<crate::types::PackageGroupDescription>,
    _request_id: Option<String>,
}
impl DescribePackageGroupOutput {
    /// <p>A <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageGroupDescription.html">PackageGroupDescription</a> object that contains information about the requested package group.</p>
    pub fn package_group(&self) -> ::std::option::Option<&crate::types::PackageGroupDescription> {
        self.package_group.as_ref()
    }
}
impl ::aws_types::request_id::RequestId for DescribePackageGroupOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl DescribePackageGroupOutput {
    /// Creates a new builder-style object to manufacture [`DescribePackageGroupOutput`](crate::operation::describe_package_group::DescribePackageGroupOutput).
    pub fn builder() -> crate::operation::describe_package_group::builders::DescribePackageGroupOutputBuilder {
        crate::operation::describe_package_group::builders::DescribePackageGroupOutputBuilder::default()
    }
}

/// A builder for [`DescribePackageGroupOutput`](crate::operation::describe_package_group::DescribePackageGroupOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribePackageGroupOutputBuilder {
    pub(crate) package_group: ::std::option::Option<crate::types::PackageGroupDescription>,
    _request_id: Option<String>,
}
impl DescribePackageGroupOutputBuilder {
    /// <p>A <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageGroupDescription.html">PackageGroupDescription</a> object that contains information about the requested package group.</p>
    pub fn package_group(mut self, input: crate::types::PackageGroupDescription) -> Self {
        self.package_group = ::std::option::Option::Some(input);
        self
    }
    /// <p>A <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageGroupDescription.html">PackageGroupDescription</a> object that contains information about the requested package group.</p>
    pub fn set_package_group(mut self, input: ::std::option::Option<crate::types::PackageGroupDescription>) -> Self {
        self.package_group = input;
        self
    }
    /// <p>A <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageGroupDescription.html">PackageGroupDescription</a> object that contains information about the requested package group.</p>
    pub fn get_package_group(&self) -> &::std::option::Option<crate::types::PackageGroupDescription> {
        &self.package_group
    }
    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
        self._request_id = Some(request_id.into());
        self
    }

    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
        self._request_id = request_id;
        self
    }
    /// Consumes the builder and constructs a [`DescribePackageGroupOutput`](crate::operation::describe_package_group::DescribePackageGroupOutput).
    pub fn build(self) -> crate::operation::describe_package_group::DescribePackageGroupOutput {
        crate::operation::describe_package_group::DescribePackageGroupOutput {
            package_group: self.package_group,
            _request_id: self._request_id,
        }
    }
}