Class CreateGrokClassifierRequest

    • Method Detail

      • classification

        public final String classification()

        An identifier of the data format that the classifier matches, such as Twitter, JSON, Omniture logs, Amazon CloudWatch Logs, and so on.

        Returns:
        An identifier of the data format that the classifier matches, such as Twitter, JSON, Omniture logs, Amazon CloudWatch Logs, and so on.
      • name

        public final String name()

        The name of the new classifier.

        Returns:
        The name of the new classifier.
      • grokPattern

        public final String grokPattern()

        The grok pattern used by this classifier.

        Returns:
        The grok pattern used by this classifier.
      • customPatterns

        public final String customPatterns()

        Optional custom grok patterns used by this classifier.

        Returns:
        Optional custom grok patterns used by this classifier.
      • 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)