#[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, NuGet, and Ruby 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, NuGet, and Ruby 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, NuGet, and Ruby 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 ==
.impl StructuralPartialEq for AssociatedPackageBuilder
Auto Trait Implementations§
impl Freeze for AssociatedPackageBuilder
impl RefUnwindSafe for AssociatedPackageBuilder
impl Send for AssociatedPackageBuilder
impl Sync for AssociatedPackageBuilder
impl Unpin for AssociatedPackageBuilder
impl UnwindSafe for AssociatedPackageBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more