Struct aws_sdk_codeartifact::model::package_description::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for PackageDescription
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn format(self, input: PackageFormat) -> Self
pub fn format(self, input: PackageFormat) -> Self
A format that specifies the type of the package.
sourcepub fn set_format(self, input: Option<PackageFormat>) -> Self
pub fn set_format(self, input: Option<PackageFormat>) -> Self
A format that specifies the type 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.
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.
sourcepub fn origin_configuration(self, input: PackageOriginConfiguration) -> Self
pub fn origin_configuration(self, input: PackageOriginConfiguration) -> Self
The package origin configuration for the package.
sourcepub fn set_origin_configuration(
self,
input: Option<PackageOriginConfiguration>
) -> Self
pub fn set_origin_configuration(
self,
input: Option<PackageOriginConfiguration>
) -> Self
The package origin configuration for the package.
sourcepub fn build(self) -> PackageDescription
pub fn build(self) -> PackageDescription
Consumes the builder and constructs a PackageDescription
.