Package org.cdk8s.plus25.k8s
Class HttpGetAction.Builder
- java.lang.Object
-
- org.cdk8s.plus25.k8s.HttpGetAction.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<HttpGetAction>
- Enclosing interface:
- HttpGetAction
@Stability(Stable) public static final class HttpGetAction.Builder extends Object implements software.amazon.jsii.Builder<HttpGetAction>
A builder forHttpGetAction
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpGetActionbuild()Builds the configured instance.HttpGetAction.Builderhost(String host)Sets the value ofHttpGetAction.getHost()HttpGetAction.BuilderhttpHeaders(List<? extends HttpHeader> httpHeaders)Sets the value ofHttpGetAction.getHttpHeaders()HttpGetAction.Builderpath(String path)Sets the value ofHttpGetAction.getPath()HttpGetAction.Builderport(IntOrString port)Sets the value ofHttpGetAction.getPort()HttpGetAction.Builderscheme(String scheme)Sets the value ofHttpGetAction.getScheme()
-
-
-
Method Detail
-
port
@Stability(Stable) public HttpGetAction.Builder port(IntOrString port)
Sets the value ofHttpGetAction.getPort()- Parameters:
port- Name or number of the port to access on the container. This parameter is required. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.- Returns:
this
-
host
@Stability(Stable) public HttpGetAction.Builder host(String host)
Sets the value ofHttpGetAction.getHost()- Parameters:
host- Host name to connect to, defaults to the pod IP. You probably want to set "Host" in httpHeaders instead.- Returns:
this
-
httpHeaders
@Stability(Stable) public HttpGetAction.Builder httpHeaders(List<? extends HttpHeader> httpHeaders)
Sets the value ofHttpGetAction.getHttpHeaders()- Parameters:
httpHeaders- Custom headers to set in the request. HTTP allows repeated headers.- Returns:
this
-
path
@Stability(Stable) public HttpGetAction.Builder path(String path)
Sets the value ofHttpGetAction.getPath()- Parameters:
path- Path to access on the HTTP server.- Returns:
this
-
scheme
@Stability(Stable) public HttpGetAction.Builder scheme(String scheme)
Sets the value ofHttpGetAction.getScheme()- Parameters:
scheme- Scheme to use for connecting to the host. Defaults to HTTP.- Returns:
this
-
build
@Stability(Stable) public HttpGetAction build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<HttpGetAction>- Returns:
- a new instance of
HttpGetAction - Throws:
NullPointerException- if any required attribute was not provided
-
-