public static interface ListPackageVersionsResponse.Builder extends CodeartifactResponse.Builder, SdkPojo, CopyableBuilder<ListPackageVersionsResponse.Builder,ListPackageVersionsResponse>
build, responseMetadata, responseMetadatasdkHttpResponse, sdkHttpResponseequalsBySdkFields, sdkFieldscopyapplyMutation, buildListPackageVersionsResponse.Builder defaultDisplayVersion(String 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 the latest tag
is not set, it's the most recently published package version.
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 the
latest tag is not set, it's the most recently published package version.
ListPackageVersionsResponse.Builder format(String format)
A format of the package.
format - A format of the package.PackageFormat,
PackageFormatListPackageVersionsResponse.Builder format(PackageFormat format)
A format of the package.
format - A format of the package.PackageFormat,
PackageFormatListPackageVersionsResponse.Builder namespace(String 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 is its groupId.
The namespace of an npm package is its scope.
Python and NuGet packages do not contain a corresponding component, packages of those formats do not have a namespace.
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 is its groupId.
The namespace of an npm package is its scope.
Python and NuGet packages do not contain a corresponding component, packages of those formats do not have a namespace.
ListPackageVersionsResponse.Builder packageValue(String packageValue)
The name of the package.
packageValue - The name of the package.ListPackageVersionsResponse.Builder versions(Collection<PackageVersionSummary> versions)
The returned list of PackageVersionSummary objects.
versions - The returned list of PackageVersionSummary objects.ListPackageVersionsResponse.Builder versions(PackageVersionSummary... versions)
The returned list of PackageVersionSummary objects.
versions - The returned list of PackageVersionSummary objects.ListPackageVersionsResponse.Builder versions(Consumer<PackageVersionSummary.Builder>... 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 via
PackageVersionSummary.builder().
When the Consumer completes,
SdkBuilder.build() is called
immediately and its result is passed to #versions(List.
versions - a consumer that will call methods on
PackageVersionSummary.Builder#versions(java.util.Collection) ListPackageVersionsResponse.Builder nextToken(String nextToken)
If there are additional results, this is the token for the next set of results.
nextToken - If there are additional results, this is the token for the next set of results.Copyright © 2023. All rights reserved.