Package org.cdk8s.plus24
Class IngressTls.Builder
- java.lang.Object
-
- org.cdk8s.plus24.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
secret(ISecret secret)
Sets the value ofIngressTls.getSecret()
-
-
-
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 TLS Secret.- Returns:
this
-
secret
@Stability(Stable) public IngressTls.Builder secret(ISecret secret)
Sets the value ofIngressTls.getSecret()
- Parameters:
secret
- Secret is the secret that contains the certificate and key used to terminate SSL traffic on 443. 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
-
-