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.
|
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. The valid package formats are:
npm: A Node Package Manager (npm) package.
pypi: A Python Package Index (PyPI) package.
maven: A Maven package that contains compiled code in a distributable format, such as a JAR
file.
format - The format of the package version. The valid package formats are:
npm: A Node Package Manager (npm) package.
pypi: A Python Package Index (PyPI) package.
maven: A Maven package that contains compiled code in a distributable format, such as a
JAR file.
PackageFormat,
PackageFormatPackageVersionDescription.Builder format(PackageFormat format)
The format of the package version. The valid package formats are:
npm: A Node Package Manager (npm) package.
pypi: A Python Package Index (PyPI) package.
maven: A Maven package that contains compiled code in a distributable format, such as a JAR
file.
format - The format of the package version. The valid package formats are:
npm: A Node Package Manager (npm) package.
pypi: A Python Package Index (PyPI) package.
maven: A Maven package that contains compiled code in a distributable format, such as a
JAR file.
PackageFormat,
PackageFormatPackageVersionDescription.Builder namespace(String namespace)
The namespace of the package. 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.
A Python package does not contain a corresponding component, so Python packages do not have a namespace.
namespace - The namespace of the package. 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.
A Python package does not contain a corresponding component, so Python packages do not have a 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 that creates an instance of theList.Builder avoiding the need to
create one manually via List#builder() .
When the Consumer completes, List.Builder#build() is called immediately and its
result is passed to #licenses(List) .licenses - a consumer that will call methods on List.Builder #licenses(List) 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. It can be one of the following:
Published
Unfinished
Unlisted
Archived
Disposed
status - A string that contains the status of the package version. It can be one of the following:
Published
Unfinished
Unlisted
Archived
Disposed
PackageVersionStatus,
PackageVersionStatusPackageVersionDescription.Builder status(PackageVersionStatus status)
A string that contains the status of the package version. It can be one of the following:
Published
Unfinished
Unlisted
Archived
Disposed
status - A string that contains the status of the package version. It can be one of the following:
Published
Unfinished
Unlisted
Archived
Disposed
PackageVersionStatus,
PackageVersionStatusCopyright © 2021. All rights reserved.