public JibContainerBuilder setExposedPorts(Set<Port> ports) {
    containerBuildPlanBuilder.setExposedPorts(ports);
    containerConfigurationBuilder.setExposedPorts(ports);
    return this;
  }
Sets the ports to expose from the container. Ports exposed will allow ingress traffic. This
replaces any previously-set exposed ports.

<p>Use {@link Port#tcp} to expose a port for TCP traffic and {@link Port#udp} to expose a port
for UDP traffic.

<p>This is similar to <a href="https://docs.docker.com/engine/reference/builder/#expose">{@code
EXPOSE} in Dockerfiles</a> or {@code ports} in the <a
href="https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.11/#container-v1-core">Kubernetes
Container spec</a>.

@param ports the ports to expose
@return this
jib-core/src/main/java/com/google/cloud/tools/jib/api/JibContainerBuilder.java