com.hubspot.imap.ProxyConfigIF Maven / Gradle / Ivy
package com.hubspot.imap;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.google.common.net.HostAndPort;
import java.util.Optional;
import org.immutables.value.Value;
@Value.Immutable
@Value.Style(typeAbstract = { "*IF" }, typeImmutable = "*")
@JsonDeserialize(as = ProxyConfig.class)
@JsonSerialize(as = ProxyConfig.class)
public interface ProxyConfigIF {
HostAndPort proxyHost();
@Value.Default
default Optional proxyLocalIpAddress() {
return Optional.empty();
}
@Value.Default
default Optional proxyPublicIpAddress() {
return Optional.empty();
}
}