com.hubspot.chrome.devtools.client.core.indexeddb.KeyPath 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;
/**
* Key path.
*/
public final class KeyPath {
private String type;
private String string;
private List array;
@JsonCreator
public KeyPath(@JsonProperty("type") String type, @JsonProperty("string") String string,
@JsonProperty("array") List array) {
this.type = type;
this.string = string;
this.array = array;
}
public String getType() {
return type;
}
public String getString() {
return string;
}
public List getArray() {
return array;
}
public static KeyPath.Builder builder() {
return new KeyPath.Builder();
}
public static final class Builder {
private String type;
private String string;
private List array;
private Builder() {
}
public KeyPath.Builder setType(String type) {
this.type = type;
return this;
}
public KeyPath.Builder setString(String string) {
this.string = string;
return this;
}
public KeyPath.Builder setArray(List array) {
this.array = array;
return this;
}
public KeyPath build() {
return new KeyPath(type, string, array);
}
}
}