Class CfnApplicationPropsMixin.WindowsEventProperty.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.applicationinsights.mixins.CfnApplicationPropsMixin.WindowsEventProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApplicationPropsMixin.WindowsEventProperty>
- Enclosing interface:
CfnApplicationPropsMixin.WindowsEventProperty
@Stability(Stable)
public static final class CfnApplicationPropsMixin.WindowsEventProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApplicationPropsMixin.WindowsEventProperty>
A builder for
CfnApplicationPropsMixin.WindowsEventProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.eventLevels(List<String> eventLevels) Sets the value ofCfnApplicationPropsMixin.WindowsEventProperty.getEventLevels()Sets the value ofCfnApplicationPropsMixin.WindowsEventProperty.getEventName()logGroupName(String logGroupName) Sets the value ofCfnApplicationPropsMixin.WindowsEventProperty.getLogGroupName()patternSet(String patternSet) Sets the value ofCfnApplicationPropsMixin.WindowsEventProperty.getPatternSet()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
eventLevels
@Stability(Stable) public CfnApplicationPropsMixin.WindowsEventProperty.Builder eventLevels(List<String> eventLevels) Sets the value ofCfnApplicationPropsMixin.WindowsEventProperty.getEventLevels()- Parameters:
eventLevels- The levels of event to log. 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
@Stability(Stable) public CfnApplicationPropsMixin.WindowsEventProperty.Builder eventName(String eventName) Sets the value ofCfnApplicationPropsMixin.WindowsEventProperty.getEventName()- Parameters:
eventName- The type of Windows Events to log, equivalent to the Windows Event log channel name. 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 CfnApplicationPropsMixin.WindowsEventProperty.Builder logGroupName(String logGroupName) Sets the value ofCfnApplicationPropsMixin.WindowsEventProperty.getLogGroupName()- Parameters:
logGroupName- The CloudWatch log group name to be associated with the monitored log.- Returns:
this
-
patternSet
@Stability(Stable) public CfnApplicationPropsMixin.WindowsEventProperty.Builder patternSet(String patternSet) Sets the value ofCfnApplicationPropsMixin.WindowsEventProperty.getPatternSet()- Parameters:
patternSet- The log pattern set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnApplicationPropsMixin.WindowsEventProperty>- Returns:
- a new instance of
CfnApplicationPropsMixin.WindowsEventProperty - Throws:
NullPointerException- if any required attribute was not provided
-