@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PatternToken extends Object implements Serializable, Cloneable, StructuredPojo
A tructures that contains information about one pattern token related to an anomaly.
For more information about patterns and tokens, see CreateLogAnomalyDetector.
Constructor and Description |
---|
PatternToken() |
Modifier and Type | Method and Description |
---|---|
PatternToken |
addEnumerationsEntry(String key,
Long value)
Add a single Enumerations entry
|
PatternToken |
clearEnumerationsEntries()
Removes all the entries added into Enumerations.
|
PatternToken |
clone() |
boolean |
equals(Object obj) |
Integer |
getDynamicTokenPosition()
For a dynamic token, this indicates where in the pattern that this token appears, related to other dynamic
tokens.
|
Map<String,Long> |
getEnumerations()
Contains the values found for a dynamic token, and the number of times each value was found.
|
Boolean |
getIsDynamic()
Specifies whether this is a dynamic token.
|
String |
getTokenString()
The string represented by this token.
|
int |
hashCode() |
Boolean |
isDynamic()
Specifies whether this is a dynamic token.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDynamicTokenPosition(Integer dynamicTokenPosition)
For a dynamic token, this indicates where in the pattern that this token appears, related to other dynamic
tokens.
|
void |
setEnumerations(Map<String,Long> enumerations)
Contains the values found for a dynamic token, and the number of times each value was found.
|
void |
setIsDynamic(Boolean isDynamic)
Specifies whether this is a dynamic token.
|
void |
setTokenString(String tokenString)
The string represented by this token.
|
String |
toString()
Returns a string representation of this object.
|
PatternToken |
withDynamicTokenPosition(Integer dynamicTokenPosition)
For a dynamic token, this indicates where in the pattern that this token appears, related to other dynamic
tokens.
|
PatternToken |
withEnumerations(Map<String,Long> enumerations)
Contains the values found for a dynamic token, and the number of times each value was found.
|
PatternToken |
withIsDynamic(Boolean isDynamic)
Specifies whether this is a dynamic token.
|
PatternToken |
withTokenString(String tokenString)
The string represented by this token.
|
public void setDynamicTokenPosition(Integer dynamicTokenPosition)
For a dynamic token, this indicates where in the pattern that this token appears, related to other dynamic
tokens. The dynamic token that appears first has a value of 1
, the one that appears second is
2
, and so on.
dynamicTokenPosition
- For a dynamic token, this indicates where in the pattern that this token appears, related to other dynamic
tokens. The dynamic token that appears first has a value of 1
, the one that appears second is
2
, and so on.public Integer getDynamicTokenPosition()
For a dynamic token, this indicates where in the pattern that this token appears, related to other dynamic
tokens. The dynamic token that appears first has a value of 1
, the one that appears second is
2
, and so on.
1
, the one that appears
second is 2
, and so on.public PatternToken withDynamicTokenPosition(Integer dynamicTokenPosition)
For a dynamic token, this indicates where in the pattern that this token appears, related to other dynamic
tokens. The dynamic token that appears first has a value of 1
, the one that appears second is
2
, and so on.
dynamicTokenPosition
- For a dynamic token, this indicates where in the pattern that this token appears, related to other dynamic
tokens. The dynamic token that appears first has a value of 1
, the one that appears second is
2
, and so on.public void setIsDynamic(Boolean isDynamic)
Specifies whether this is a dynamic token.
isDynamic
- Specifies whether this is a dynamic token.public Boolean getIsDynamic()
Specifies whether this is a dynamic token.
public PatternToken withIsDynamic(Boolean isDynamic)
Specifies whether this is a dynamic token.
isDynamic
- Specifies whether this is a dynamic token.public Boolean isDynamic()
Specifies whether this is a dynamic token.
public void setTokenString(String tokenString)
The string represented by this token. If this is a dynamic token, the value will be <*>
tokenString
- The string represented by this token. If this is a dynamic token, the value will be <*>
public String getTokenString()
The string represented by this token. If this is a dynamic token, the value will be <*>
<*>
public PatternToken withTokenString(String tokenString)
The string represented by this token. If this is a dynamic token, the value will be <*>
tokenString
- The string represented by this token. If this is a dynamic token, the value will be <*>
public Map<String,Long> getEnumerations()
Contains the values found for a dynamic token, and the number of times each value was found.
public void setEnumerations(Map<String,Long> enumerations)
Contains the values found for a dynamic token, and the number of times each value was found.
enumerations
- Contains the values found for a dynamic token, and the number of times each value was found.public PatternToken withEnumerations(Map<String,Long> enumerations)
Contains the values found for a dynamic token, and the number of times each value was found.
enumerations
- Contains the values found for a dynamic token, and the number of times each value was found.public PatternToken addEnumerationsEntry(String key, Long value)
public PatternToken clearEnumerationsEntries()
public String toString()
toString
in class Object
Object.toString()
public PatternToken clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.