Class ParserProcessorProps.Builder
java.lang.Object
software.amazon.awscdk.services.logs.ParserProcessorProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ParserProcessorProps>
- Enclosing interface:
ParserProcessorProps
@Stability(Stable)
public static final class ParserProcessorProps.Builder
extends Object
implements software.amazon.jsii.Builder<ParserProcessorProps>
A builder for
ParserProcessorProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.csvOptions
(CsvProperty csvOptions) Sets the value ofParserProcessorProps.getCsvOptions()
grokOptions
(GrokProperty grokOptions) Sets the value ofParserProcessorProps.getGrokOptions()
jsonOptions
(ParseJSONProperty jsonOptions) Sets the value ofParserProcessorProps.getJsonOptions()
keyValueOptions
(ParseKeyValueProperty keyValueOptions) Sets the value ofParserProcessorProps.getKeyValueOptions()
parseToOcsfOptions
(ParseToOCSFProperty parseToOcsfOptions) Sets the value ofinvalid reference
ParserProcessorProps#getParseToOcsfOptions
type
(ParserProcessorType type) Sets the value ofParserProcessorProps.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
Sets the value ofParserProcessorProps.getType()
- Parameters:
type
- The type of parser processor. This parameter is required.- Returns:
this
-
csvOptions
Sets the value ofParserProcessorProps.getCsvOptions()
- Parameters:
csvOptions
- Options for CSV parser. Required when type is CSV.- Returns:
this
-
grokOptions
Sets the value ofParserProcessorProps.getGrokOptions()
- Parameters:
grokOptions
- Options for Grok parser. Required when type is GROK.- Returns:
this
-
jsonOptions
Sets the value ofParserProcessorProps.getJsonOptions()
- Parameters:
jsonOptions
- Options for JSON parser. Required when type is JSON.- Returns:
this
-
keyValueOptions
@Stability(Stable) public ParserProcessorProps.Builder keyValueOptions(ParseKeyValueProperty keyValueOptions) Sets the value ofParserProcessorProps.getKeyValueOptions()
- Parameters:
keyValueOptions
- Options for key-value parser. Required when type is KEY_VALUE.- Returns:
this
-
parseToOcsfOptions
@Stability(Stable) public ParserProcessorProps.Builder parseToOcsfOptions(ParseToOCSFProperty parseToOcsfOptions) Sets the value ofinvalid reference
ParserProcessorProps#getParseToOcsfOptions
- Parameters:
parseToOcsfOptions
- Options for ParseToOCSF parser. Required when type is set to OCSF- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ParserProcessorProps>
- Returns:
- a new instance of
ParserProcessorProps
- Throws:
NullPointerException
- if any required attribute was not provided
-