Class CodeConfig.Builder
java.lang.Object
software.amazon.awscdk.services.synthetics.CodeConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CodeConfig>
- Enclosing interface:
- CodeConfig
@Stability(Experimental)
public static final class CodeConfig.Builder
extends Object
implements software.amazon.jsii.Builder<CodeConfig>
A builder for
CodeConfig
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.inlineCode
(String inlineCode) Sets the value ofCodeConfig.getInlineCode()
s3Location
(Location s3Location) Sets the value ofCodeConfig.getS3Location()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
inlineCode
Sets the value ofCodeConfig.getInlineCode()
- Parameters:
inlineCode
- Inline code (mutually exclusive withs3Location
).- Returns:
this
-
s3Location
Sets the value ofCodeConfig.getS3Location()
- Parameters:
s3Location
- The location of the code in S3 (mutually exclusive withinlineCode
).- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CodeConfig>
- Returns:
- a new instance of
CodeConfig
- Throws:
NullPointerException
- if any required attribute was not provided
-