Class CanaryReference.Builder
java.lang.Object
software.amazon.awscdk.services.synthetics.CanaryReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CanaryReference>
- Enclosing interface:
CanaryReference
@Stability(Stable)
public static final class CanaryReference.Builder
extends Object
implements software.amazon.jsii.Builder<CanaryReference>
A builder for
CanaryReference
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.canaryName
(String canaryName) Sets the value ofCanaryReference.getCanaryName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
canaryName
Sets the value ofCanaryReference.getCanaryName()
- Parameters:
canaryName
- The Name of the Canary resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CanaryReference>
- Returns:
- a new instance of
CanaryReference
- Throws:
NullPointerException
- if any required attribute was not provided
-