Class ContinuousLoggingProps.Builder
java.lang.Object
software.amazon.awscdk.services.glue.ContinuousLoggingProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ContinuousLoggingProps>
- Enclosing interface:
- ContinuousLoggingProps
@Stability(Experimental)
public static final class ContinuousLoggingProps.Builder
extends Object
implements software.amazon.jsii.Builder<ContinuousLoggingProps>
A builder for
ContinuousLoggingProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.conversionPattern(String conversionPattern) Sets the value ofContinuousLoggingProps.getConversionPattern()Sets the value ofContinuousLoggingProps.getEnabled()Sets the value ofContinuousLoggingProps.getLogGroup()logStreamPrefix(String logStreamPrefix) Sets the value ofContinuousLoggingProps.getLogStreamPrefix()Sets the value ofContinuousLoggingProps.getQuiet()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enabled
Sets the value ofContinuousLoggingProps.getEnabled()- Parameters:
enabled- Enable continouous logging. This parameter is required.- Returns:
this
-
conversionPattern
@Stability(Experimental) public ContinuousLoggingProps.Builder conversionPattern(String conversionPattern) Sets the value ofContinuousLoggingProps.getConversionPattern()- Parameters:
conversionPattern- Apply the provided conversion pattern. This is a Log4j Conversion Pattern to customize driver and executor logs.- Returns:
this
-
logGroup
Sets the value ofContinuousLoggingProps.getLogGroup()- Parameters:
logGroup- Specify a custom CloudWatch log group name.- Returns:
this
-
logStreamPrefix
@Stability(Experimental) public ContinuousLoggingProps.Builder logStreamPrefix(String logStreamPrefix) Sets the value ofContinuousLoggingProps.getLogStreamPrefix()- Parameters:
logStreamPrefix- Specify a custom CloudWatch log stream prefix.- Returns:
this
-
quiet
Sets the value ofContinuousLoggingProps.getQuiet()- Parameters:
quiet- Filter out non-useful Apache Spark driver/executor and Apache Hadoop YARN heartbeat log messages.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ContinuousLoggingProps>- Returns:
- a new instance of
ContinuousLoggingProps - Throws:
NullPointerException- if any required attribute was not provided
-