Class CustomTestOptions.Builder
java.lang.Object
software.amazon.awscdk.services.synthetics.CustomTestOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CustomTestOptions>
- Enclosing interface:
CustomTestOptions
@Stability(Experimental)
public static final class CustomTestOptions.Builder
extends Object
implements software.amazon.jsii.Builder<CustomTestOptions>
A builder for
CustomTestOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCustomTestOptions.getCode()
Sets the value ofCustomTestOptions.getHandler()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
code
Sets the value ofCustomTestOptions.getCode()
- Parameters:
code
- The code of the canary script. This parameter is required.- Returns:
this
-
handler
Sets the value ofCustomTestOptions.getHandler()
- Parameters:
handler
- The handler for the code. This parameter is required. Must end with.handler
.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CustomTestOptions>
- Returns:
- a new instance of
CustomTestOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-