Package org.cdk8s.plus24
Class IngressRule.Builder
- java.lang.Object
-
- org.cdk8s.plus24.IngressRule.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<IngressRule>
- Enclosing interface:
- IngressRule
@Stability(Stable) public static final class IngressRule.Builder extends Object implements software.amazon.jsii.Builder<IngressRule>
A builder forIngressRule
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IngressRule.Builderbackend(IngressBackend backend)Sets the value ofIngressRule.getBackend()IngressRulebuild()Builds the configured instance.IngressRule.Builderhost(String host)Sets the value ofIngressRule.getHost()IngressRule.Builderpath(String path)Sets the value ofIngressRule.getPath()IngressRule.BuilderpathType(HttpIngressPathType pathType)Sets the value ofIngressRule.getPathType()
-
-
-
Method Detail
-
backend
@Stability(Stable) public IngressRule.Builder backend(IngressBackend backend)
Sets the value ofIngressRule.getBackend()- Parameters:
backend- Backend defines the referenced service endpoint to which the traffic will be forwarded to. This parameter is required.- Returns:
this
-
host
@Stability(Stable) public IngressRule.Builder host(String host)
Sets the value ofIngressRule.getHost()- Parameters:
host- Host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the "host" part of the URI as defined in the RFC: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to the IP in the Spec of the parent Ingress. 2. The:delimiter is not respected because ports are not allowed. Currently the port of an Ingress is implicitly :80 for http and :443 for https. Both these may change in the future. Incoming requests are matched against the host before the IngressRuleValue.- Returns:
this
-
path
@Stability(Stable) public IngressRule.Builder path(String path)
Sets the value ofIngressRule.getPath()- Parameters:
path- Path is an extended POSIX regex as defined by IEEE Std 1003.1, (i.e this follows the egrep/unix syntax, not the perl syntax) matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional "path" part of a URL as defined by RFC 3986. Paths must begin with a '/'.- Returns:
this
-
pathType
@Stability(Stable) public IngressRule.Builder pathType(HttpIngressPathType pathType)
Sets the value ofIngressRule.getPathType()- Parameters:
pathType- Specify how the path is matched against request paths. By default, path types will be matched by prefix.- Returns:
this
-
build
@Stability(Stable) public IngressRule build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<IngressRule>- Returns:
- a new instance of
IngressRule - Throws:
NullPointerException- if any required attribute was not provided
-
-