Class SubstituteStringEntry
java.lang.Object
software.amazon.awssdk.services.cloudwatchlogs.model.SubstituteStringEntry
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<SubstituteStringEntry.Builder,SubstituteStringEntry>
@Generated("software.amazon.awssdk:codegen")
public final class SubstituteStringEntry
extends Object
implements SdkPojo, Serializable, ToCopyableBuilder<SubstituteStringEntry.Builder,SubstituteStringEntry>
This object defines one log field key that will be replaced using the substituteString processor.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) final Stringfrom()The regular expression string to be replaced.final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()static Class<? extends SubstituteStringEntry.Builder>final Stringsource()The key to modifyfinal Stringto()The string to be substituted for each match offromfinal StringtoString()Returns a string representation of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
source
The key to modify
- Returns:
- The key to modify
-
from
The regular expression string to be replaced. Special regex characters such as [ and ] must be escaped using \\ when using double quotes and with \ when using single quotes. For more information, see Class Pattern on the Oracle web site.
- Returns:
- The regular expression string to be replaced. Special regex characters such as [ and ] must be escaped using \\ when using double quotes and with \ when using single quotes. For more information, see Class Pattern on the Oracle web site.
-
to
The string to be substituted for each match of
from- Returns:
- The string to be substituted for each match of
from
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<SubstituteStringEntry.Builder,SubstituteStringEntry>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
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. -
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-