Interface ImpersonationRule.Builder

    • Method Detail

      • impersonationRuleId

        ImpersonationRule.Builder impersonationRuleId​(String impersonationRuleId)

        The identifier of the rule.

        Parameters:
        impersonationRuleId - The identifier of the rule.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • name

        ImpersonationRule.Builder name​(String name)

        The rule name.

        Parameters:
        name - The rule name.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • description

        ImpersonationRule.Builder description​(String description)

        The rule description.

        Parameters:
        description - The rule description.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • effect

        ImpersonationRule.Builder effect​(String effect)

        The effect of the rule when it matches the input. Allowed effect values are ALLOW or DENY.

        Parameters:
        effect - The effect of the rule when it matches the input. Allowed effect values are ALLOW or DENY.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        AccessEffect, AccessEffect
      • effect

        ImpersonationRule.Builder effect​(AccessEffect effect)

        The effect of the rule when it matches the input. Allowed effect values are ALLOW or DENY.

        Parameters:
        effect - The effect of the rule when it matches the input. Allowed effect values are ALLOW or DENY.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        AccessEffect, AccessEffect
      • targetUsers

        ImpersonationRule.Builder targetUsers​(Collection<String> targetUsers)

        A list of user IDs that match the rule.

        Parameters:
        targetUsers - A list of user IDs that match the rule.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • targetUsers

        ImpersonationRule.Builder targetUsers​(String... targetUsers)

        A list of user IDs that match the rule.

        Parameters:
        targetUsers - A list of user IDs that match the rule.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • notTargetUsers

        ImpersonationRule.Builder notTargetUsers​(Collection<String> notTargetUsers)

        A list of user IDs that don't match the rule.

        Parameters:
        notTargetUsers - A list of user IDs that don't match the rule.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • notTargetUsers

        ImpersonationRule.Builder notTargetUsers​(String... notTargetUsers)

        A list of user IDs that don't match the rule.

        Parameters:
        notTargetUsers - A list of user IDs that don't match the rule.
        Returns:
        Returns a reference to this object so that method calls can be chained together.