Class CfnCanary.BaseScreenshotProperty.Builder
java.lang.Object
software.amazon.awscdk.services.synthetics.CfnCanary.BaseScreenshotProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCanary.BaseScreenshotProperty>
- Enclosing interface:
- CfnCanary.BaseScreenshotProperty
@Stability(Stable)
public static final class CfnCanary.BaseScreenshotProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCanary.BaseScreenshotProperty>
A builder for
CfnCanary.BaseScreenshotProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.ignoreCoordinates
(List<String> ignoreCoordinates) Sets the value ofCfnCanary.BaseScreenshotProperty.getIgnoreCoordinates()
screenshotName
(String screenshotName) Sets the value ofCfnCanary.BaseScreenshotProperty.getScreenshotName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
screenshotName
@Stability(Stable) public CfnCanary.BaseScreenshotProperty.Builder screenshotName(String screenshotName) Sets the value ofCfnCanary.BaseScreenshotProperty.getScreenshotName()
- Parameters:
screenshotName
- The name of the screenshot. This parameter is required. This is generated the first time the canary is run after theUpdateCanary
operation that specified for this canary to perform visual monitoring.- Returns:
this
-
ignoreCoordinates
@Stability(Stable) public CfnCanary.BaseScreenshotProperty.Builder ignoreCoordinates(List<String> ignoreCoordinates) Sets the value ofCfnCanary.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
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCanary.BaseScreenshotProperty>
- Returns:
- a new instance of
CfnCanary.BaseScreenshotProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-