Struct aws_sdk_codeartifact::operation::list_package_versions::builders::ListPackageVersionsOutputBuilder
source · #[non_exhaustive]pub struct ListPackageVersionsOutputBuilder { /* private fields */ }
Expand description
A builder for ListPackageVersionsOutput
.
Implementations§
source§impl ListPackageVersionsOutputBuilder
impl ListPackageVersionsOutputBuilder
sourcepub fn default_display_version(self, input: impl Into<String>) -> Self
pub fn default_display_version(self, input: impl Into<String>) -> Self
The default package version to display. This depends on the package format:
-
For Maven and PyPI packages, it's the most recently published package version.
-
For npm packages, it's the version referenced by the
latest
tag. If thelatest
tag is not set, it's the most recently published package version.
sourcepub fn set_default_display_version(self, input: Option<String>) -> Self
pub fn set_default_display_version(self, input: Option<String>) -> Self
The default package version to display. This depends on the package format:
-
For Maven and PyPI packages, it's the most recently published package version.
-
For npm packages, it's the version referenced by the
latest
tag. If thelatest
tag is not set, it's the most recently published package version.
sourcepub fn get_default_display_version(&self) -> &Option<String>
pub fn get_default_display_version(&self) -> &Option<String>
The default package version to display. This depends on the package format:
-
For Maven and PyPI packages, it's the most recently published package version.
-
For npm packages, it's the version referenced by the
latest
tag. If thelatest
tag is not set, it's the most recently published package version.
sourcepub fn format(self, input: PackageFormat) -> Self
pub fn format(self, input: PackageFormat) -> Self
A format of the package.
sourcepub fn set_format(self, input: Option<PackageFormat>) -> Self
pub fn set_format(self, input: Option<PackageFormat>) -> Self
A format of the package.
sourcepub fn get_format(&self) -> &Option<PackageFormat>
pub fn get_format(&self) -> &Option<PackageFormat>
A 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 that contains the requested package versions. 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 that contains the requested package versions. 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 that contains the requested package versions. 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 versions(self, input: PackageVersionSummary) -> Self
pub fn versions(self, input: PackageVersionSummary) -> Self
Appends an item to versions
.
To override the contents of this collection use set_versions
.
The returned list of PackageVersionSummary objects.
sourcepub fn set_versions(self, input: Option<Vec<PackageVersionSummary>>) -> Self
pub fn set_versions(self, input: Option<Vec<PackageVersionSummary>>) -> Self
The returned list of PackageVersionSummary objects.
sourcepub fn get_versions(&self) -> &Option<Vec<PackageVersionSummary>>
pub fn get_versions(&self) -> &Option<Vec<PackageVersionSummary>>
The returned list of PackageVersionSummary objects.
sourcepub fn next_token(self, input: impl Into<String>) -> Self
pub fn next_token(self, input: impl Into<String>) -> Self
If there are additional results, this is the token for the next set of results.
sourcepub fn set_next_token(self, input: Option<String>) -> Self
pub fn set_next_token(self, input: Option<String>) -> Self
If there are additional results, this is the token for the next set of results.
sourcepub fn get_next_token(&self) -> &Option<String>
pub fn get_next_token(&self) -> &Option<String>
If there are additional results, this is the token for the next set of results.
sourcepub fn build(self) -> ListPackageVersionsOutput
pub fn build(self) -> ListPackageVersionsOutput
Consumes the builder and constructs a ListPackageVersionsOutput
.
Trait Implementations§
source§impl Clone for ListPackageVersionsOutputBuilder
impl Clone for ListPackageVersionsOutputBuilder
source§fn clone(&self) -> ListPackageVersionsOutputBuilder
fn clone(&self) -> ListPackageVersionsOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ListPackageVersionsOutputBuilder
impl Default for ListPackageVersionsOutputBuilder
source§fn default() -> ListPackageVersionsOutputBuilder
fn default() -> ListPackageVersionsOutputBuilder
source§impl PartialEq for ListPackageVersionsOutputBuilder
impl PartialEq for ListPackageVersionsOutputBuilder
source§fn eq(&self, other: &ListPackageVersionsOutputBuilder) -> bool
fn eq(&self, other: &ListPackageVersionsOutputBuilder) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ListPackageVersionsOutputBuilder
Auto Trait Implementations§
impl Freeze for ListPackageVersionsOutputBuilder
impl RefUnwindSafe for ListPackageVersionsOutputBuilder
impl Send for ListPackageVersionsOutputBuilder
impl Sync for ListPackageVersionsOutputBuilder
impl Unpin for ListPackageVersionsOutputBuilder
impl UnwindSafe for ListPackageVersionsOutputBuilder
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
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