com.applitools.eyes.settings.CloseSettings Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of eyes-sdk-core-java5 Show documentation
Show all versions of eyes-sdk-core-java5 Show documentation
Applitools Eyes SDK base for Java
package com.applitools.eyes.settings;
import com.fasterxml.jackson.annotation.JsonInclude;
@JsonInclude(JsonInclude.Include.NON_NULL)
public class CloseSettings implements ICloseSettings {
private Boolean throwErr;
private Boolean updateBaselineIfNew;
private Boolean updateBaselineIfDifferent;
@Override
public ICloseSettings setThrowErr(Boolean throwErr) {
CloseSettings clone = this.clone();
clone.throwErr = throwErr;
return clone;
}
@Override
public ICloseSettings setUpdateBaselineIfNew(Boolean updateBaselineIfNew) {
CloseSettings clone = this.clone();
clone.updateBaselineIfNew = updateBaselineIfNew;
return clone;
}
@Override
public ICloseSettings setUpdateBaselineIfDifferent(Boolean updateBaselineIfDifferent) {
CloseSettings clone = this.clone();
clone.updateBaselineIfDifferent = updateBaselineIfDifferent;
return clone;
}
public CloseSettings clone() {
CloseSettings clone = new CloseSettings();
clone.throwErr = this.throwErr;
clone.updateBaselineIfNew = this.updateBaselineIfNew;
clone.updateBaselineIfDifferent = this.updateBaselineIfDifferent;
return clone;
}
@Override
public Boolean getThrowErr() {
return this.throwErr;
}
@Override
public Boolean getUpdateBaselineIfNew() {
return null;
}
@Override
public Boolean getUpdateBaselineIfDifferent() {
return null;
}
}