Class PackageGroupOriginRestriction

    • Method Detail

      • mode

        public final PackageGroupOriginRestrictionMode mode()

        The package group origin restriction setting. If the value of mode is ALLOW, ALLOW_SPECIFIC_REPOSITORIES, or BLOCK, then the value of effectiveMode is the same. Otherwise, when the value is INHERIT, then the value of effectiveMode is the value of mode of the first parent group which does not have a value of INHERIT.

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

        Returns:
        The package group origin restriction setting. If the value of mode is ALLOW, ALLOW_SPECIFIC_REPOSITORIES, or BLOCK, then the value of effectiveMode is the same. Otherwise, when the value is INHERIT, then the value of effectiveMode is the value of mode of the first parent group which does not have a value of INHERIT.
        See Also:
        PackageGroupOriginRestrictionMode
      • modeAsString

        public final String modeAsString()

        The package group origin restriction setting. If the value of mode is ALLOW, ALLOW_SPECIFIC_REPOSITORIES, or BLOCK, then the value of effectiveMode is the same. Otherwise, when the value is INHERIT, then the value of effectiveMode is the value of mode of the first parent group which does not have a value of INHERIT.

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

        Returns:
        The package group origin restriction setting. If the value of mode is ALLOW, ALLOW_SPECIFIC_REPOSITORIES, or BLOCK, then the value of effectiveMode is the same. Otherwise, when the value is INHERIT, then the value of effectiveMode is the value of mode of the first parent group which does not have a value of INHERIT.
        See Also:
        PackageGroupOriginRestrictionMode
      • effectiveMode

        public final PackageGroupOriginRestrictionMode effectiveMode()

        The effective package group origin restriction setting. If the value of mode is ALLOW, ALLOW_SPECIFIC_REPOSITORIES, or BLOCK, then the value of effectiveMode is the same. Otherwise, when the value of mode is INHERIT, then the value of effectiveMode is the value of mode of the first parent group which does not have a value of INHERIT.

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

        Returns:
        The effective package group origin restriction setting. If the value of mode is ALLOW, ALLOW_SPECIFIC_REPOSITORIES, or BLOCK, then the value of effectiveMode is the same. Otherwise, when the value of mode is INHERIT, then the value of effectiveMode is the value of mode of the first parent group which does not have a value of INHERIT.
        See Also:
        PackageGroupOriginRestrictionMode
      • effectiveModeAsString

        public final String effectiveModeAsString()

        The effective package group origin restriction setting. If the value of mode is ALLOW, ALLOW_SPECIFIC_REPOSITORIES, or BLOCK, then the value of effectiveMode is the same. Otherwise, when the value of mode is INHERIT, then the value of effectiveMode is the value of mode of the first parent group which does not have a value of INHERIT.

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

        Returns:
        The effective package group origin restriction setting. If the value of mode is ALLOW, ALLOW_SPECIFIC_REPOSITORIES, or BLOCK, then the value of effectiveMode is the same. Otherwise, when the value of mode is INHERIT, then the value of effectiveMode is the value of mode of the first parent group which does not have a value of INHERIT.
        See Also:
        PackageGroupOriginRestrictionMode
      • inheritedFrom

        public final PackageGroupReference inheritedFrom()

        The parent package group that the package group origin restrictions are inherited from.

        Returns:
        The parent package group that the package group origin restrictions are inherited from.
      • repositoriesCount

        public final Long repositoriesCount()

        The number of repositories in the allowed repository list.

        Returns:
        The number of repositories in the allowed repository list.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • 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
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)