public static interface PackageDescription.Builder extends SdkPojo, CopyableBuilder<PackageDescription.Builder,PackageDescription>
| Modifier and Type | Method and Description |
|---|---|
PackageDescription.Builder |
format(PackageFormat format)
A format that specifies the type of the package.
|
PackageDescription.Builder |
format(String format)
A format that specifies the type of the package.
|
PackageDescription.Builder |
name(String name)
The name of the package.
|
PackageDescription.Builder |
namespace(String namespace)
The namespace of the package.
|
default PackageDescription.Builder |
originConfiguration(Consumer<PackageOriginConfiguration.Builder> originConfiguration)
The package origin configuration for the package.
|
PackageDescription.Builder |
originConfiguration(PackageOriginConfiguration originConfiguration)
The package origin configuration for the package.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildPackageDescription.Builder format(String format)
A format that specifies the type of the package.
format - A format that specifies the type of the package.PackageFormat,
PackageFormatPackageDescription.Builder format(PackageFormat format)
A format that specifies the type of the package.
format - A format that specifies the type of the package.PackageFormat,
PackageFormatPackageDescription.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.
PackageDescription.Builder name(String name)
The name of the package.
name - The name of the package.PackageDescription.Builder originConfiguration(PackageOriginConfiguration originConfiguration)
The package origin configuration for the package.
originConfiguration - The package origin configuration for the package.default PackageDescription.Builder originConfiguration(Consumer<PackageOriginConfiguration.Builder> originConfiguration)
The package origin configuration for the package.
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.