Package org.cdk8s.plus20
Class IngressV1Beta1Rule.Builder
- java.lang.Object
-
- org.cdk8s.plus20.IngressV1Beta1Rule.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<IngressV1Beta1Rule>
- Enclosing interface:
- IngressV1Beta1Rule
@Stability(Stable) public static final class IngressV1Beta1Rule.Builder extends Object implements software.amazon.jsii.Builder<IngressV1Beta1Rule>
A builder forIngressV1Beta1Rule
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IngressV1Beta1Rule.Builderbackend(IngressV1Beta1Backend backend)Sets the value ofIngressV1Beta1Rule.getBackend()IngressV1Beta1Rulebuild()Builds the configured instance.IngressV1Beta1Rule.Builderhost(String host)Sets the value ofIngressV1Beta1Rule.getHost()IngressV1Beta1Rule.Builderpath(String path)Sets the value ofIngressV1Beta1Rule.getPath()
-
-
-
Method Detail
-
backend
@Stability(Stable) public IngressV1Beta1Rule.Builder backend(IngressV1Beta1Backend backend)
Sets the value ofIngressV1Beta1Rule.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 IngressV1Beta1Rule.Builder host(String host)
Sets the value ofIngressV1Beta1Rule.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 IngressV1Beta1Rule.Builder path(String path)
Sets the value ofIngressV1Beta1Rule.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
-
build
@Stability(Stable) public IngressV1Beta1Rule build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<IngressV1Beta1Rule>- Returns:
- a new instance of
IngressV1Beta1Rule - Throws:
NullPointerException- if any required attribute was not provided
-
-