com.hubspot.chrome.devtools.client.core.runtime.InternalPropertyDescriptor Maven / Gradle / Ivy
package com.hubspot.chrome.devtools.client.core.runtime;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Object internal property descriptor. This property isn't normally visible in JavaScript code.
*/
public final class InternalPropertyDescriptor {
private String name;
private RemoteObject value;
@JsonCreator
public InternalPropertyDescriptor(@JsonProperty("name") String name,
@JsonProperty("value") RemoteObject value) {
this.name = name;
this.value = value;
}
public String getName() {
return name;
}
public RemoteObject getValue() {
return value;
}
public static InternalPropertyDescriptor.Builder builder() {
return new InternalPropertyDescriptor.Builder();
}
public static final class Builder {
private String name;
private RemoteObject value;
private Builder() {
}
public InternalPropertyDescriptor.Builder setName(String name) {
this.name = name;
return this;
}
public InternalPropertyDescriptor.Builder setValue(RemoteObject value) {
this.value = value;
return this;
}
public InternalPropertyDescriptor build() {
return new InternalPropertyDescriptor(name, value);
}
}
}