Class CfnClassifier.GrokClassifierProperty.Builder
java.lang.Object
software.amazon.awscdk.services.glue.CfnClassifier.GrokClassifierProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnClassifier.GrokClassifierProperty>
- Enclosing interface:
CfnClassifier.GrokClassifierProperty
@Stability(Stable)
public static final class CfnClassifier.GrokClassifierProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnClassifier.GrokClassifierProperty>
A builder for
CfnClassifier.GrokClassifierProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.classification
(String classification) Sets the value ofCfnClassifier.GrokClassifierProperty.getClassification()
customPatterns
(String customPatterns) Sets the value ofCfnClassifier.GrokClassifierProperty.getCustomPatterns()
grokPattern
(String grokPattern) Sets the value ofCfnClassifier.GrokClassifierProperty.getGrokPattern()
Sets the value ofCfnClassifier.GrokClassifierProperty.getName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
classification
@Stability(Stable) public CfnClassifier.GrokClassifierProperty.Builder classification(String classification) Sets the value ofCfnClassifier.GrokClassifierProperty.getClassification()
- Parameters:
classification
- An identifier of the data format that the classifier matches, such as Twitter, JSON, Omniture logs, and so on. This parameter is required.- Returns:
this
-
grokPattern
@Stability(Stable) public CfnClassifier.GrokClassifierProperty.Builder grokPattern(String grokPattern) Sets the value ofCfnClassifier.GrokClassifierProperty.getGrokPattern()
- Parameters:
grokPattern
- The grok pattern applied to a data store by this classifier. This parameter is required. For more information, see built-in patterns in Writing Custom Classifiers .- Returns:
this
-
customPatterns
@Stability(Stable) public CfnClassifier.GrokClassifierProperty.Builder customPatterns(String customPatterns) Sets the value ofCfnClassifier.GrokClassifierProperty.getCustomPatterns()
- Parameters:
customPatterns
- Optional custom grok patterns defined by this classifier. For more information, see custom patterns in Writing Custom Classifiers .- Returns:
this
-
name
Sets the value ofCfnClassifier.GrokClassifierProperty.getName()
- Parameters:
name
- The name of the classifier.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnClassifier.GrokClassifierProperty>
- Returns:
- a new instance of
CfnClassifier.GrokClassifierProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-