Class CfnTransformer.CsvProperty.Builder
java.lang.Object
software.amazon.awscdk.services.logs.CfnTransformer.CsvProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTransformer.CsvProperty>
- Enclosing interface:
CfnTransformer.CsvProperty
@Stability(Stable)
public static final class CfnTransformer.CsvProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTransformer.CsvProperty>
A builder for
CfnTransformer.CsvProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnTransformer.CsvProperty.getColumns()Sets the value ofCfnTransformer.CsvProperty.getDelimiter()quoteCharacter(String quoteCharacter) Sets the value ofCfnTransformer.CsvProperty.getQuoteCharacter()Sets the value ofCfnTransformer.CsvProperty.getSource()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
columns
Sets the value ofCfnTransformer.CsvProperty.getColumns()- Parameters:
columns- An array of names to use for the columns in the transformed log event. If you omit this, default column names ([column_1, column_2 ...]) are used.- Returns:
this
-
delimiter
Sets the value ofCfnTransformer.CsvProperty.getDelimiter()- Parameters:
delimiter- The character used to separate each column in the original comma-separated value log event. If you omit this, the processor looks for the comma,character as the delimiter.- Returns:
this
-
quoteCharacter
Sets the value ofCfnTransformer.CsvProperty.getQuoteCharacter()- Parameters:
quoteCharacter- The character used used as a text qualifier for a single column of data. If you omit this, the double quotation mark"character is used.- Returns:
this
-
source
Sets the value ofCfnTransformer.CsvProperty.getSource()- Parameters:
source- The path to the field in the log event that has the comma separated values to be parsed. If you omit this value, the whole log message is processed.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTransformer.CsvProperty>- Returns:
- a new instance of
CfnTransformer.CsvProperty - Throws:
NullPointerException- if any required attribute was not provided
-