Class CfnFunction.CloudWatchLogsEventProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sam.CfnFunction.CloudWatchLogsEventProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFunction.CloudWatchLogsEventProperty>
- Enclosing interface:
CfnFunction.CloudWatchLogsEventProperty
@Stability(Stable)
public static final class CfnFunction.CloudWatchLogsEventProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFunction.CloudWatchLogsEventProperty>
A builder for
CfnFunction.CloudWatchLogsEventProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.filterPattern
(String filterPattern) Sets the value ofCfnFunction.CloudWatchLogsEventProperty.getFilterPattern()
logGroupName
(String logGroupName) Sets the value ofCfnFunction.CloudWatchLogsEventProperty.getLogGroupName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
filterPattern
@Stability(Stable) public CfnFunction.CloudWatchLogsEventProperty.Builder filterPattern(String filterPattern) Sets the value ofCfnFunction.CloudWatchLogsEventProperty.getFilterPattern()
- Parameters:
filterPattern
- the value to be set. This parameter is required.- Returns:
this
-
logGroupName
@Stability(Stable) public CfnFunction.CloudWatchLogsEventProperty.Builder logGroupName(String logGroupName) Sets the value ofCfnFunction.CloudWatchLogsEventProperty.getLogGroupName()
- Parameters:
logGroupName
- the value to be set. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnFunction.CloudWatchLogsEventProperty>
- Returns:
- a new instance of
CfnFunction.CloudWatchLogsEventProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-