Class IngressRule.Builder

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

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

      • Builder

        public Builder()
    • Method Detail

      • backend

        @Stability(Stable)
        public IngressRule.Builder backend​(IngressBackend backend)
        Sets the value of IngressRule.getBackend()
        Parameters:
        backend - Backend defines the referenced service endpoint to which the traffic will be forwarded to. This parameter is required.
        Returns:
        this
      • host

        @Stability(Stable)
        public IngressRule.Builder host​(String host)
        Sets the value of IngressRule.getHost()
        Parameters:
        host - Host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the "host" part of the URI as defined in the RFC: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to the IP in the Spec of the parent Ingress. 2. The : delimiter is not respected because ports are not allowed. Currently the port of an Ingress is implicitly :80 for http and :443 for https. Both these may change in the future. Incoming requests are matched against the host before the IngressRuleValue.
        Returns:
        this
      • path

        @Stability(Stable)
        public IngressRule.Builder path​(String path)
        Sets the value of IngressRule.getPath()
        Parameters:
        path - Path is an extended POSIX regex as defined by IEEE Std 1003.1, (i.e this follows the egrep/unix syntax, not the perl syntax) matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional "path" part of a URL as defined by RFC 3986. Paths must begin with a '/'.
        Returns:
        this
      • build

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