Class CfnLoggingMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.iot.CfnLoggingMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLoggingMixinProps>
- Enclosing interface:
CfnLoggingMixinProps
@Stability(Stable)
public static final class CfnLoggingMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLoggingMixinProps>
A builder for
CfnLoggingMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnLoggingMixinProps.getAccountId()build()Builds the configured instance.defaultLogLevel(String defaultLogLevel) Sets the value ofCfnLoggingMixinProps.getDefaultLogLevel()eventConfigurations(List<? extends Object> eventConfigurations) Sets the value ofCfnLoggingMixinProps.getEventConfigurations()eventConfigurations(IResolvable eventConfigurations) Sets the value ofCfnLoggingMixinProps.getEventConfigurations()Sets the value ofCfnLoggingMixinProps.getRoleArn()Sets the value ofCfnLoggingMixinProps.getRoleArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accountId
Sets the value ofCfnLoggingMixinProps.getAccountId()- Parameters:
accountId- The account ID.- Returns:
this
-
defaultLogLevel
Sets the value ofCfnLoggingMixinProps.getDefaultLogLevel()- Parameters:
defaultLogLevel- The default log level. Valid Values:DEBUG | INFO | ERROR | WARN | DISABLED- Returns:
this
-
eventConfigurations
@Stability(Stable) public CfnLoggingMixinProps.Builder eventConfigurations(IResolvable eventConfigurations) Sets the value ofCfnLoggingMixinProps.getEventConfigurations()- Parameters:
eventConfigurations- Configurations for event-based logging that specifies which event types to log and their logging settings. Overrides account-level logging for the specified event- Returns:
this
-
eventConfigurations
@Stability(Stable) public CfnLoggingMixinProps.Builder eventConfigurations(List<? extends Object> eventConfigurations) Sets the value ofCfnLoggingMixinProps.getEventConfigurations()- Parameters:
eventConfigurations- Configurations for event-based logging that specifies which event types to log and their logging settings. Overrides account-level logging for the specified event- Returns:
this
-
roleArn
Sets the value ofCfnLoggingMixinProps.getRoleArn()- Parameters:
roleArn- The role ARN used for the log.- Returns:
this
-
roleArn
Sets the value ofCfnLoggingMixinProps.getRoleArn()- Parameters:
roleArn- The role ARN used for the log.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLoggingMixinProps>- Returns:
- a new instance of
CfnLoggingMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-