Class IngressSpec.Builder

  • All Implemented Interfaces:
    software.amazon.jsii.Builder<IngressSpec>
    Enclosing interface:
    IngressSpec

    @Stability(Stable)
    public static final class IngressSpec.Builder
    extends Object
    implements software.amazon.jsii.Builder<IngressSpec>
    A builder for IngressSpec
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • defaultBackend

        @Stability(Stable)
        public IngressSpec.Builder defaultBackend​(IngressBackend defaultBackend)
        Parameters:
        defaultBackend - DefaultBackend is the backend that should handle requests that don't match any rule. If Rules are not specified, DefaultBackend must be specified. If DefaultBackend is not set, the handling of requests that do not match any of the rules will be up to the Ingress controller.
        Returns:
        this
      • ingressClassName

        @Stability(Stable)
        public IngressSpec.Builder ingressClassName​(String ingressClassName)
        Parameters:
        ingressClassName - IngressClassName is the name of the IngressClass cluster resource. The associated IngressClass defines which controller will implement the resource. This replaces the deprecated kubernetes.io/ingress.class annotation. For backwards compatibility, when that annotation is set, it must be given precedence over this field. The controller may emit a warning if the field and annotation have different values. Implementations of this API should ignore Ingresses without a class specified. An IngressClass resource may be marked as default, which can be used to set a default value for this field. For more information, refer to the IngressClass documentation.
        Returns:
        this
      • rules

        @Stability(Stable)
        public IngressSpec.Builder rules​(List<? extends IngressRule> rules)
        Sets the value of IngressSpec.getRules()
        Parameters:
        rules - A list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend.
        Returns:
        this
      • tls

        @Stability(Stable)
        public IngressSpec.Builder tls​(List<? extends IngressTls> tls)
        Sets the value of IngressSpec.getTls()
        Parameters:
        tls - TLS configuration. 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
      • build

        @Stability(Stable)
        public IngressSpec build()
        Builds the configured instance.
        Specified by:
        build in interface software.amazon.jsii.Builder<IngressSpec>
        Returns:
        a new instance of IngressSpec
        Throws:
        NullPointerException - if any required attribute was not provided