@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class VisualReferenceInput extends Object implements Serializable, Cloneable, StructuredPojo
An object that specifies what screenshots to use as a baseline for visual monitoring by this canary, and optionally the 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
Constructor and Description |
---|
VisualReferenceInput() |
Modifier and Type | Method and Description |
---|---|
VisualReferenceInput |
clone() |
boolean |
equals(Object obj) |
String |
getBaseCanaryRunId()
Specifies which canary run to use the screenshots from as the baseline for future visual monitoring with this
canary.
|
List<BaseScreenshot> |
getBaseScreenshots()
An array of screenshots that will be used as the baseline for visual monitoring in future runs of this canary.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBaseCanaryRunId(String baseCanaryRunId)
Specifies which canary run to use the screenshots from as the baseline for future visual monitoring with this
canary.
|
void |
setBaseScreenshots(Collection<BaseScreenshot> baseScreenshots)
An array of screenshots that will be used as the baseline for visual monitoring in future runs of this canary.
|
String |
toString()
Returns a string representation of this object.
|
VisualReferenceInput |
withBaseCanaryRunId(String baseCanaryRunId)
Specifies which canary run to use the screenshots from as the baseline for future visual monitoring with this
canary.
|
VisualReferenceInput |
withBaseScreenshots(BaseScreenshot... baseScreenshots)
An array of screenshots that will be used as the baseline for visual monitoring in future runs of this canary.
|
VisualReferenceInput |
withBaseScreenshots(Collection<BaseScreenshot> baseScreenshots)
An array of screenshots that will be used as the baseline for visual monitoring in future runs of this canary.
|
public List<BaseScreenshot> getBaseScreenshots()
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 void setBaseScreenshots(Collection<BaseScreenshot> 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.
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 VisualReferenceInput withBaseScreenshots(BaseScreenshot... 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.
NOTE: This method appends the values to the existing list (if any). Use
setBaseScreenshots(java.util.Collection)
or withBaseScreenshots(java.util.Collection)
if you
want to override the existing values.
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 VisualReferenceInput withBaseScreenshots(Collection<BaseScreenshot> 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.
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 void setBaseCanaryRunId(String 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.
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.public String getBaseCanaryRunId()
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.
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.public VisualReferenceInput withBaseCanaryRunId(String 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.
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.public String toString()
toString
in class Object
Object.toString()
public VisualReferenceInput clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.