Interface PutPackageOriginConfigurationRequest.Builder

    • Method Detail

      • domain

        PutPackageOriginConfigurationRequest.Builder domain​(String domain)

        The name of the domain that contains the repository that contains the package.

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

        PutPackageOriginConfigurationRequest.Builder domainOwner​(String domainOwner)

        The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.

        Parameters:
        domainOwner - The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • repository

        PutPackageOriginConfigurationRequest.Builder repository​(String repository)

        The name of the repository that contains the package.

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

        PutPackageOriginConfigurationRequest.Builder namespace​(String namespace)

        The namespace of the package to be updated. 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 package to be updated. 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

        PutPackageOriginConfigurationRequest.Builder packageValue​(String packageValue)

        The name of the package to be updated.

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

        PutPackageOriginConfigurationRequest.Builder restrictions​(PackageOriginRestrictions restrictions)

        A PackageOriginRestrictions object that contains information about the upstream and publish package origin restrictions. The upstream restriction determines if new package versions can be ingested or retained from external connections or upstream repositories. The publish restriction determines if new package versions can be published directly to the repository.

        You must include both the desired upstream and publish restrictions.

        Parameters:
        restrictions - A PackageOriginRestrictions object that contains information about the upstream and publish package origin restrictions. The upstream restriction determines if new package versions can be ingested or retained from external connections or upstream repositories. The publish restriction determines if new package versions can be published directly to the repository.

        You must include both the desired upstream and publish restrictions.

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