Interface AssociatedPackage.Builder

  • Method Details

    • format

      A format that specifies the type of the associated package.

      Parameters:
      format - A format that specifies the type of the associated 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 associated package.

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

      AssociatedPackage.Builder namespace(String namespace)

      The namespace of the associated 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, Ruby, and Cargo package versions do not contain a corresponding component, package versions of those formats do not have a namespace.

      Parameters:
      namespace - The namespace of the associated 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, Ruby, and Cargo 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

      AssociatedPackage.Builder packageValue(String packageValue)

      The name of the associated package.

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

      AssociatedPackage.Builder associationType(String associationType)

      Describes the strength of the association between the package and package group. A strong match can be thought of as an exact match, and a weak match can be thought of as a variation match, for example, the package name matches a variation of the package group pattern. For more information about package group pattern matching, including strong and weak matches, see Package group definition syntax and matching behavior in the CodeArtifact User Guide.

      Parameters:
      associationType - Describes the strength of the association between the package and package group. A strong match can be thought of as an exact match, and a weak match can be thought of as a variation match, for example, the package name matches a variation of the package group pattern. For more information about package group pattern matching, including strong and weak matches, see Package group definition syntax and matching behavior in the CodeArtifact User Guide.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • associationType

      AssociatedPackage.Builder associationType(PackageGroupAssociationType associationType)

      Describes the strength of the association between the package and package group. A strong match can be thought of as an exact match, and a weak match can be thought of as a variation match, for example, the package name matches a variation of the package group pattern. For more information about package group pattern matching, including strong and weak matches, see Package group definition syntax and matching behavior in the CodeArtifact User Guide.

      Parameters:
      associationType - Describes the strength of the association between the package and package group. A strong match can be thought of as an exact match, and a weak match can be thought of as a variation match, for example, the package name matches a variation of the package group pattern. For more information about package group pattern matching, including strong and weak matches, see Package group definition syntax and matching behavior in the CodeArtifact User Guide.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: