public static interface PackageVersionDescription.Builder extends SdkPojo, CopyableBuilder<PackageVersionDescription.Builder,PackageVersionDescription>
| Modifier and Type | Method and Description |
|---|---|
PackageVersionDescription.Builder |
displayName(String displayName)
The name of the package that is displayed.
|
PackageVersionDescription.Builder |
format(PackageFormat format)
The format of the package version.
|
PackageVersionDescription.Builder |
format(String format)
The format of the package version.
|
PackageVersionDescription.Builder |
homePage(String homePage)
The homepage associated with the package.
|
PackageVersionDescription.Builder |
licenses(Collection<LicenseInfo> licenses)
Information about licenses associated with the package version.
|
PackageVersionDescription.Builder |
licenses(Consumer<LicenseInfo.Builder>... licenses)
Information about licenses associated with the package version.
|
PackageVersionDescription.Builder |
licenses(LicenseInfo... licenses)
Information about licenses associated with the package version.
|
PackageVersionDescription.Builder |
namespace(String namespace)
The namespace of the package version.
|
default PackageVersionDescription.Builder |
origin(Consumer<PackageVersionOrigin.Builder> origin)
A
PackageVersionOrigin object that contains information about how the package version was added to the
repository.
|
PackageVersionDescription.Builder |
origin(PackageVersionOrigin origin)
A
PackageVersionOrigin object that contains information about how the package version was added to the
repository.
|
PackageVersionDescription.Builder |
packageName(String packageName)
The name of the requested package.
|
PackageVersionDescription.Builder |
publishedTime(Instant publishedTime)
A timestamp that contains the date and time the package version was published.
|
PackageVersionDescription.Builder |
revision(String revision)
The revision of the package version.
|
PackageVersionDescription.Builder |
sourceCodeRepository(String sourceCodeRepository)
The repository for the source code in the package version, or the source code used to build it.
|
PackageVersionDescription.Builder |
status(PackageVersionStatus status)
A string that contains the status of the package version.
|
PackageVersionDescription.Builder |
status(String status)
A string that contains the status of the package version.
|
PackageVersionDescription.Builder |
summary(String summary)
A summary of the package version.
|
PackageVersionDescription.Builder |
version(String version)
The version of the package.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildPackageVersionDescription.Builder format(String format)
The format of the package version.
format - The format of the package version.PackageFormat,
PackageFormatPackageVersionDescription.Builder format(PackageFormat format)
The format of the package version.
format - The format of the package version.PackageFormat,
PackageFormatPackageVersionDescription.Builder namespace(String namespace)
The namespace of the package version. The package version 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 package version is its scope.
Python and NuGet package versions do not contain a corresponding component, package versions of those formats do not have a namespace.
The namespace of a generic package is its namespace.
namespace - The namespace of the package version. The package version 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 package version is its scope.
Python and NuGet package versions do not contain a corresponding component, package versions of those formats do not have a namespace.
The namespace of a generic package is its namespace.
PackageVersionDescription.Builder packageName(String packageName)
The name of the requested package.
packageName - The name of the requested package.PackageVersionDescription.Builder displayName(String displayName)
The name of the package that is displayed. The displayName varies depending on the package
version's format. For example, if an npm package is named ui, is in the namespace
vue, and has the format npm, then the displayName is
@vue/ui.
displayName - The name of the package that is displayed. The displayName varies depending on the
package version's format. For example, if an npm package is named ui, is in the namespace
vue, and has the format npm, then the displayName is
@vue/ui.PackageVersionDescription.Builder version(String version)
The version of the package.
version - The version of the package.PackageVersionDescription.Builder summary(String summary)
A summary of the package version. The summary is extracted from the package. The information in and detail level of the summary depends on the package version's format.
summary - A summary of the package version. The summary is extracted from the package. The information in and
detail level of the summary depends on the package version's format.PackageVersionDescription.Builder homePage(String homePage)
The homepage associated with the package.
homePage - The homepage associated with the package.PackageVersionDescription.Builder sourceCodeRepository(String sourceCodeRepository)
The repository for the source code in the package version, or the source code used to build it.
sourceCodeRepository - The repository for the source code in the package version, or the source code used to build it.PackageVersionDescription.Builder publishedTime(Instant publishedTime)
A timestamp that contains the date and time the package version was published.
publishedTime - A timestamp that contains the date and time the package version was published.PackageVersionDescription.Builder licenses(Collection<LicenseInfo> licenses)
Information about licenses associated with the package version.
licenses - Information about licenses associated with the package version.PackageVersionDescription.Builder licenses(LicenseInfo... licenses)
Information about licenses associated with the package version.
licenses - Information about licenses associated with the package version.PackageVersionDescription.Builder licenses(Consumer<LicenseInfo.Builder>... licenses)
Information about licenses associated with the package version.
This is a convenience method that creates an instance of theLicenseInfo.Builder avoiding the need to create
one manually via LicenseInfo.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately
and its result is passed to #licenses(List.
licenses - a consumer that will call methods on
LicenseInfo.Builder#licenses(java.util.Collection) PackageVersionDescription.Builder revision(String revision)
The revision of the package version.
revision - The revision of the package version.PackageVersionDescription.Builder status(String status)
A string that contains the status of the package version.
status - A string that contains the status of the package version.PackageVersionStatus,
PackageVersionStatusPackageVersionDescription.Builder status(PackageVersionStatus status)
A string that contains the status of the package version.
status - A string that contains the status of the package version.PackageVersionStatus,
PackageVersionStatusPackageVersionDescription.Builder origin(PackageVersionOrigin origin)
A PackageVersionOrigin object that contains information about how the package version was added to the repository.
origin - A
PackageVersionOrigin object that contains information about how the package version was added to
the repository.default PackageVersionDescription.Builder origin(Consumer<PackageVersionOrigin.Builder> origin)
A PackageVersionOrigin object that contains information about how the package version was added to the repository.
This is a convenience method that creates an instance of thePackageVersionOrigin.Builder avoiding
the need to create one manually via PackageVersionOrigin.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and
its result is passed to origin(PackageVersionOrigin).
origin - a consumer that will call methods on PackageVersionOrigin.Builderorigin(PackageVersionOrigin)Copyright © 2023. All rights reserved.