Class 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 for IngressTls
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • hosts

        @Stability(Stable)
        public IngressTls.Builder hosts​(List<String> hosts)
        Sets the value of IngressTls.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 of IngressTls.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 interface software.amazon.jsii.Builder<IngressTls>
        Returns:
        a new instance of IngressTls
        Throws:
        NullPointerException - if any required attribute was not provided