/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Synthetics { namespace Model { /** *

A structure representing a screenshot that is used as a baseline during * visual monitoring comparisons made by the canary.

See Also:

AWS * API Reference

*/ class BaseScreenshot { public: AWS_SYNTHETICS_API BaseScreenshot(); AWS_SYNTHETICS_API BaseScreenshot(Aws::Utils::Json::JsonView jsonValue); AWS_SYNTHETICS_API BaseScreenshot& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SYNTHETICS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The name of the screenshot. This is generated the first time the canary is * run after the UpdateCanary operation that specified for this canary * to perform visual monitoring.

*/ inline const Aws::String& GetScreenshotName() const{ return m_screenshotName; } /** *

The name of the screenshot. This is generated the first time the canary is * run after the UpdateCanary operation that specified for this canary * to perform visual monitoring.

*/ inline bool ScreenshotNameHasBeenSet() const { return m_screenshotNameHasBeenSet; } /** *

The name of the screenshot. This is generated the first time the canary is * run after the UpdateCanary operation that specified for this canary * to perform visual monitoring.

*/ inline void SetScreenshotName(const Aws::String& value) { m_screenshotNameHasBeenSet = true; m_screenshotName = value; } /** *

The name of the screenshot. This is generated the first time the canary is * run after the UpdateCanary operation that specified for this canary * to perform visual monitoring.

*/ inline void SetScreenshotName(Aws::String&& value) { m_screenshotNameHasBeenSet = true; m_screenshotName = std::move(value); } /** *

The name of the screenshot. This is generated the first time the canary is * run after the UpdateCanary operation that specified for this canary * to perform visual monitoring.

*/ inline void SetScreenshotName(const char* value) { m_screenshotNameHasBeenSet = true; m_screenshotName.assign(value); } /** *

The name of the screenshot. This is generated the first time the canary is * run after the UpdateCanary operation that specified for this canary * to perform visual monitoring.

*/ inline BaseScreenshot& WithScreenshotName(const Aws::String& value) { SetScreenshotName(value); return *this;} /** *

The name of the screenshot. This is generated the first time the canary is * run after the UpdateCanary operation that specified for this canary * to perform visual monitoring.

*/ inline BaseScreenshot& WithScreenshotName(Aws::String&& value) { SetScreenshotName(std::move(value)); return *this;} /** *

The name of the screenshot. This is generated the first time the canary is * run after the UpdateCanary operation that specified for this canary * to perform visual monitoring.

*/ inline BaseScreenshot& WithScreenshotName(const char* value) { SetScreenshotName(value); return *this;} /** *

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 * Editing or deleting a canary

*/ inline const Aws::Vector& GetIgnoreCoordinates() const{ return m_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 * Editing or deleting a canary

*/ inline bool IgnoreCoordinatesHasBeenSet() const { return m_ignoreCoordinatesHasBeenSet; } /** *

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 * Editing or deleting a canary

*/ inline void SetIgnoreCoordinates(const Aws::Vector& value) { m_ignoreCoordinatesHasBeenSet = true; m_ignoreCoordinates = value; } /** *

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 * Editing or deleting a canary

*/ inline void SetIgnoreCoordinates(Aws::Vector&& value) { m_ignoreCoordinatesHasBeenSet = true; m_ignoreCoordinates = std::move(value); } /** *

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 * Editing or deleting a canary

*/ inline BaseScreenshot& WithIgnoreCoordinates(const Aws::Vector& value) { SetIgnoreCoordinates(value); return *this;} /** *

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 * Editing or deleting a canary

*/ inline BaseScreenshot& WithIgnoreCoordinates(Aws::Vector&& value) { SetIgnoreCoordinates(std::move(value)); return *this;} /** *

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 * Editing or deleting a canary

*/ inline BaseScreenshot& AddIgnoreCoordinates(const Aws::String& value) { m_ignoreCoordinatesHasBeenSet = true; m_ignoreCoordinates.push_back(value); return *this; } /** *

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 * Editing or deleting a canary

*/ inline BaseScreenshot& AddIgnoreCoordinates(Aws::String&& value) { m_ignoreCoordinatesHasBeenSet = true; m_ignoreCoordinates.push_back(std::move(value)); return *this; } /** *

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 * Editing or deleting a canary

*/ inline BaseScreenshot& AddIgnoreCoordinates(const char* value) { m_ignoreCoordinatesHasBeenSet = true; m_ignoreCoordinates.push_back(value); return *this; } private: Aws::String m_screenshotName; bool m_screenshotNameHasBeenSet = false; Aws::Vector m_ignoreCoordinates; bool m_ignoreCoordinatesHasBeenSet = false; }; } // namespace Model } // namespace Synthetics } // namespace Aws