Class TransformerProps.Builder
java.lang.Object
software.amazon.awscdk.services.logs.TransformerProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<TransformerProps>
- Enclosing interface:
TransformerProps
@Stability(Stable)
public static final class TransformerProps.Builder
extends Object
implements software.amazon.jsii.Builder<TransformerProps>
A builder for
TransformerProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofTransformerProps.getLogGroup()transformerConfig(List<? extends IProcessor> transformerConfig) Sets the value ofTransformerProps.getTransformerConfig()transformerName(String transformerName) Sets the value ofTransformerProps.getTransformerName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
logGroup
Sets the value ofTransformerProps.getLogGroup()- Parameters:
logGroup- Existing log group that you want to associate with this transformer. This parameter is required.- Returns:
this
-
transformerConfig
@Stability(Stable) public TransformerProps.Builder transformerConfig(List<? extends IProcessor> transformerConfig) Sets the value ofTransformerProps.getTransformerConfig()- Parameters:
transformerConfig- List of processors in a transformer. This parameter is required.- Returns:
this
-
transformerName
Sets the value ofTransformerProps.getTransformerName()- Parameters:
transformerName- Name of the transformer. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<TransformerProps>- Returns:
- a new instance of
TransformerProps - Throws:
NullPointerException- if any required attribute was not provided
-