Package org.cdk8s.plus20
Class IngressV1Beta1Props.Builder
- java.lang.Object
-
- org.cdk8s.plus20.IngressV1Beta1Props.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<IngressV1Beta1Props>
- Enclosing interface:
- IngressV1Beta1Props
@Stability(Stable) public static final class IngressV1Beta1Props.Builder extends Object implements software.amazon.jsii.Builder<IngressV1Beta1Props>
A builder forIngressV1Beta1Props
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IngressV1Beta1Propsbuild()Builds the configured instance.IngressV1Beta1Props.BuilderdefaultBackend(IngressV1Beta1Backend defaultBackend)Sets the value ofIngressV1Beta1Props.getDefaultBackend()IngressV1Beta1Props.Buildermetadata(org.cdk8s.ApiObjectMetadata metadata)Sets the value ofResourceProps.getMetadata()IngressV1Beta1Props.Builderrules(List<? extends IngressV1Beta1Rule> rules)Sets the value ofIngressV1Beta1Props.getRules()IngressV1Beta1Props.Buildertls(List<? extends IngressV1Beta1Tls> tls)Sets the value ofIngressV1Beta1Props.getTls()
-
-
-
Method Detail
-
defaultBackend
@Stability(Stable) public IngressV1Beta1Props.Builder defaultBackend(IngressV1Beta1Backend defaultBackend)
Sets the value ofIngressV1Beta1Props.getDefaultBackend()- Parameters:
defaultBackend- The default backend services requests that do not match any rule. Using this option or theaddDefaultBackend()method is equivalent to adding a rule with bothpathandhostundefined.- Returns:
this
-
rules
@Stability(Stable) public IngressV1Beta1Props.Builder rules(List<? extends IngressV1Beta1Rule> rules)
Sets the value ofIngressV1Beta1Props.getRules()- Parameters:
rules- Routing rules for this ingress. Each rule must define anIngressBackendthat 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().- Returns:
this
-
tls
@Stability(Stable) public IngressV1Beta1Props.Builder tls(List<? extends IngressV1Beta1Tls> tls)
Sets the value ofIngressV1Beta1Props.getTls()- Parameters:
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.- Returns:
this
-
metadata
@Stability(Stable) public IngressV1Beta1Props.Builder metadata(org.cdk8s.ApiObjectMetadata metadata)
Sets the value ofResourceProps.getMetadata()- Parameters:
metadata- Metadata that all persisted resources must have, which includes all objects users must create.- Returns:
this
-
build
@Stability(Stable) public IngressV1Beta1Props build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<IngressV1Beta1Props>- Returns:
- a new instance of
IngressV1Beta1Props - Throws:
NullPointerException- if any required attribute was not provided
-
-