com.hubspot.chrome.devtools.client.core.serviceworker.ServiceWorkerErrorMessage Maven / Gradle / Ivy
package com.hubspot.chrome.devtools.client.core.serviceworker;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* ServiceWorker error message.
*/
public final class ServiceWorkerErrorMessage {
private String errorMessage;
private String registrationId;
private String versionId;
private String sourceURL;
private Integer lineNumber;
private Integer columnNumber;
@JsonCreator
public ServiceWorkerErrorMessage(@JsonProperty("errorMessage") String errorMessage,
@JsonProperty("registrationId") String registrationId,
@JsonProperty("versionId") String versionId, @JsonProperty("sourceURL") String sourceURL,
@JsonProperty("lineNumber") Integer lineNumber,
@JsonProperty("columnNumber") Integer columnNumber) {
this.errorMessage = errorMessage;
this.registrationId = registrationId;
this.versionId = versionId;
this.sourceURL = sourceURL;
this.lineNumber = lineNumber;
this.columnNumber = columnNumber;
}
public String getErrorMessage() {
return errorMessage;
}
public String getRegistrationId() {
return registrationId;
}
public String getVersionId() {
return versionId;
}
public String getSourceURL() {
return sourceURL;
}
public Integer getLineNumber() {
return lineNumber;
}
public Integer getColumnNumber() {
return columnNumber;
}
public static ServiceWorkerErrorMessage.Builder builder() {
return new ServiceWorkerErrorMessage.Builder();
}
public static final class Builder {
private String errorMessage;
private String registrationId;
private String versionId;
private String sourceURL;
private Integer lineNumber;
private Integer columnNumber;
private Builder() {
}
public ServiceWorkerErrorMessage.Builder setErrorMessage(String errorMessage) {
this.errorMessage = errorMessage;
return this;
}
public ServiceWorkerErrorMessage.Builder setRegistrationId(String registrationId) {
this.registrationId = registrationId;
return this;
}
public ServiceWorkerErrorMessage.Builder setVersionId(String versionId) {
this.versionId = versionId;
return this;
}
public ServiceWorkerErrorMessage.Builder setSourceURL(String sourceURL) {
this.sourceURL = sourceURL;
return this;
}
public ServiceWorkerErrorMessage.Builder setLineNumber(Integer lineNumber) {
this.lineNumber = lineNumber;
return this;
}
public ServiceWorkerErrorMessage.Builder setColumnNumber(Integer columnNumber) {
this.columnNumber = columnNumber;
return this;
}
public ServiceWorkerErrorMessage build() {
return new ServiceWorkerErrorMessage(errorMessage, registrationId, versionId, sourceURL, lineNumber, columnNumber);
}
}
}