Class Crawl

    • Method Detail

      • stateAsString

        public final String stateAsString()

        The state of the crawler.

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

        Returns:
        The state of the crawler.
        See Also:
        CrawlState
      • startedOn

        public final Instant startedOn()

        The date and time on which the crawl started.

        Returns:
        The date and time on which the crawl started.
      • completedOn

        public final Instant completedOn()

        The date and time on which the crawl completed.

        Returns:
        The date and time on which the crawl completed.
      • errorMessage

        public final String errorMessage()

        The error message associated with the crawl.

        Returns:
        The error message associated with the crawl.
      • logGroup

        public final String logGroup()

        The log group associated with the crawl.

        Returns:
        The log group associated with the crawl.
      • logStream

        public final String logStream()

        The log stream associated with the crawl.

        Returns:
        The log stream associated with the crawl.
      • serializableBuilderClass

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