public static interface PackageSummary.Builder extends SdkPojo, CopyableBuilder<PackageSummary.Builder,PackageSummary>
| Modifier and Type | Method and Description |
|---|---|
PackageSummary.Builder |
format(PackageFormat format)
The format of the package.
|
PackageSummary.Builder |
format(String format)
The format of the package.
|
PackageSummary.Builder |
namespace(String namespace)
The namespace of the package.
|
default PackageSummary.Builder |
originConfiguration(Consumer<PackageOriginConfiguration.Builder> originConfiguration)
A
PackageOriginConfiguration object that contains a PackageOriginRestrictions object that contains information about the upstream and publish package origin
restrictions.
|
PackageSummary.Builder |
originConfiguration(PackageOriginConfiguration originConfiguration)
A
PackageOriginConfiguration object that contains a PackageOriginRestrictions object that contains information about the upstream and publish package origin
restrictions.
|
PackageSummary.Builder |
packageValue(String packageValue)
The name of the package.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildPackageSummary.Builder format(String format)
The format of the package.
format - The format of the package.PackageFormat,
PackageFormatPackageSummary.Builder format(PackageFormat format)
The format of the package.
format - The format of the package.PackageFormat,
PackageFormatPackageSummary.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.
Python and NuGet packages do not contain a corresponding component, packages of those formats do not have a namespace.
The namespace of a generic package is its 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.
Python and NuGet packages do not contain a corresponding component, packages of those formats do not have a namespace.
The namespace of a generic package is its namespace.
PackageSummary.Builder packageValue(String packageValue)
The name of the package.
packageValue - The name of the package.PackageSummary.Builder originConfiguration(PackageOriginConfiguration originConfiguration)
A PackageOriginConfiguration object that contains a PackageOriginRestrictions object that contains information about the upstream and publish package origin restrictions.
originConfiguration - A PackageOriginConfiguration object that contains a PackageOriginRestrictions object that contains information about the upstream and publish package
origin restrictions.default PackageSummary.Builder originConfiguration(Consumer<PackageOriginConfiguration.Builder> originConfiguration)
A PackageOriginConfiguration object that contains a PackageOriginRestrictions object that contains information about the upstream and publish package origin restrictions.
This is a convenience method that creates an instance of thePackageOriginConfiguration.Builder
avoiding the need to create one manually via PackageOriginConfiguration.builder().
When the Consumer completes, SdkBuilder.build() is called immediately
and its result is passed to originConfiguration(PackageOriginConfiguration).
originConfiguration - a consumer that will call methods on PackageOriginConfiguration.BuilderoriginConfiguration(PackageOriginConfiguration)Copyright © 2023. All rights reserved.