Class HTTPGetAction.Builder
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.core.v1.HTTPGetAction.Builder
-
- Enclosing class:
- HTTPGetAction
public static class HTTPGetAction.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HTTPGetAction.Builder
addToHttpHeaders(HTTPHeader addToHttpHeaders)
HTTPGetAction
build()
HTTPGetAction.Builder
clearHttpHeaders()
HTTPGetAction.Builder
host(java.lang.String host)
Host name to connect to, defaults to the pod IP.HTTPGetAction.Builder
httpHeaders(java.util.Collection<? extends HTTPHeader> httpHeaders)
HTTPGetAction.Builder
path(java.lang.String path)
Path to access on the HTTP server.HTTPGetAction.Builder
port(@NonNull java.lang.String port)
HTTPGetAction.Builder
scheme(java.lang.String scheme)
Scheme to use for connecting to the host.java.lang.String
toString()
-
-
-
Method Detail
-
host
public HTTPGetAction.Builder host(java.lang.String host)
Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead.- Returns:
this
.
-
addToHttpHeaders
public HTTPGetAction.Builder addToHttpHeaders(HTTPHeader addToHttpHeaders)
-
httpHeaders
public HTTPGetAction.Builder httpHeaders(java.util.Collection<? extends HTTPHeader> httpHeaders)
-
clearHttpHeaders
public HTTPGetAction.Builder clearHttpHeaders()
-
path
public HTTPGetAction.Builder path(java.lang.String path)
Path to access on the HTTP server.- Returns:
this
.
-
port
public HTTPGetAction.Builder port(@NonNull @NonNull java.lang.String port)
- Returns:
this
.
-
scheme
public HTTPGetAction.Builder scheme(java.lang.String scheme)
Scheme to use for connecting to the host. Defaults to HTTP.Possible enum values:
- `"HTTP"` means that the scheme used will be http://
- `"HTTPS"` means that the scheme used will be https://
- Returns:
this
.
-
build
public HTTPGetAction build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-