com.hubspot.chrome.devtools.client.core.domsnapshot.NameValue Maven / Gradle / Ivy
package com.hubspot.chrome.devtools.client.core.domsnapshot;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* A name/value pair.
*/
public final class NameValue {
private String name;
private String value;
@JsonCreator
public NameValue(@JsonProperty("name") String name, @JsonProperty("value") String value) {
this.name = name;
this.value = value;
}
public String getName() {
return name;
}
public String getValue() {
return value;
}
public static NameValue.Builder builder() {
return new NameValue.Builder();
}
public static final class Builder {
private String name;
private String value;
private Builder() {
}
public NameValue.Builder setName(String name) {
this.name = name;
return this;
}
public NameValue.Builder setValue(String value) {
this.value = value;
return this;
}
public NameValue build() {
return new NameValue(name, value);
}
}
}