Class CfnApplication.LogPatternSetProperty.Builder
java.lang.Object
software.amazon.awscdk.services.applicationinsights.CfnApplication.LogPatternSetProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApplication.LogPatternSetProperty>
- Enclosing interface:
- CfnApplication.LogPatternSetProperty
@Stability(Stable)
public static final class CfnApplication.LogPatternSetProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApplication.LogPatternSetProperty>
A builder for
CfnApplication.LogPatternSetProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.logPatterns(List<? extends Object> logPatterns) Sets the value ofCfnApplication.LogPatternSetProperty.getLogPatterns()logPatterns(IResolvable logPatterns) Sets the value ofCfnApplication.LogPatternSetProperty.getLogPatterns()patternSetName(String patternSetName) Sets the value ofCfnApplication.LogPatternSetProperty.getPatternSetName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
logPatterns
@Stability(Stable) public CfnApplication.LogPatternSetProperty.Builder logPatterns(IResolvable logPatterns) Sets the value ofCfnApplication.LogPatternSetProperty.getLogPatterns()- Parameters:
logPatterns- A list of objects that define the log patterns that belong toLogPatternSet. This parameter is required.- Returns:
this
-
logPatterns
@Stability(Stable) public CfnApplication.LogPatternSetProperty.Builder logPatterns(List<? extends Object> logPatterns) Sets the value ofCfnApplication.LogPatternSetProperty.getLogPatterns()- Parameters:
logPatterns- A list of objects that define the log patterns that belong toLogPatternSet. This parameter is required.- Returns:
this
-
patternSetName
@Stability(Stable) public CfnApplication.LogPatternSetProperty.Builder patternSetName(String patternSetName) Sets the value ofCfnApplication.LogPatternSetProperty.getPatternSetName()- Parameters:
patternSetName- The name of the log pattern. This parameter is required. A log pattern name can contain up to 30 characters, and it cannot be empty. The characters can be Unicode letters, digits, or one of the following symbols: period, dash, underscore.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnApplication.LogPatternSetProperty>- Returns:
- a new instance of
CfnApplication.LogPatternSetProperty - Throws:
NullPointerException- if any required attribute was not provided
-