com.hubspot.chrome.devtools.client.core.cachestorage.Header Maven / Gradle / Ivy
package com.hubspot.chrome.devtools.client.core.cachestorage;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
public final class Header {
private String name;
private String value;
@JsonCreator
public Header(@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 Header.Builder builder() {
return new Header.Builder();
}
public static final class Builder {
private String name;
private String value;
private Builder() {
}
public Header.Builder setName(String name) {
this.name = name;
return this;
}
public Header.Builder setValue(String value) {
this.value = value;
return this;
}
public Header build() {
return new Header(name, value);
}
}
}