Class CfnLoggingProps.Builder
java.lang.Object
software.amazon.awscdk.services.iot.CfnLoggingProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLoggingProps>
- Enclosing interface:
CfnLoggingProps
@Stability(Stable)
public static final class CfnLoggingProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLoggingProps>
A builder for
CfnLoggingProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnLoggingProps.getAccountId()
build()
Builds the configured instance.defaultLogLevel
(String defaultLogLevel) Sets the value ofCfnLoggingProps.getDefaultLogLevel()
Sets the value ofCfnLoggingProps.getRoleArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accountId
Sets the value ofCfnLoggingProps.getAccountId()
- Parameters:
accountId
- The account ID. This parameter is required.- Returns:
this
-
defaultLogLevel
Sets the value ofCfnLoggingProps.getDefaultLogLevel()
- Parameters:
defaultLogLevel
- The default log level. This parameter is required. Valid Values:DEBUG | INFO | ERROR | WARN | DISABLED
- Returns:
this
-
roleArn
Sets the value ofCfnLoggingProps.getRoleArn()
- Parameters:
roleArn
- The role ARN used for the log. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnLoggingProps>
- Returns:
- a new instance of
CfnLoggingProps
- Throws:
NullPointerException
- if any required attribute was not provided
-