@Generated(value="software.amazon.awssdk:codegen") public final class CreateLogPatternRequest extends ApplicationInsightsRequest implements ToCopyableBuilder<CreateLogPatternRequest.Builder,CreateLogPatternRequest>
Modifier and Type | Class and Description |
---|---|
static interface |
CreateLogPatternRequest.Builder |
Modifier and Type | Method and Description |
---|---|
static CreateLogPatternRequest.Builder |
builder() |
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)
Used to retrieve the value of a field from any class that extends
SdkRequest . |
int |
hashCode() |
String |
pattern()
The log pattern.
|
String |
patternName()
The name of the log pattern.
|
String |
patternSetName()
The name of the log pattern set.
|
Integer |
rank()
Rank of the log pattern.
|
String |
resourceGroupName()
The name of the resource group.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CreateLogPatternRequest.Builder> |
serializableBuilderClass() |
CreateLogPatternRequest.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.
|
overrideConfiguration
copy
public final String resourceGroupName()
The name of the resource group.
public final String patternSetName()
The name of the log pattern set.
public final String patternName()
The name of the log pattern.
public final String pattern()
The log pattern. The pattern must be DFA compatible. Patterns that utilize forward lookahead or backreference constructions are not supported.
public final Integer rank()
Rank of the log pattern. Must be a value between 1
and 1,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
rank 1
will be the first to get matched to a log line. A pattern of rank 1,000,000
will
be last to get matched. When you configure custom log patterns from the console, a Low
severity
pattern translates to a 750,000
rank. A Medium
severity pattern translates to a
500,000
rank. And a High
severity pattern translates to a 250,000
rank.
Rank values less than 1
or greater than 1,000,000
are reserved for AWS-provided
patterns.
1
and 1,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 rank 1
will be the first to get matched to a log line. A pattern of rank
1,000,000
will be last to get matched. When you configure custom log patterns from the
console, a Low
severity pattern translates to a 750,000
rank. A
Medium
severity pattern translates to a 500,000
rank. And a High
severity pattern translates to a 250,000
rank. Rank values less than 1
or
greater than 1,000,000
are reserved for AWS-provided patterns.public CreateLogPatternRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<CreateLogPatternRequest.Builder,CreateLogPatternRequest>
toBuilder
in class ApplicationInsightsRequest
public static CreateLogPatternRequest.Builder builder()
public static Class<? extends CreateLogPatternRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode
in class AwsRequest
public final boolean equals(Object obj)
equals
in class AwsRequest
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()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkRequest
SdkRequest
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkRequest.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkRequest
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2021 Amazon Web Services, Inc. All Rights Reserved.