Package org.cdk8s.plus24.k8s
Class IngressTls.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.IngressTls.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<IngressTls>
- Enclosing interface:
- IngressTls
@Stability(Stable) public static final class IngressTls.Builder extends Object implements software.amazon.jsii.Builder<IngressTls>
A builder forIngressTls
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IngressTls
build()
Builds the configured instance.IngressTls.Builder
hosts(List<String> hosts)
Sets the value ofIngressTls.getHosts()
IngressTls.Builder
secretName(String secretName)
Sets the value ofIngressTls.getSecretName()
-
-
-
Method Detail
-
hosts
@Stability(Stable) public IngressTls.Builder hosts(List<String> hosts)
Sets the value ofIngressTls.getHosts()
- Parameters:
hosts
- Hosts are a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified.- Returns:
this
-
secretName
@Stability(Stable) public IngressTls.Builder secretName(String secretName)
Sets the value ofIngressTls.getSecretName()
- Parameters:
secretName
- SecretName is the name of the secret used to terminate TLS traffic on port 443. Field is left optional to allow TLS routing based on SNI hostname alone. If the SNI host in a listener conflicts with the "Host" header field used by an IngressRule, the SNI host is used for termination and value of the Host header is used for routing.- Returns:
this
-
build
@Stability(Stable) public IngressTls build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<IngressTls>
- Returns:
- a new instance of
IngressTls
- Throws:
NullPointerException
- if any required attribute was not provided
-
-