Class ListPackagesRequest

    • Method Detail

      • domain

        public final String domain()

        The name of the domain that contains the repository that contains the requested packages.

        Returns:
        The name of the domain that contains the repository that contains the requested packages.
      • domainOwner

        public final String domainOwner()

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

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

        public final String repository()

        The name of the repository that contains the requested packages.

        Returns:
        The name of the repository that contains the requested packages.
      • format

        public final PackageFormat format()

        The format used to filter requested packages. Only packages from the provided format will be returned.

        If the service returns an enum value that is not available in the current SDK version, format will return PackageFormat.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from formatAsString().

        Returns:
        The format used to filter requested packages. Only packages from the provided format will be returned.
        See Also:
        PackageFormat
      • formatAsString

        public final String formatAsString()

        The format used to filter requested packages. Only packages from the provided format will be returned.

        If the service returns an enum value that is not available in the current SDK version, format will return PackageFormat.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from formatAsString().

        Returns:
        The format used to filter requested packages. Only packages from the provided format will be returned.
        See Also:
        PackageFormat
      • namespace

        public final String namespace()

        The namespace prefix used to filter requested packages. Only packages with a namespace that starts with the provided string value are returned. Note that although this option is called --namespace and not --namespace-prefix, it has prefix-matching behavior.

        Each package format uses namespace as follows:

        • 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.

        Returns:
        The namespace prefix used to filter requested packages. Only packages with a namespace that starts with the provided string value are returned. Note that although this option is called --namespace and not --namespace-prefix, it has prefix-matching behavior.

        Each package format uses namespace as follows:

        • 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.

      • packagePrefix

        public final String packagePrefix()

        A prefix used to filter requested packages. Only packages with names that start with packagePrefix are returned.

        Returns:
        A prefix used to filter requested packages. Only packages with names that start with packagePrefix are returned.
      • maxResults

        public final Integer maxResults()

        The maximum number of results to return per page.

        Returns:
        The maximum number of results to return per page.
      • nextToken

        public final String nextToken()

        The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

        Returns:
        The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
      • publish

        public final AllowPublish publish()

        The value of the Publish package origin control restriction used to filter requested packages. Only packages with the provided restriction are returned. For more information, see PackageOriginRestrictions.

        If the service returns an enum value that is not available in the current SDK version, publish will return AllowPublish.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from publishAsString().

        Returns:
        The value of the Publish package origin control restriction used to filter requested packages. Only packages with the provided restriction are returned. For more information, see PackageOriginRestrictions.
        See Also:
        AllowPublish
      • publishAsString

        public final String publishAsString()

        The value of the Publish package origin control restriction used to filter requested packages. Only packages with the provided restriction are returned. For more information, see PackageOriginRestrictions.

        If the service returns an enum value that is not available in the current SDK version, publish will return AllowPublish.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from publishAsString().

        Returns:
        The value of the Publish package origin control restriction used to filter requested packages. Only packages with the provided restriction are returned. For more information, see PackageOriginRestrictions.
        See Also:
        AllowPublish
      • upstream

        public final AllowUpstream upstream()

        The value of the Upstream package origin control restriction used to filter requested packages. Only packages with the provided restriction are returned. For more information, see PackageOriginRestrictions.

        If the service returns an enum value that is not available in the current SDK version, upstream will return AllowUpstream.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from upstreamAsString().

        Returns:
        The value of the Upstream package origin control restriction used to filter requested packages. Only packages with the provided restriction are returned. For more information, see PackageOriginRestrictions.
        See Also:
        AllowUpstream
      • upstreamAsString

        public final String upstreamAsString()

        The value of the Upstream package origin control restriction used to filter requested packages. Only packages with the provided restriction are returned. For more information, see PackageOriginRestrictions.

        If the service returns an enum value that is not available in the current SDK version, upstream will return AllowUpstream.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from upstreamAsString().

        Returns:
        The value of the Upstream package origin control restriction used to filter requested packages. Only packages with the provided restriction are returned. For more information, see PackageOriginRestrictions.
        See Also:
        AllowUpstream
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object