Class ParseToOCSFProperty.Builder
java.lang.Object
software.amazon.awscdk.services.logs.ParseToOCSFProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ParseToOCSFProperty>
- Enclosing interface:
ParseToOCSFProperty
@Stability(Stable)
public static final class ParseToOCSFProperty.Builder
extends Object
implements software.amazon.jsii.Builder<ParseToOCSFProperty>
A builder for
ParseToOCSFProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.eventSource(OCSFSourceType eventSource) Sets the value ofParseToOCSFProperty.getEventSource()ocsfVersion(OCSFVersion ocsfVersion) Sets the value ofParseToOCSFProperty.getOcsfVersion()Sets the value ofParseToOCSFProperty.getSource()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
eventSource
Sets the value ofParseToOCSFProperty.getEventSource()- Parameters:
eventSource- Type of input log event source to convert to OCSF format. This parameter is required.- Returns:
this
-
ocsfVersion
Sets the value ofParseToOCSFProperty.getOcsfVersion()- Parameters:
ocsfVersion- Version of OCSF schema to convert to. This parameter is required.- Returns:
this
-
source
Sets the value ofParseToOCSFProperty.getSource()- Parameters:
source- Path to the field in the log event that will be parsed. Use dot notation to access child fields.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ParseToOCSFProperty>- Returns:
- a new instance of
ParseToOCSFProperty - Throws:
NullPointerException- if any required attribute was not provided
-