Class LogPattern
- java.lang.Object
-
- software.amazon.awssdk.services.applicationinsights.model.LogPattern
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<LogPattern.Builder,LogPattern>
@Generated("software.amazon.awssdk:codegen") public final class LogPattern extends Object implements SdkPojo, Serializable, ToCopyableBuilder<LogPattern.Builder,LogPattern>
An object that defines the log patterns that belongs to a
LogPatternSet.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceLogPattern.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LogPattern.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringpattern()A regular expression that defines the log pattern.StringpatternName()The name of the log pattern.StringpatternSetName()The name of the log pattern.Integerrank()Rank of the log pattern.List<SdkField<?>>sdkFields()static Class<? extends LogPattern.Builder>serializableBuilderClass()LogPattern.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
patternSetName
public final String patternSetName()
The name of the log pattern. A log pattern name can contain as many as 30 characters, and it cannot be empty. The characters can be Unicode letters, digits, or one of the following symbols: period, dash, underscore.
- Returns:
- The name of the log pattern. A log pattern name can contain as many as 30 characters, and it cannot be empty. The characters can be Unicode letters, digits, or one of the following symbols: period, dash, underscore.
-
patternName
public final String patternName()
The name of the log pattern. A log pattern name can contain as many as 50 characters, and it cannot be empty. The characters can be Unicode letters, digits, or one of the following symbols: period, dash, underscore.
- Returns:
- The name of the log pattern. A log pattern name can contain as many as 50 characters, and it cannot be empty. The characters can be Unicode letters, digits, or one of the following symbols: period, dash, underscore.
-
pattern
public final String pattern()
A regular expression that defines the log pattern. A log pattern can contain as many as 50 characters, and it cannot be empty. The pattern must be DFA compatible. Patterns that utilize forward lookahead or backreference constructions are not supported.
- Returns:
- A regular expression that defines the log pattern. A log pattern can contain as many as 50 characters, and it cannot be empty. The pattern must be DFA compatible. Patterns that utilize forward lookahead or backreference constructions are not supported.
-
rank
public final Integer rank()
Rank of the log pattern. Must be a value between
1and1,000,000. The patterns are sorted by rank, so we recommend that you set your highest priority patterns with the lowest rank. A pattern of rank1will be the first to get matched to a log line. A pattern of rank1,000,000will be last to get matched. When you configure custom log patterns from the console, aLowseverity pattern translates to a750,000rank. AMediumseverity pattern translates to a500,000rank. And aHighseverity pattern translates to a250,000rank. Rank values less than1or greater than1,000,000are reserved for AWS-provided patterns.- Returns:
- Rank of the log pattern. Must be a value between
1and1,000,000. The patterns are sorted by rank, so we recommend that you set your highest priority patterns with the lowest rank. A pattern of rank1will be the first to get matched to a log line. A pattern of rank1,000,000will be last to get matched. When you configure custom log patterns from the console, aLowseverity pattern translates to a750,000rank. AMediumseverity pattern translates to a500,000rank. And aHighseverity pattern translates to a250,000rank. Rank values less than1or greater than1,000,000are reserved for AWS-provided patterns.
-
toBuilder
public LogPattern.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<LogPattern.Builder,LogPattern>
-
builder
public static LogPattern.Builder builder()
-
serializableBuilderClass
public static Class<? extends LogPattern.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
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.
-
-