com.hubspot.chrome.devtools.client.core.indexeddb.DatabaseWithObjectStores Maven / Gradle / Ivy
package com.hubspot.chrome.devtools.client.core.indexeddb;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/**
* Database with an array of object stores.
*/
public final class DatabaseWithObjectStores {
private String name;
private Integer version;
private List objectStores;
@JsonCreator
public DatabaseWithObjectStores(@JsonProperty("name") String name,
@JsonProperty("version") Integer version,
@JsonProperty("objectStores") List objectStores) {
this.name = name;
this.version = version;
this.objectStores = objectStores;
}
public String getName() {
return name;
}
public Integer getVersion() {
return version;
}
public List getObjectStores() {
return objectStores;
}
public static DatabaseWithObjectStores.Builder builder() {
return new DatabaseWithObjectStores.Builder();
}
public static final class Builder {
private String name;
private Integer version;
private List objectStores;
private Builder() {
}
public DatabaseWithObjectStores.Builder setName(String name) {
this.name = name;
return this;
}
public DatabaseWithObjectStores.Builder setVersion(Integer version) {
this.version = version;
return this;
}
public DatabaseWithObjectStores.Builder setObjectStores(List objectStores) {
this.objectStores = objectStores;
return this;
}
public DatabaseWithObjectStores build() {
return new DatabaseWithObjectStores(name, version, objectStores);
}
}
}