Class CsvProperty.Builder
java.lang.Object
software.amazon.awscdk.services.logs.CsvProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CsvProperty>
- Enclosing interface:
CsvProperty
@Stability(Stable)
public static final class CsvProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CsvProperty>
A builder for
CsvProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCsvProperty.getColumns()
delimiter
(DelimiterCharacter delimiter) Sets the value ofCsvProperty.getDelimiter()
quoteCharacter
(QuoteCharacter quoteCharacter) Sets the value ofCsvProperty.getQuoteCharacter()
Sets the value ofCsvProperty.getSource()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
columns
Sets the value ofCsvProperty.getColumns()
- Parameters:
columns
- An array of names to use for the columns in the transformed log event.- Returns:
this
-
delimiter
Sets the value ofCsvProperty.getDelimiter()
- Parameters:
delimiter
- Character used to separate each column in the original comma-separated value log event.- Returns:
this
-
quoteCharacter
Sets the value ofCsvProperty.getQuoteCharacter()
- Parameters:
quoteCharacter
- Character used as a text qualifier for a single column of data.- Returns:
this
-
source
Sets the value ofCsvProperty.getSource()
- Parameters:
source
- The path to the field in the log event that has the comma separated values to be parsed.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CsvProperty>
- Returns:
- a new instance of
CsvProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-