Class CfnCanary.VisualReferenceProperty.Builder
java.lang.Object
software.amazon.awscdk.services.synthetics.CfnCanary.VisualReferenceProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCanary.VisualReferenceProperty>
- Enclosing interface:
- CfnCanary.VisualReferenceProperty
@Stability(Stable)
public static final class CfnCanary.VisualReferenceProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCanary.VisualReferenceProperty>
A builder for
CfnCanary.VisualReferenceProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbaseCanaryRunId
(String baseCanaryRunId) Sets the value ofCfnCanary.VisualReferenceProperty.getBaseCanaryRunId()
baseScreenshots
(List<? extends Object> baseScreenshots) Sets the value ofCfnCanary.VisualReferenceProperty.getBaseScreenshots()
baseScreenshots
(IResolvable baseScreenshots) Sets the value ofCfnCanary.VisualReferenceProperty.getBaseScreenshots()
build()
Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
baseCanaryRunId
@Stability(Stable) public CfnCanary.VisualReferenceProperty.Builder baseCanaryRunId(String baseCanaryRunId) Sets the value ofCfnCanary.VisualReferenceProperty.getBaseCanaryRunId()
- Parameters:
baseCanaryRunId
- Specifies which canary run to use the screenshots from as the baseline for future visual monitoring with this canary. This parameter is required. Valid values arenextrun
to use the screenshots from the next run after this update is made,lastrun
to use the screenshots from the most recent run before this update was made, or the value ofId
in the CanaryRun from any past run of this canary.- Returns:
this
-
baseScreenshots
@Stability(Stable) public CfnCanary.VisualReferenceProperty.Builder baseScreenshots(IResolvable baseScreenshots) Sets the value ofCfnCanary.VisualReferenceProperty.getBaseScreenshots()
- Parameters:
baseScreenshots
- An array of screenshots that are used as the baseline for comparisons during visual monitoring.- Returns:
this
-
baseScreenshots
@Stability(Stable) public CfnCanary.VisualReferenceProperty.Builder baseScreenshots(List<? extends Object> baseScreenshots) Sets the value ofCfnCanary.VisualReferenceProperty.getBaseScreenshots()
- Parameters:
baseScreenshots
- An array of screenshots that are used as the baseline for comparisons during visual monitoring.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCanary.VisualReferenceProperty>
- Returns:
- a new instance of
CfnCanary.VisualReferenceProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-