Class CfnTransformerPropsMixin.CsvProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.logs.CfnTransformerPropsMixin.CsvProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTransformerPropsMixin.CsvProperty>
- Enclosing interface:
CfnTransformerPropsMixin.CsvProperty
@Stability(Stable)
public static final class CfnTransformerPropsMixin.CsvProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTransformerPropsMixin.CsvProperty>
A builder for
CfnTransformerPropsMixin.CsvProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnTransformerPropsMixin.CsvProperty.getColumns()Sets the value ofCfnTransformerPropsMixin.CsvProperty.getDelimiter()quoteCharacter(String quoteCharacter) Sets the value ofCfnTransformerPropsMixin.CsvProperty.getQuoteCharacter()Sets the value ofCfnTransformerPropsMixin.CsvProperty.getSource()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
columns
@Stability(Stable) public CfnTransformerPropsMixin.CsvProperty.Builder columns(List<String> columns) Sets the value ofCfnTransformerPropsMixin.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 ofCfnTransformerPropsMixin.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
@Stability(Stable) public CfnTransformerPropsMixin.CsvProperty.Builder quoteCharacter(String quoteCharacter) Sets the value ofCfnTransformerPropsMixin.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 ofCfnTransformerPropsMixin.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<CfnTransformerPropsMixin.CsvProperty>- Returns:
- a new instance of
CfnTransformerPropsMixin.CsvProperty - Throws:
NullPointerException- if any required attribute was not provided
-