#[non_exhaustive]pub struct AssociatedPackageBuilder { /* private fields */ }
Expand description
A builder for AssociatedPackage
.
Implementations§
source§impl AssociatedPackageBuilder
impl AssociatedPackageBuilder
sourcepub fn format(self, input: PackageFormat) -> Self
pub fn format(self, input: PackageFormat) -> Self
A format that specifies the type of the associated 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 associated package.
sourcepub fn get_format(&self) -> &Option<PackageFormat>
pub fn get_format(&self) -> &Option<PackageFormat>
A format that specifies the type of the associated package.
sourcepub fn namespace(self, input: impl Into<String>) -> Self
pub fn namespace(self, input: impl Into<String>) -> Self
The namespace of the associated package. The package component that specifies its namespace depends on its type. For example:
-
The namespace of a Maven package version is its
groupId
. -
The namespace of an npm or Swift package version is its
scope
. -
The namespace of a generic package is its
namespace
. -
Python and NuGet package versions do not contain a corresponding component, package versions 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 associated package. The package component that specifies its namespace depends on its type. For example:
-
The namespace of a Maven package version is its
groupId
. -
The namespace of an npm or Swift package version is its
scope
. -
The namespace of a generic package is its
namespace
. -
Python and NuGet package versions do not contain a corresponding component, package versions of those formats do not have a namespace.
sourcepub fn get_namespace(&self) -> &Option<String>
pub fn get_namespace(&self) -> &Option<String>
The namespace of the associated package. The package component that specifies its namespace depends on its type. For example:
-
The namespace of a Maven package version is its
groupId
. -
The namespace of an npm or Swift package version is its
scope
. -
The namespace of a generic package is its
namespace
. -
Python and NuGet package versions do not contain a corresponding component, package versions of those formats do not have a namespace.
sourcepub fn set_package(self, input: Option<String>) -> Self
pub fn set_package(self, input: Option<String>) -> Self
The name of the associated package.
sourcepub fn get_package(&self) -> &Option<String>
pub fn get_package(&self) -> &Option<String>
The name of the associated package.
sourcepub fn association_type(self, input: PackageGroupAssociationType) -> Self
pub fn association_type(self, input: PackageGroupAssociationType) -> Self
Describes the strength of the association between the package and package group. A strong match can be thought of as an exact match, and a weak match can be thought of as a variation match, for example, the package name matches a variation of the package group pattern. For more information about package group pattern matching, including strong and weak matches, see Package group definition syntax and matching behavior in the CodeArtifact User Guide.
sourcepub fn set_association_type(
self,
input: Option<PackageGroupAssociationType>
) -> Self
pub fn set_association_type( self, input: Option<PackageGroupAssociationType> ) -> Self
Describes the strength of the association between the package and package group. A strong match can be thought of as an exact match, and a weak match can be thought of as a variation match, for example, the package name matches a variation of the package group pattern. For more information about package group pattern matching, including strong and weak matches, see Package group definition syntax and matching behavior in the CodeArtifact User Guide.
sourcepub fn get_association_type(&self) -> &Option<PackageGroupAssociationType>
pub fn get_association_type(&self) -> &Option<PackageGroupAssociationType>
Describes the strength of the association between the package and package group. A strong match can be thought of as an exact match, and a weak match can be thought of as a variation match, for example, the package name matches a variation of the package group pattern. For more information about package group pattern matching, including strong and weak matches, see Package group definition syntax and matching behavior in the CodeArtifact User Guide.
sourcepub fn build(self) -> AssociatedPackage
pub fn build(self) -> AssociatedPackage
Consumes the builder and constructs a AssociatedPackage
.
Trait Implementations§
source§impl Clone for AssociatedPackageBuilder
impl Clone for AssociatedPackageBuilder
source§fn clone(&self) -> AssociatedPackageBuilder
fn clone(&self) -> AssociatedPackageBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AssociatedPackageBuilder
impl Debug for AssociatedPackageBuilder
source§impl Default for AssociatedPackageBuilder
impl Default for AssociatedPackageBuilder
source§fn default() -> AssociatedPackageBuilder
fn default() -> AssociatedPackageBuilder
source§impl PartialEq for AssociatedPackageBuilder
impl PartialEq for AssociatedPackageBuilder
source§fn eq(&self, other: &AssociatedPackageBuilder) -> bool
fn eq(&self, other: &AssociatedPackageBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.