public VpcConfigResponse withEndpointPublicAccess(Boolean endpointPublicAccess) {
        setEndpointPublicAccess(endpointPublicAccess);
        return this;
    }
<p>
Whether the public API server endpoint is enabled.
</p>

@param endpointPublicAccess
       Whether the public API server endpoint is enabled.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-eks/src/main/java/com/amazonaws/services/eks/model/VpcConfigResponse.java