public static final class CfnApplication.WindowsEventProperty.Builder
extends java.lang.Object
CfnApplication.WindowsEventProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnApplication.WindowsEventProperty |
build()
Builds the configured instance.
|
CfnApplication.WindowsEventProperty.Builder |
eventLevels(java.util.List<java.lang.String> eventLevels)
Sets the value of
CfnApplication.WindowsEventProperty.getEventLevels() |
CfnApplication.WindowsEventProperty.Builder |
eventName(java.lang.String eventName)
Sets the value of
CfnApplication.WindowsEventProperty.getEventName() |
CfnApplication.WindowsEventProperty.Builder |
logGroupName(java.lang.String logGroupName)
Sets the value of
CfnApplication.WindowsEventProperty.getLogGroupName() |
CfnApplication.WindowsEventProperty.Builder |
patternSet(java.lang.String patternSet)
Sets the value of
CfnApplication.WindowsEventProperty.getPatternSet() |
public CfnApplication.WindowsEventProperty.Builder eventLevels(java.util.List<java.lang.String> eventLevels)
CfnApplication.WindowsEventProperty.getEventLevels()
eventLevels
- The levels of event to log. This parameter is required.
You must specify each level to log. Possible values include INFORMATION
, WARNING
, ERROR
, CRITICAL
, and VERBOSE
. This field is required for each type of Windows Event to log.this
public CfnApplication.WindowsEventProperty.Builder eventName(java.lang.String eventName)
CfnApplication.WindowsEventProperty.getEventName()
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.this
public CfnApplication.WindowsEventProperty.Builder logGroupName(java.lang.String logGroupName)
CfnApplication.WindowsEventProperty.getLogGroupName()
logGroupName
- The CloudWatch log group name to be associated with the monitored log. This parameter is required.this
public CfnApplication.WindowsEventProperty.Builder patternSet(java.lang.String patternSet)
CfnApplication.WindowsEventProperty.getPatternSet()
patternSet
- The log pattern set.this
public CfnApplication.WindowsEventProperty build()
CfnApplication.WindowsEventProperty
java.lang.NullPointerException
- if any required attribute was not provided