Class Rule

    • Method Detail

      • includedUsersAndGroups

        public final UsersAndGroups includedUsersAndGroups()

        Users and groups to be included in a rule.

        Returns:
        Users and groups to be included in a rule.
      • excludedUsersAndGroups

        public final UsersAndGroups excludedUsersAndGroups()

        Users and groups to be excluded from a rule.

        Returns:
        Users and groups to be excluded from a rule.
      • ruleType

        public final RuleType ruleType()

        The type of rule.

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

        Returns:
        The type of rule.
        See Also:
        RuleType
      • ruleTypeAsString

        public final String ruleTypeAsString()

        The type of rule.

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

        Returns:
        The type of rule.
        See Also:
        RuleType
      • ruleConfiguration

        public final RuleConfiguration ruleConfiguration()

        The configuration information for a rule.

        Returns:
        The configuration information for a rule.
      • serializableBuilderClass

        public static Class<? extends Rule.Builder> serializableBuilderClass()
      • 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)