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 TLS Secret.
        Returns:
        this
      • secret

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