Class RuleSummary

    • Method Detail

      • actionAsString

        public final String actionAsString()

        The action of the rule.

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

        Returns:
        The action of the rule.
        See Also:
        RuleAction
      • identifier

        public final String identifier()

        The ID of the rule.

        Returns:
        The ID of the rule.
      • lastUpdatedBy

        public final String lastUpdatedBy()

        The timestamp at which the rule was last updated.

        Returns:
        The timestamp at which the rule was last updated.
      • name

        public final String name()

        The name of the rule.

        Returns:
        The name of the rule.
      • revision

        public final String revision()

        The revision of the rule.

        Returns:
        The revision of the rule.
      • ruleType

        public final RuleType ruleType()

        The type of the 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 the rule.
        See Also:
        RuleType
      • ruleTypeAsString

        public final String ruleTypeAsString()

        The type of the 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 the rule.
        See Also:
        RuleType
      • scope

        public final RuleScope scope()

        The scope of the rule.

        Returns:
        The scope of the rule.
      • target

        public final RuleTarget target()

        The target of the rule.

        Returns:
        The target of the rule.
      • updatedAt

        public final Instant updatedAt()

        The timestamp at which the rule was last updated.

        Returns:
        The timestamp at which the rule was last updated.
      • 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)