Class CfnSubscriberPropsMixin.LogConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.eventsv2.CfnSubscriberPropsMixin.LogConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSubscriberPropsMixin.LogConfigurationProperty>
- Enclosing interface:
CfnSubscriberPropsMixin.LogConfigurationProperty
@Stability(Stable)
public static final class CfnSubscriberPropsMixin.LogConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSubscriberPropsMixin.LogConfigurationProperty>
A builder for
CfnSubscriberPropsMixin.LogConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.includePayload(String includePayload) Sets the value ofCfnSubscriberPropsMixin.LogConfigurationProperty.getIncludePayload()Sets the value ofCfnSubscriberPropsMixin.LogConfigurationProperty.getLevel()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
includePayload
@Stability(Stable) public CfnSubscriberPropsMixin.LogConfigurationProperty.Builder includePayload(String includePayload) Sets the value ofCfnSubscriberPropsMixin.LogConfigurationProperty.getIncludePayload()- Parameters:
includePayload- Whether the event payload is included in emitted log records: FULL includes it in every emitted record, and ON_ERROR_ONLY includes it only in error records. The default is ON_ERROR_ONLY.- Returns:
this
-
level
@Stability(Stable) public CfnSubscriberPropsMixin.LogConfigurationProperty.Builder level(String level) Sets the value ofCfnSubscriberPropsMixin.LogConfigurationProperty.getLevel()- Parameters:
level- The minimum log level: OFF (no logging), ERROR, or INFO. Records below this level are not emitted. The default is OFF.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSubscriberPropsMixin.LogConfigurationProperty>- Returns:
- a new instance of
CfnSubscriberPropsMixin.LogConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-