Class RuleState

    • Method Detail

      • ruleName

        public final String ruleName()

        The name of the rule.

        Returns:
        The name of the rule.
      • currentRevision

        public final RuleRevision currentRevision()

        The ID of the current revision of the artifact successfully worked on by the job.

        Returns:
        The ID of the current revision of the artifact successfully worked on by the job.
      • latestExecution

        public final RuleExecution latestExecution()

        Represents information about the latest run of an rule.

        Returns:
        Represents information about the latest run of an rule.
      • entityUrl

        public final String entityUrl()

        A URL link for more information about the state of the action, such as a details page.

        Returns:
        A URL link for more information about the state of the action, such as a details page.
      • revisionUrl

        public final String revisionUrl()

        A URL link for more information about the revision, such as a commit details page.

        Returns:
        A URL link for more information about the revision, such as a commit details page.
      • 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)