com.hubspot.chrome.devtools.client.core.applicationcache.FrameWithManifest Maven / Gradle / Ivy
package com.hubspot.chrome.devtools.client.core.applicationcache;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.hubspot.chrome.devtools.client.core.page.FrameId;
/**
* Frame identifier - manifest URL pair.
*/
public final class FrameWithManifest {
private FrameId frameId;
private String manifestURL;
private Integer status;
@JsonCreator
public FrameWithManifest(@JsonProperty("frameId") FrameId frameId,
@JsonProperty("manifestURL") String manifestURL, @JsonProperty("status") Integer status) {
this.frameId = frameId;
this.manifestURL = manifestURL;
this.status = status;
}
public FrameId getFrameId() {
return frameId;
}
public String getManifestURL() {
return manifestURL;
}
public Integer getStatus() {
return status;
}
public static FrameWithManifest.Builder builder() {
return new FrameWithManifest.Builder();
}
public static final class Builder {
private FrameId frameId;
private String manifestURL;
private Integer status;
private Builder() {
}
public FrameWithManifest.Builder setFrameId(FrameId frameId) {
this.frameId = frameId;
return this;
}
public FrameWithManifest.Builder setManifestURL(String manifestURL) {
this.manifestURL = manifestURL;
return this;
}
public FrameWithManifest.Builder setStatus(Integer status) {
this.status = status;
return this;
}
public FrameWithManifest build() {
return new FrameWithManifest(frameId, manifestURL, status);
}
}
}