aws_sdk_codeartifact/operation/update_package_group/
_update_package_group_input.rs#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdatePackageGroupInput {
    pub domain: ::std::option::Option<::std::string::String>,
    pub domain_owner: ::std::option::Option<::std::string::String>,
    pub package_group: ::std::option::Option<::std::string::String>,
    pub contact_info: ::std::option::Option<::std::string::String>,
    pub description: ::std::option::Option<::std::string::String>,
}
impl UpdatePackageGroupInput {
    pub fn domain(&self) -> ::std::option::Option<&str> {
        self.domain.as_deref()
    }
    pub fn domain_owner(&self) -> ::std::option::Option<&str> {
        self.domain_owner.as_deref()
    }
    pub fn package_group(&self) -> ::std::option::Option<&str> {
        self.package_group.as_deref()
    }
    pub fn contact_info(&self) -> ::std::option::Option<&str> {
        self.contact_info.as_deref()
    }
    pub fn description(&self) -> ::std::option::Option<&str> {
        self.description.as_deref()
    }
}
impl UpdatePackageGroupInput {
    pub fn builder() -> crate::operation::update_package_group::builders::UpdatePackageGroupInputBuilder {
        crate::operation::update_package_group::builders::UpdatePackageGroupInputBuilder::default()
    }
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdatePackageGroupInputBuilder {
    pub(crate) domain: ::std::option::Option<::std::string::String>,
    pub(crate) domain_owner: ::std::option::Option<::std::string::String>,
    pub(crate) package_group: ::std::option::Option<::std::string::String>,
    pub(crate) contact_info: ::std::option::Option<::std::string::String>,
    pub(crate) description: ::std::option::Option<::std::string::String>,
}
impl UpdatePackageGroupInputBuilder {
    pub fn domain(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.domain = ::std::option::Option::Some(input.into());
        self
    }
    pub fn set_domain(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.domain = input;
        self
    }
    pub fn get_domain(&self) -> &::std::option::Option<::std::string::String> {
        &self.domain
    }
    pub fn domain_owner(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.domain_owner = ::std::option::Option::Some(input.into());
        self
    }
    pub fn set_domain_owner(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.domain_owner = input;
        self
    }
    pub fn get_domain_owner(&self) -> &::std::option::Option<::std::string::String> {
        &self.domain_owner
    }
    pub fn package_group(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.package_group = ::std::option::Option::Some(input.into());
        self
    }
    pub fn set_package_group(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.package_group = input;
        self
    }
    pub fn get_package_group(&self) -> &::std::option::Option<::std::string::String> {
        &self.package_group
    }
    pub fn contact_info(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.contact_info = ::std::option::Option::Some(input.into());
        self
    }
    pub fn set_contact_info(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.contact_info = input;
        self
    }
    pub fn get_contact_info(&self) -> &::std::option::Option<::std::string::String> {
        &self.contact_info
    }
    pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.description = ::std::option::Option::Some(input.into());
        self
    }
    pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.description = input;
        self
    }
    pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
        &self.description
    }
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::update_package_group::UpdatePackageGroupInput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::update_package_group::UpdatePackageGroupInput {
            domain: self.domain,
            domain_owner: self.domain_owner,
            package_group: self.package_group,
            contact_info: self.contact_info,
            description: self.description,
        })
    }
}