Class CfnCanaryPropsMixin.VisualReferenceProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.synthetics.CfnCanaryPropsMixin.VisualReferenceProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCanaryPropsMixin.VisualReferenceProperty>
- Enclosing interface:
CfnCanaryPropsMixin.VisualReferenceProperty
@Stability(Stable)
public static final class CfnCanaryPropsMixin.VisualReferenceProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCanaryPropsMixin.VisualReferenceProperty>
A builder for
CfnCanaryPropsMixin.VisualReferenceProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbaseCanaryRunId(String baseCanaryRunId) Sets the value ofCfnCanaryPropsMixin.VisualReferenceProperty.getBaseCanaryRunId()baseScreenshots(List<? extends Object> baseScreenshots) Sets the value ofCfnCanaryPropsMixin.VisualReferenceProperty.getBaseScreenshots()baseScreenshots(IResolvable baseScreenshots) Sets the value ofCfnCanaryPropsMixin.VisualReferenceProperty.getBaseScreenshots()browserType(String browserType) Sets the value ofCfnCanaryPropsMixin.VisualReferenceProperty.getBrowserType()build()Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
baseCanaryRunId
@Stability(Stable) public CfnCanaryPropsMixin.VisualReferenceProperty.Builder baseCanaryRunId(String baseCanaryRunId) Sets the value ofCfnCanaryPropsMixin.VisualReferenceProperty.getBaseCanaryRunId()- Parameters:
baseCanaryRunId- Specifies which canary run to use the screenshots from as the baseline for future visual monitoring with this canary. 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 CfnCanaryPropsMixin.VisualReferenceProperty.Builder baseScreenshots(IResolvable baseScreenshots) Sets the value ofCfnCanaryPropsMixin.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 CfnCanaryPropsMixin.VisualReferenceProperty.Builder baseScreenshots(List<? extends Object> baseScreenshots) Sets the value ofCfnCanaryPropsMixin.VisualReferenceProperty.getBaseScreenshots()- Parameters:
baseScreenshots- An array of screenshots that are used as the baseline for comparisons during visual monitoring.- Returns:
this
-
browserType
@Stability(Stable) public CfnCanaryPropsMixin.VisualReferenceProperty.Builder browserType(String browserType) Sets the value ofCfnCanaryPropsMixin.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<CfnCanaryPropsMixin.VisualReferenceProperty>- Returns:
- a new instance of
CfnCanaryPropsMixin.VisualReferenceProperty - Throws:
NullPointerException- if any required attribute was not provided
-