Package com.oracle.bmc.waas.model
Class Origin.Builder
- java.lang.Object
-
- com.oracle.bmc.waas.model.Origin.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Origin
build()
Origin.Builder
copy(Origin model)
Origin.Builder
customHeaders(List<Header> customHeaders)
A list of HTTP headers to forward to your origin.Origin.Builder
httpPort(Integer httpPort)
The HTTP port on the origin that the web application listens on.Origin.Builder
httpsPort(Integer httpsPort)
The HTTPS port on the origin that the web application listens on.Origin.Builder
uri(String uri)
The URI of the origin.
-
-
-
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()
-
copy
public Origin.Builder copy(Origin model)
-
-