Class CfnApplication.WindowsEventProperty.Builder
java.lang.Object
software.amazon.awscdk.services.applicationinsights.CfnApplication.WindowsEventProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApplication.WindowsEventProperty>
- Enclosing interface:
CfnApplication.WindowsEventProperty
@Stability(Stable)
public static final class CfnApplication.WindowsEventProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApplication.WindowsEventProperty>
A builder for
CfnApplication.WindowsEventProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.eventLevels
(List<String> eventLevels) Sets the value ofCfnApplication.WindowsEventProperty.getEventLevels()
Sets the value ofCfnApplication.WindowsEventProperty.getEventName()
logGroupName
(String logGroupName) Sets the value ofCfnApplication.WindowsEventProperty.getLogGroupName()
patternSet
(String patternSet) Sets the value ofCfnApplication.WindowsEventProperty.getPatternSet()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
eventLevels
@Stability(Stable) public CfnApplication.WindowsEventProperty.Builder eventLevels(List<String> eventLevels) Sets the value ofCfnApplication.WindowsEventProperty.getEventLevels()
- Parameters:
eventLevels
- The levels of event to log. This parameter is required. You must specify each level to log. Possible values includeINFORMATION
,WARNING
,ERROR
,CRITICAL
, andVERBOSE
. This field is required for each type of Windows Event to log.- Returns:
this
-
eventName
Sets the value ofCfnApplication.WindowsEventProperty.getEventName()
- Parameters:
eventName
- The type of Windows Events to log, equivalent to the Windows Event log channel name. This parameter is required. For example, System, Security, CustomEventName, and so on. This field is required for each type of Windows event to log.- Returns:
this
-
logGroupName
@Stability(Stable) public CfnApplication.WindowsEventProperty.Builder logGroupName(String logGroupName) Sets the value ofCfnApplication.WindowsEventProperty.getLogGroupName()
- Parameters:
logGroupName
- The CloudWatch log group name to be associated with the monitored log. This parameter is required.- Returns:
this
-
patternSet
Sets the value ofCfnApplication.WindowsEventProperty.getPatternSet()
- Parameters:
patternSet
- The log pattern set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnApplication.WindowsEventProperty>
- Returns:
- a new instance of
CfnApplication.WindowsEventProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-