@Generated(value="software.amazon.awssdk:codegen") public final class GrokClassifier extends Object implements SdkPojo, Serializable, ToCopyableBuilder<GrokClassifier.Builder,GrokClassifier>
A classifier that uses grok
patterns.
Modifier and Type | Class and Description |
---|---|
static interface |
GrokClassifier.Builder |
Modifier and Type | Method and Description |
---|---|
static GrokClassifier.Builder |
builder() |
String |
classification()
An identifier of the data format that the classifier matches, such as Twitter, JSON, Omniture logs, and so on.
|
Instant |
creationTime()
The time that this classifier was registered.
|
String |
customPatterns()
Optional custom grok patterns defined by this classifier.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj)
Indicates whether some other object is "equal to" this one by SDK fields.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
String |
grokPattern()
The grok pattern applied to a data store by this classifier.
|
int |
hashCode() |
Instant |
lastUpdated()
The time that this classifier was last updated.
|
String |
name()
The name of the classifier.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends GrokClassifier.Builder> |
serializableBuilderClass() |
GrokClassifier.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString()
Returns a string representation of this object.
|
Long |
version()
The version of this classifier.
|
copy
public final String name()
The name of the classifier.
public final String classification()
An identifier of the data format that the classifier matches, such as Twitter, JSON, Omniture logs, and so on.
public final Instant creationTime()
The time that this classifier was registered.
public final Instant lastUpdated()
The time that this classifier was last updated.
public final Long version()
The version of this classifier.
public final String grokPattern()
The grok pattern applied to a data store by this classifier. For more information, see built-in patterns in Writing Custom Classifiers.
public final String customPatterns()
Optional custom grok patterns defined by this classifier. For more information, see custom patterns in Writing Custom Classifiers.
public GrokClassifier.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<GrokClassifier.Builder,GrokClassifier>
public static GrokClassifier.Builder builder()
public static Class<? extends GrokClassifier.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
SdkPojo
SdkPojo
class,
and is generated based on a service model.
If an SdkPojo
class does not have any inherited fields, equalsBySdkFields
and equals
are essentially the same.
equalsBySdkFields
in interface SdkPojo
obj
- the object to be compared withpublic final String toString()
Copyright © 2021 Amazon Web Services, Inc. All Rights Reserved.