Interface PackageDescription.Builder

All Superinterfaces:
Buildable, CopyableBuilder<PackageDescription.Builder,PackageDescription>, SdkBuilder<PackageDescription.Builder,PackageDescription>, SdkPojo
Enclosing class:
PackageDescription

public static interface PackageDescription.Builder extends SdkPojo, CopyableBuilder<PackageDescription.Builder,PackageDescription>
  • Method Details

    • format

      A format that specifies the type of the package.

      Parameters:
      format - A format that specifies the type of the package.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • format

      A format that specifies the type of the package.

      Parameters:
      format - A format that specifies the type of the package.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • namespace

      PackageDescription.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 version is its groupId.

      • The namespace of an npm or Swift package version is its scope.

      • The namespace of a generic package is its namespace.

      • Python, NuGet, and Ruby package versions do not contain a corresponding component, package versions of those formats do not have a namespace.

      Parameters:
      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 version is its groupId.

      • The namespace of an npm or Swift package version is its scope.

      • The namespace of a generic package is its namespace.

      • Python, NuGet, and Ruby package versions do not contain a corresponding component, package versions of those formats do not have a namespace.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

      The name of the package.

      Parameters:
      name - The name of the package.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • originConfiguration

      PackageDescription.Builder originConfiguration(PackageOriginConfiguration originConfiguration)

      The package origin configuration for the package.

      Parameters:
      originConfiguration - The package origin configuration for the package.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • originConfiguration

      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 the PackageOriginConfiguration.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).

      Parameters:
      originConfiguration - a consumer that will call methods on PackageOriginConfiguration.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: