Struct aws_sdk_codeartifact::types::builders::PackageSummaryBuilder
source · #[non_exhaustive]pub struct PackageSummaryBuilder { /* private fields */ }
Expand description
A builder for PackageSummary
.
Implementations§
source§impl PackageSummaryBuilder
impl PackageSummaryBuilder
sourcepub fn format(self, input: PackageFormat) -> Self
pub fn format(self, input: PackageFormat) -> Self
The format of the package.
sourcepub fn set_format(self, input: Option<PackageFormat>) -> Self
pub fn set_format(self, input: Option<PackageFormat>) -> Self
The format of the package.
sourcepub fn get_format(&self) -> &Option<PackageFormat>
pub fn get_format(&self) -> &Option<PackageFormat>
The format of the package.
sourcepub fn namespace(self, input: impl Into<String>) -> Self
pub fn namespace(self, input: impl Into<String>) -> Self
The namespace of the package. The package component that specifies its namespace depends on its type. For example:
-
The namespace of a Maven package is its
groupId
. -
The namespace of an npm package is its
scope
. -
Python and NuGet packages do not contain a corresponding component, packages of those formats do not have a namespace.
-
The namespace of a generic package is its
namespace
.
sourcepub fn set_namespace(self, input: Option<String>) -> Self
pub fn set_namespace(self, input: Option<String>) -> Self
The namespace of the package. The package component that specifies its namespace depends on its type. For example:
-
The namespace of a Maven package is its
groupId
. -
The namespace of an npm package is its
scope
. -
Python and NuGet packages do not contain a corresponding component, packages of those formats do not have a namespace.
-
The namespace of a generic package is its
namespace
.
sourcepub fn get_namespace(&self) -> &Option<String>
pub fn get_namespace(&self) -> &Option<String>
The namespace of the package. The package component that specifies its namespace depends on its type. For example:
-
The namespace of a Maven package is its
groupId
. -
The namespace of an npm package is its
scope
. -
Python and NuGet packages do not contain a corresponding component, packages of those formats do not have a namespace.
-
The namespace of a generic package is its
namespace
.
sourcepub fn set_package(self, input: Option<String>) -> Self
pub fn set_package(self, input: Option<String>) -> Self
The name of the package.
sourcepub fn get_package(&self) -> &Option<String>
pub fn get_package(&self) -> &Option<String>
The name of the package.
sourcepub fn origin_configuration(self, input: PackageOriginConfiguration) -> Self
pub fn origin_configuration(self, input: PackageOriginConfiguration) -> Self
A PackageOriginConfiguration object that contains a PackageOriginRestrictions object that contains information about the upstream and publish package origin restrictions.
sourcepub fn set_origin_configuration(
self,
input: Option<PackageOriginConfiguration>
) -> Self
pub fn set_origin_configuration( self, input: Option<PackageOriginConfiguration> ) -> Self
A PackageOriginConfiguration object that contains a PackageOriginRestrictions object that contains information about the upstream and publish package origin restrictions.
sourcepub fn get_origin_configuration(&self) -> &Option<PackageOriginConfiguration>
pub fn get_origin_configuration(&self) -> &Option<PackageOriginConfiguration>
A PackageOriginConfiguration object that contains a PackageOriginRestrictions object that contains information about the upstream and publish package origin restrictions.
sourcepub fn build(self) -> PackageSummary
pub fn build(self) -> PackageSummary
Consumes the builder and constructs a PackageSummary
.
Trait Implementations§
source§impl Clone for PackageSummaryBuilder
impl Clone for PackageSummaryBuilder
source§fn clone(&self) -> PackageSummaryBuilder
fn clone(&self) -> PackageSummaryBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PackageSummaryBuilder
impl Debug for PackageSummaryBuilder
source§impl Default for PackageSummaryBuilder
impl Default for PackageSummaryBuilder
source§fn default() -> PackageSummaryBuilder
fn default() -> PackageSummaryBuilder
source§impl PartialEq for PackageSummaryBuilder
impl PartialEq for PackageSummaryBuilder
source§fn eq(&self, other: &PackageSummaryBuilder) -> bool
fn eq(&self, other: &PackageSummaryBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.