Class CfnSubscriber.LogConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.eventsv2.CfnSubscriber.LogConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSubscriber.LogConfigurationProperty>
- Enclosing interface:
CfnSubscriber.LogConfigurationProperty
@Stability(Stable)
public static final class CfnSubscriber.LogConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSubscriber.LogConfigurationProperty>
A builder for
CfnSubscriber.LogConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.includePayload(String includePayload) Sets the value ofCfnSubscriber.LogConfigurationProperty.getIncludePayload()Sets the value ofCfnSubscriber.LogConfigurationProperty.getLevel()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
includePayload
@Stability(Stable) public CfnSubscriber.LogConfigurationProperty.Builder includePayload(String includePayload) Sets the value ofCfnSubscriber.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
Sets the value ofCfnSubscriber.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<CfnSubscriber.LogConfigurationProperty>- Returns:
- a new instance of
CfnSubscriber.LogConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-