Class Problem

    • Method Detail

      • run

        public final ProblemDetail run()

        Information about the associated run.

        Returns:
        Information about the associated run.
      • job

        public final ProblemDetail job()

        Information about the associated job.

        Returns:
        Information about the associated job.
      • suite

        public final ProblemDetail suite()

        Information about the associated suite.

        Returns:
        Information about the associated suite.
      • test

        public final ProblemDetail test()

        Information about the associated test.

        Returns:
        Information about the associated test.
      • device

        public final Device device()

        Information about the associated device.

        Returns:
        Information about the associated device.
      • result

        public final ExecutionResult result()

        The problem's result.

        Allowed values include:

        • PENDING

        • PASSED

        • WARNED

        • FAILED

        • SKIPPED

        • ERRORED

        • STOPPED

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

        Returns:
        The problem's result.

        Allowed values include:

        • PENDING

        • PASSED

        • WARNED

        • FAILED

        • SKIPPED

        • ERRORED

        • STOPPED

        See Also:
        ExecutionResult
      • resultAsString

        public final String resultAsString()

        The problem's result.

        Allowed values include:

        • PENDING

        • PASSED

        • WARNED

        • FAILED

        • SKIPPED

        • ERRORED

        • STOPPED

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

        Returns:
        The problem's result.

        Allowed values include:

        • PENDING

        • PASSED

        • WARNED

        • FAILED

        • SKIPPED

        • ERRORED

        • STOPPED

        See Also:
        ExecutionResult
      • message

        public final String message()

        A message about the problem's result.

        Returns:
        A message about the problem's result.
      • serializableBuilderClass

        public static Class<? extends Problem.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)