Class Origin.Builder

  • Enclosing class:
    Origin

    public static class Origin.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • uri

        public Origin.Builder uri​(String uri)
        The URI of the origin.

        Does not support paths. Port numbers should be specified in the httpPort and httpsPort fields.

        Parameters:
        uri - the value to set
        Returns:
        this builder
      • httpPort

        public Origin.Builder httpPort​(Integer httpPort)
        The HTTP port on the origin that the web application listens on.

        If unspecified, defaults to 80. If 0 is specified - the origin is not used for HTTP traffic.

        Parameters:
        httpPort - the value to set
        Returns:
        this builder
      • httpsPort

        public Origin.Builder httpsPort​(Integer httpsPort)
        The HTTPS port on the origin that the web application listens on.

        If unspecified, defaults to 443. If 0 is specified - the origin is not used for HTTPS traffic.

        Parameters:
        httpsPort - the value to set
        Returns:
        this builder
      • customHeaders

        public Origin.Builder customHeaders​(List<Header> customHeaders)
        A list of HTTP headers to forward to your origin.
        Parameters:
        customHeaders - the value to set
        Returns:
        this builder
      • build

        public Origin build()