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 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, Ruby, and Cargo 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 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, Ruby, and Cargo 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 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, Ruby, and Cargo 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 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 ==.impl StructuralPartialEq for PackageSummaryBuilder
Auto Trait Implementations§
impl Freeze for PackageSummaryBuilder
impl RefUnwindSafe for PackageSummaryBuilder
impl Send for PackageSummaryBuilder
impl Sync for PackageSummaryBuilder
impl Unpin for PackageSummaryBuilder
impl UnwindSafe for PackageSummaryBuilder
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> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
 
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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