Class CfnCanaryPropsMixin.BaseScreenshotProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.synthetics.CfnCanaryPropsMixin.BaseScreenshotProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCanaryPropsMixin.BaseScreenshotProperty>
- Enclosing interface:
CfnCanaryPropsMixin.BaseScreenshotProperty
@Stability(Stable)
public static final class CfnCanaryPropsMixin.BaseScreenshotProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCanaryPropsMixin.BaseScreenshotProperty>
A builder for
CfnCanaryPropsMixin.BaseScreenshotProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.ignoreCoordinates(List<String> ignoreCoordinates) Sets the value ofCfnCanaryPropsMixin.BaseScreenshotProperty.getIgnoreCoordinates()screenshotName(String screenshotName) Sets the value ofCfnCanaryPropsMixin.BaseScreenshotProperty.getScreenshotName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
ignoreCoordinates
@Stability(Stable) public CfnCanaryPropsMixin.BaseScreenshotProperty.Builder ignoreCoordinates(List<String> ignoreCoordinates) Sets the value ofCfnCanaryPropsMixin.BaseScreenshotProperty.getIgnoreCoordinates()- Parameters:
ignoreCoordinates- Coordinates that define the part of a screen to ignore during screenshot comparisons. To obtain the coordinates to use here, use the CloudWatch console to draw the boundaries on the screen. For more information, see Edit or delete a canary .- Returns:
this
-
screenshotName
@Stability(Stable) public CfnCanaryPropsMixin.BaseScreenshotProperty.Builder screenshotName(String screenshotName) Sets the value ofCfnCanaryPropsMixin.BaseScreenshotProperty.getScreenshotName()- Parameters:
screenshotName- The name of the screenshot. This is generated the first time the canary is run after theUpdateCanaryoperation that specified for this canary to perform visual monitoring.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCanaryPropsMixin.BaseScreenshotProperty>- Returns:
- a new instance of
CfnCanaryPropsMixin.BaseScreenshotProperty - Throws:
NullPointerException- if any required attribute was not provided
-