Class ParseKeyValueProperty.Builder
java.lang.Object
software.amazon.awscdk.services.logs.ParseKeyValueProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ParseKeyValueProperty>
- Enclosing interface:
ParseKeyValueProperty
@Stability(Stable)
public static final class ParseKeyValueProperty.Builder
extends Object
implements software.amazon.jsii.Builder<ParseKeyValueProperty>
A builder for
ParseKeyValueProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.destination
(String destination) Sets the value ofParseKeyValueProperty.getDestination()
fieldDelimiter
(KeyValuePairDelimiter fieldDelimiter) Sets the value ofParseKeyValueProperty.getFieldDelimiter()
Sets the value ofParseKeyValueProperty.getKeyPrefix()
keyValueDelimiter
(KeyValueDelimiter keyValueDelimiter) Sets the value ofParseKeyValueProperty.getKeyValueDelimiter()
nonMatchValue
(String nonMatchValue) Sets the value ofParseKeyValueProperty.getNonMatchValue()
overwriteIfExists
(Boolean overwriteIfExists) Sets the value ofParseKeyValueProperty.getOverwriteIfExists()
Sets the value ofParseKeyValueProperty.getSource()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
destination
Sets the value ofParseKeyValueProperty.getDestination()
- Parameters:
destination
- The destination field to put the extracted key-value pairs into.- Returns:
this
-
fieldDelimiter
@Stability(Stable) public ParseKeyValueProperty.Builder fieldDelimiter(KeyValuePairDelimiter fieldDelimiter) Sets the value ofParseKeyValueProperty.getFieldDelimiter()
- Parameters:
fieldDelimiter
- The field delimiter string that is used between key-value pairs in the original log events.- Returns:
this
-
keyPrefix
Sets the value ofParseKeyValueProperty.getKeyPrefix()
- Parameters:
keyPrefix
- If you want to add a prefix to all transformed keys, specify it here.- Returns:
this
-
keyValueDelimiter
@Stability(Stable) public ParseKeyValueProperty.Builder keyValueDelimiter(KeyValueDelimiter keyValueDelimiter) Sets the value ofParseKeyValueProperty.getKeyValueDelimiter()
- Parameters:
keyValueDelimiter
- The delimiter string to use between the key and value in each pair in the transformed log event.- Returns:
this
-
nonMatchValue
Sets the value ofParseKeyValueProperty.getNonMatchValue()
- Parameters:
nonMatchValue
- A value to insert into the value field in the result, when a key-value pair is not successfully split.- Returns:
this
-
overwriteIfExists
@Stability(Stable) public ParseKeyValueProperty.Builder overwriteIfExists(Boolean overwriteIfExists) Sets the value ofParseKeyValueProperty.getOverwriteIfExists()
- Parameters:
overwriteIfExists
- Specifies whether to overwrite the value if the destination key already exists.- Returns:
this
-
source
Sets the value ofParseKeyValueProperty.getSource()
- Parameters:
source
- Path to the field in the log event that will be parsed. Use dot notation to access child fields.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ParseKeyValueProperty>
- Returns:
- a new instance of
ParseKeyValueProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-