Interface ListPackageVersionsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CodeartifactResponse.Builder
,CopyableBuilder<ListPackageVersionsResponse.Builder,
,ListPackageVersionsResponse> SdkBuilder<ListPackageVersionsResponse.Builder,
,ListPackageVersionsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
ListPackageVersionsResponse
-
Method Summary
Modifier and TypeMethodDescriptiondefaultDisplayVersion
(String defaultDisplayVersion) The default package version to display.A format of the package.format
(PackageFormat format) A format of the package.The namespace of the package that contains the requested package versions.If there are additional results, this is the token for the next set of results.packageValue
(String packageValue) The name of the package.versions
(Collection<PackageVersionSummary> versions) The returned list of PackageVersionSummary objects.versions
(Consumer<PackageVersionSummary.Builder>... versions) The returned list of PackageVersionSummary objects.versions
(PackageVersionSummary... versions) The returned list of PackageVersionSummary objects.Methods inherited from interface software.amazon.awssdk.services.codeartifact.model.CodeartifactResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
defaultDisplayVersion
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.
- Parameters:
defaultDisplayVersion
- 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.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
format
A format of the package.
- Parameters:
format
- A format of the package.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
format
A format of the package.
- Parameters:
format
- A format of the package.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
namespace
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, and Ruby package versions do not contain a corresponding component, package versions of those formats do not have a namespace.
- Parameters:
namespace
- 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, and Ruby package versions do not contain a corresponding component, package versions of those formats do not have a namespace.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
packageValue
The name of the package.
- Parameters:
packageValue
- The name of the package.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
versions
The returned list of PackageVersionSummary objects.
- Parameters:
versions
- The returned list of PackageVersionSummary objects.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
versions
The returned list of PackageVersionSummary objects.
- Parameters:
versions
- The returned list of PackageVersionSummary objects.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
versions
The returned list of PackageVersionSummary objects.
This is a convenience method that creates an instance of thePackageVersionSummary.Builder
avoiding the need to create one manually viaPackageVersionSummary.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toversions(List<PackageVersionSummary>)
.- Parameters:
versions
- a consumer that will call methods onPackageVersionSummary.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
If there are additional results, this is the token for the next set of results.
- Parameters:
nextToken
- If there are additional results, this is the token for the next set of results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-