Class IngressV1Beta1.Builder
- java.lang.Object
-
- org.cdk8s.plus20.IngressV1Beta1.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<IngressV1Beta1>
- Enclosing class:
- IngressV1Beta1
@Stability(Stable) public static final class IngressV1Beta1.Builder extends Object implements software.amazon.jsii.Builder<IngressV1Beta1>
A fluent builder forIngressV1Beta1.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IngressV1Beta1build()static IngressV1Beta1.Buildercreate(software.constructs.Construct scope, String id)IngressV1Beta1.BuilderdefaultBackend(IngressV1Beta1Backend defaultBackend)The default backend services requests that do not match any rule.IngressV1Beta1.Buildermetadata(org.cdk8s.ApiObjectMetadata metadata)Metadata that all persisted resources must have, which includes all objects users must create.IngressV1Beta1.Builderrules(List<? extends IngressV1Beta1Rule> rules)Routing rules for this ingress.IngressV1Beta1.Buildertls(List<? extends IngressV1Beta1Tls> tls)TLS settings for this ingress.
-
-
-
Method Detail
-
create
@Stability(Stable) public static IngressV1Beta1.Builder create(software.constructs.Construct scope, String id)
- Parameters:
scope- This parameter is required.id- This parameter is required.- Returns:
- a new instance of
IngressV1Beta1.Builder.
-
metadata
@Stability(Stable) public IngressV1Beta1.Builder metadata(org.cdk8s.ApiObjectMetadata metadata)
Metadata that all persisted resources must have, which includes all objects users must create.- Parameters:
metadata- Metadata that all persisted resources must have, which includes all objects users must create. This parameter is required.- Returns:
this
-
defaultBackend
@Stability(Stable) public IngressV1Beta1.Builder defaultBackend(IngressV1Beta1Backend defaultBackend)
The default backend services requests that do not match any rule.Using this option or the
addDefaultBackend()method is equivalent to adding a rule with bothpathandhostundefined.- Parameters:
defaultBackend- The default backend services requests that do not match any rule. This parameter is required.- Returns:
this
-
rules
@Stability(Stable) public IngressV1Beta1.Builder rules(List<? extends IngressV1Beta1Rule> rules)
Routing rules for this ingress.Each rule must define an
IngressBackendthat will receive the requests that match this rule. If bothhostandpathare not specifiec, this backend will be used as the default backend of the ingress.You can also add rules later using
addRule(),addHostRule(),addDefaultBackend()andaddHostDefaultBackend().- Parameters:
rules- Routing rules for this ingress. This parameter is required.- Returns:
this
-
tls
@Stability(Stable) public IngressV1Beta1.Builder tls(List<? extends IngressV1Beta1Tls> tls)
TLS settings for this ingress.Using this option tells the ingress controller to expose a TLS endpoint. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI.
- Parameters:
tls- TLS settings for this ingress. This parameter is required.- Returns:
this
-
build
@Stability(Stable) public IngressV1Beta1 build()
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<IngressV1Beta1>
-
-