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