com.hubspot.chrome.devtools.client.core.target.RemoteLocation Maven / Gradle / Ivy
package com.hubspot.chrome.devtools.client.core.target;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
public final class RemoteLocation {
private String host;
private Integer port;
@JsonCreator
public RemoteLocation(@JsonProperty("host") String host, @JsonProperty("port") Integer port) {
this.host = host;
this.port = port;
}
public String getHost() {
return host;
}
public Integer getPort() {
return port;
}
public static RemoteLocation.Builder builder() {
return new RemoteLocation.Builder();
}
public static final class Builder {
private String host;
private Integer port;
private Builder() {
}
public RemoteLocation.Builder setHost(String host) {
this.host = host;
return this;
}
public RemoteLocation.Builder setPort(Integer port) {
this.port = port;
return this;
}
public RemoteLocation build() {
return new RemoteLocation(host, port);
}
}
}