com.hubspot.chrome.devtools.client.core.serviceworker.ServiceWorkerRegistration Maven / Gradle / Ivy
package com.hubspot.chrome.devtools.client.core.serviceworker;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* ServiceWorker registration.
*/
public final class ServiceWorkerRegistration {
private String registrationId;
private String scopeURL;
private Boolean isDeleted;
@JsonCreator
public ServiceWorkerRegistration(@JsonProperty("registrationId") String registrationId,
@JsonProperty("scopeURL") String scopeURL, @JsonProperty("isDeleted") Boolean isDeleted) {
this.registrationId = registrationId;
this.scopeURL = scopeURL;
this.isDeleted = isDeleted;
}
public String getRegistrationId() {
return registrationId;
}
public String getScopeURL() {
return scopeURL;
}
public Boolean getIsDeleted() {
return isDeleted;
}
public static ServiceWorkerRegistration.Builder builder() {
return new ServiceWorkerRegistration.Builder();
}
public static final class Builder {
private String registrationId;
private String scopeURL;
private Boolean isDeleted;
private Builder() {
}
public ServiceWorkerRegistration.Builder setRegistrationId(String registrationId) {
this.registrationId = registrationId;
return this;
}
public ServiceWorkerRegistration.Builder setScopeURL(String scopeURL) {
this.scopeURL = scopeURL;
return this;
}
public ServiceWorkerRegistration.Builder setIsDeleted(Boolean isDeleted) {
this.isDeleted = isDeleted;
return this;
}
public ServiceWorkerRegistration build() {
return new ServiceWorkerRegistration(registrationId, scopeURL, isDeleted);
}
}
}