Interface PatternToken.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<PatternToken.Builder,PatternToken>,SdkBuilder<PatternToken.Builder,PatternToken>,SdkPojo
- Enclosing class:
- PatternToken
public static interface PatternToken.Builder extends SdkPojo, CopyableBuilder<PatternToken.Builder,PatternToken>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PatternToken.BuilderdynamicTokenPosition(Integer dynamicTokenPosition)For a dynamic token, this indicates where in the pattern that this token appears, related to other dynamic tokens.PatternToken.Builderenumerations(Map<String,Long> enumerations)Contains the values found for a dynamic token, and the number of times each value was found.PatternToken.BuilderinferredTokenName(String inferredTokenName)A name that CloudWatch Logs assigned to this dynamic token to make the pattern more readable.PatternToken.BuilderisDynamic(Boolean isDynamic)Specifies whether this is a dynamic token.PatternToken.BuildertokenString(String tokenString)The string represented by this token.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
dynamicTokenPosition
PatternToken.Builder dynamicTokenPosition(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 is2, and so on.- Parameters:
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 of1, the one that appears second is2, and so on.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isDynamic
PatternToken.Builder isDynamic(Boolean isDynamic)
Specifies whether this is a dynamic token.
- Parameters:
isDynamic- Specifies whether this is a dynamic token.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tokenString
PatternToken.Builder tokenString(String tokenString)
The string represented by this token. If this is a dynamic token, the value will be
<*>- Parameters:
tokenString- The string represented by this token. If this is a dynamic token, the value will be<*>- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
enumerations
PatternToken.Builder enumerations(Map<String,Long> enumerations)
Contains the values found for a dynamic token, and the number of times each value was found.
- Parameters:
enumerations- Contains the values found for a dynamic token, and the number of times each value was found.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inferredTokenName
PatternToken.Builder inferredTokenName(String inferredTokenName)
A name that CloudWatch Logs assigned to this dynamic token to make the pattern more readable. The string part of the
inferredTokenNamegives you a clearer idea of the content of this token. The number part of theinferredTokenNameshows where in the pattern this token appears, compared to other dynamic tokens. CloudWatch Logs assigns the string part of the name based on analyzing the content of the log events that contain it.For example, an inferred token name of
IPAddress-3means that the token represents an IP address, and this token is the third dynamic token in the pattern.- Parameters:
inferredTokenName- A name that CloudWatch Logs assigned to this dynamic token to make the pattern more readable. The string part of theinferredTokenNamegives you a clearer idea of the content of this token. The number part of theinferredTokenNameshows where in the pattern this token appears, compared to other dynamic tokens. CloudWatch Logs assigns the string part of the name based on analyzing the content of the log events that contain it.For example, an inferred token name of
IPAddress-3means that the token represents an IP address, and this token is the third dynamic token in the pattern.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-