Class CfnApplication.LogPatternProperty.Builder
java.lang.Object
software.amazon.awscdk.services.applicationinsights.CfnApplication.LogPatternProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApplication.LogPatternProperty>
- Enclosing interface:
CfnApplication.LogPatternProperty
@Stability(Stable)
public static final class CfnApplication.LogPatternProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApplication.LogPatternProperty>
A builder for
CfnApplication.LogPatternProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnApplication.LogPatternProperty.getPattern()
patternName
(String patternName) Sets the value ofCfnApplication.LogPatternProperty.getPatternName()
Sets the value ofCfnApplication.LogPatternProperty.getRank()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
pattern
Sets the value ofCfnApplication.LogPatternProperty.getPattern()
- Parameters:
pattern
- A regular expression that defines the log pattern. This parameter is required. A log pattern can contain up to 50 characters, and it cannot be empty.- Returns:
this
-
patternName
Sets the value ofCfnApplication.LogPatternProperty.getPatternName()
- Parameters:
patternName
- The name of the log pattern. This parameter is required. A log pattern name can contain up to 50 characters, and it cannot be empty. The characters can be Unicode letters, digits, or one of the following symbols: period, dash, underscore.- Returns:
this
-
rank
Sets the value ofCfnApplication.LogPatternProperty.getRank()
- Parameters:
rank
- The rank of the log pattern. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnApplication.LogPatternProperty>
- Returns:
- a new instance of
CfnApplication.LogPatternProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-