/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the synthetics-2017-10-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Synthetics.Model
{
///
/// An object that specifies what screenshots to use as a baseline for visual monitoring
/// by this canary. It can optionally also specify parts of the screenshots to ignore
/// during the visual monitoring comparison.
///
///
///
/// Visual monitoring is supported only on canaries running the syn-puppeteer-node-3.2
/// runtime or later. For more information, see
/// Visual monitoring and
/// Visual monitoring blueprint
///
///
public partial class VisualReferenceInput
{
private string _baseCanaryRunId;
private List _baseScreenshots = new List();
///
/// Gets and sets the property BaseCanaryRunId.
///
/// Specifies which canary run to use the screenshots from as the baseline for future
/// visual monitoring with this canary. Valid values are nextrun
to use the
/// screenshots from the next run after this update is made, lastrun
to use
/// the screenshots from the most recent run before this update was made, or the value
/// of Id
in the
/// CanaryRun from any past run of this canary.
///
///
[AWSProperty(Required=true, Min=1, Max=1024)]
public string BaseCanaryRunId
{
get { return this._baseCanaryRunId; }
set { this._baseCanaryRunId = value; }
}
// Check to see if BaseCanaryRunId property is set
internal bool IsSetBaseCanaryRunId()
{
return this._baseCanaryRunId != null;
}
///
/// Gets and sets the property BaseScreenshots.
///
/// An array of screenshots that will be used as the baseline for visual monitoring in
/// future runs of this canary. If there is a screenshot that you don't want to be used
/// for visual monitoring, remove it from this array.
///
///
public List BaseScreenshots
{
get { return this._baseScreenshots; }
set { this._baseScreenshots = value; }
}
// Check to see if BaseScreenshots property is set
internal bool IsSetBaseScreenshots()
{
return this._baseScreenshots != null && this._baseScreenshots.Count > 0;
}
}
}