Class RegionUrlMapArgs.Builder

  • Enclosing class:
    RegionUrlMapArgs

    public static final class RegionUrlMapArgs.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • defaultRouteAction

        public RegionUrlMapArgs.Builder defaultRouteAction​(@Nullable
                                                           com.pulumi.core.Output<RegionUrlMapDefaultRouteActionArgs> defaultRouteAction)
        Parameters:
        defaultRouteAction - defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. Only one of defaultRouteAction or defaultUrlRedirect must be set. URL maps for Classic external HTTP(S) load balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true. Structure is documented below.
        Returns:
        builder
      • defaultRouteAction

        public RegionUrlMapArgs.Builder defaultRouteAction​(RegionUrlMapDefaultRouteActionArgs defaultRouteAction)
        Parameters:
        defaultRouteAction - defaultRouteAction takes effect when none of the hostRules match. The load balancer performs advanced routing actions, such as URL rewrites and header transformations, before forwarding the request to the selected backend. If defaultRouteAction specifies any weightedBackendServices, defaultService must not be set. Conversely if defaultService is set, defaultRouteAction cannot contain any weightedBackendServices. Only one of defaultRouteAction or defaultUrlRedirect must be set. URL maps for Classic external HTTP(S) load balancers only support the urlRewrite action within defaultRouteAction. defaultRouteAction has no effect when the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true. Structure is documented below.
        Returns:
        builder
      • defaultService

        public RegionUrlMapArgs.Builder defaultService​(@Nullable
                                                       com.pulumi.core.Output<java.lang.String> defaultService)
        Parameters:
        defaultService - The full or partial URL of the defaultService resource to which traffic is directed if none of the hostRules match. If defaultRouteAction is additionally specified, advanced routing actions like URL Rewrites, etc. take effect prior to sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of defaultService, defaultUrlRedirect or defaultRouteAction.weightedBackendService must be set.
        Returns:
        builder
      • defaultService

        public RegionUrlMapArgs.Builder defaultService​(java.lang.String defaultService)
        Parameters:
        defaultService - The full or partial URL of the defaultService resource to which traffic is directed if none of the hostRules match. If defaultRouteAction is additionally specified, advanced routing actions like URL Rewrites, etc. take effect prior to sending the request to the backend. However, if defaultService is specified, defaultRouteAction cannot contain any weightedBackendServices. Conversely, if routeAction specifies any weightedBackendServices, service must not be specified. Only one of defaultService, defaultUrlRedirect or defaultRouteAction.weightedBackendService must be set.
        Returns:
        builder
      • defaultUrlRedirect

        public RegionUrlMapArgs.Builder defaultUrlRedirect​(@Nullable
                                                           com.pulumi.core.Output<RegionUrlMapDefaultUrlRedirectArgs> defaultUrlRedirect)
        Parameters:
        defaultUrlRedirect - When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, defaultService or defaultRouteAction must not be set. Structure is documented below.
        Returns:
        builder
      • defaultUrlRedirect

        public RegionUrlMapArgs.Builder defaultUrlRedirect​(RegionUrlMapDefaultUrlRedirectArgs defaultUrlRedirect)
        Parameters:
        defaultUrlRedirect - When none of the specified hostRules match, the request is redirected to a URL specified by defaultUrlRedirect. If defaultUrlRedirect is specified, defaultService or defaultRouteAction must not be set. Structure is documented below.
        Returns:
        builder
      • description

        public RegionUrlMapArgs.Builder description​(@Nullable
                                                    com.pulumi.core.Output<java.lang.String> description)
        Parameters:
        description - An optional description of this resource. Provide this property when you create the resource.
        Returns:
        builder
      • description

        public RegionUrlMapArgs.Builder description​(java.lang.String description)
        Parameters:
        description - An optional description of this resource. Provide this property when you create the resource.
        Returns:
        builder
      • hostRules

        public RegionUrlMapArgs.Builder hostRules​(@Nullable
                                                  com.pulumi.core.Output<java.util.List<RegionUrlMapHostRuleArgs>> hostRules)
        Parameters:
        hostRules - The list of HostRules to use against the URL. Structure is documented below.
        Returns:
        builder
      • name

        public RegionUrlMapArgs.Builder name​(@Nullable
                                             com.pulumi.core.Output<java.lang.String> name)
        Parameters:
        name - Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `a-z?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. ***
        Returns:
        builder
      • name

        public RegionUrlMapArgs.Builder name​(java.lang.String name)
        Parameters:
        name - Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `a-z?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. ***
        Returns:
        builder
      • pathMatchers

        public RegionUrlMapArgs.Builder pathMatchers​(@Nullable
                                                     com.pulumi.core.Output<java.util.List<RegionUrlMapPathMatcherArgs>> pathMatchers)
        Parameters:
        pathMatchers - The list of named PathMatchers to use against the URL. Structure is documented below.
        Returns:
        builder
      • project

        public RegionUrlMapArgs.Builder project​(@Nullable
                                                com.pulumi.core.Output<java.lang.String> project)
        Parameters:
        project - The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
        Returns:
        builder
      • project

        public RegionUrlMapArgs.Builder project​(java.lang.String project)
        Parameters:
        project - The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
        Returns:
        builder
      • region

        public RegionUrlMapArgs.Builder region​(@Nullable
                                               com.pulumi.core.Output<java.lang.String> region)
        Parameters:
        region - The Region in which the url map should reside. If it is not provided, the provider region is used.
        Returns:
        builder
      • region

        public RegionUrlMapArgs.Builder region​(java.lang.String region)
        Parameters:
        region - The Region in which the url map should reside. If it is not provided, the provider region is used.
        Returns:
        builder
      • tests

        public RegionUrlMapArgs.Builder tests​(@Nullable
                                              com.pulumi.core.Output<java.util.List<RegionUrlMapTestArgs>> tests)
        Parameters:
        tests - The list of expected URL mappings. Requests to update this UrlMap will succeed only if all of the test cases pass. Structure is documented below.
        Returns:
        builder
      • tests

        public RegionUrlMapArgs.Builder tests​(java.util.List<RegionUrlMapTestArgs> tests)
        Parameters:
        tests - The list of expected URL mappings. Requests to update this UrlMap will succeed only if all of the test cases pass. Structure is documented below.
        Returns:
        builder
      • tests

        public RegionUrlMapArgs.Builder tests​(RegionUrlMapTestArgs... tests)
        Parameters:
        tests - The list of expected URL mappings. Requests to update this UrlMap will succeed only if all of the test cases pass. Structure is documented below.
        Returns:
        builder