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
Constructors -
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()browserType(String browserType) Sets the value ofCfnCanary.VisualReferenceProperty.getBrowserType()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 arenextrunto use the screenshots from the next run after this update is made,lastrunto use the screenshots from the most recent run before this update was made, or the value ofIdin 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
-
browserType
Sets the value ofCfnCanary.VisualReferenceProperty.getBrowserType()- Parameters:
browserType- The browser type associated with this visual reference configuration. Valid values areCHROMEandFIREFOX.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCanary.VisualReferenceProperty>- Returns:
- a new instance of
CfnCanary.VisualReferenceProperty - Throws:
NullPointerException- if any required attribute was not provided
-