Interface ListPackageVersionsResponse.Builder

All Superinterfaces:
AwsResponse.Builder, Buildable, CodeartifactResponse.Builder, CopyableBuilder<ListPackageVersionsResponse.Builder,ListPackageVersionsResponse>, SdkBuilder<ListPackageVersionsResponse.Builder,ListPackageVersionsResponse>, SdkPojo, SdkResponse.Builder
Enclosing class:
ListPackageVersionsResponse

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

    • defaultDisplayVersion

      ListPackageVersionsResponse.Builder defaultDisplayVersion(String defaultDisplayVersion)

      The default package version to display. This depends on the package format:

      • For Maven and PyPI packages, it's the most recently published package version.

      • For npm packages, it's the version referenced by the latest tag. If the latest tag is not set, it's the most recently published package version.

      Parameters:
      defaultDisplayVersion - The default package version to display. This depends on the package format:

      • For Maven and PyPI packages, it's the most recently published package version.

      • For npm packages, it's the version referenced by the latest tag. If the latest tag is not set, it's the most recently published package version.

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

      A format of the package.

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

      A format of the package.

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

      The namespace of the package that contains the requested package versions. 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 that contains the requested package versions. 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.
    • packageValue

      ListPackageVersionsResponse.Builder packageValue(String packageValue)

      The name of the package.

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

      The returned list of PackageVersionSummary objects.

      Parameters:
      versions - The returned list of PackageVersionSummary objects.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • versions

      The returned list of PackageVersionSummary objects.

      Parameters:
      versions - The returned list of PackageVersionSummary objects.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • versions

      The returned list of PackageVersionSummary objects.

      This is a convenience method that creates an instance of the PackageVersionSummary.Builder avoiding the need to create one manually via PackageVersionSummary.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to versions(List<PackageVersionSummary>).

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

      If there are additional results, this is the token for the next set of results.

      Parameters:
      nextToken - If there are additional results, this is the token for the next set of results.
      Returns:
      Returns a reference to this object so that method calls can be chained together.