Class RuleRuleActionCorsConfigArgs.Builder

    • Method Detail

      • allowCredentials

        public RuleRuleActionCorsConfigArgs.Builder allowCredentials​(@Nullable
                                                                     com.pulumi.core.Output<java.lang.String> allowCredentials)
        Parameters:
        allowCredentials - Specifies whether credentials can be passed during CORS operations. Valid values: `on`, `off`.
        Returns:
        builder
      • allowCredentials

        public RuleRuleActionCorsConfigArgs.Builder allowCredentials​(java.lang.String allowCredentials)
        Parameters:
        allowCredentials - Specifies whether credentials can be passed during CORS operations. Valid values: `on`, `off`.
        Returns:
        builder
      • allowHeaders

        public RuleRuleActionCorsConfigArgs.Builder allowHeaders​(@Nullable
                                                                 com.pulumi.core.Output<java.util.List<java.lang.String>> allowHeaders)
        Parameters:
        allowHeaders - The allowed headers for CORS requests.
        Returns:
        builder
      • allowHeaders

        public RuleRuleActionCorsConfigArgs.Builder allowHeaders​(java.util.List<java.lang.String> allowHeaders)
        Parameters:
        allowHeaders - The allowed headers for CORS requests.
        Returns:
        builder
      • allowHeaders

        public RuleRuleActionCorsConfigArgs.Builder allowHeaders​(java.lang.String... allowHeaders)
        Parameters:
        allowHeaders - The allowed headers for CORS requests.
        Returns:
        builder
      • allowMethods

        public RuleRuleActionCorsConfigArgs.Builder allowMethods​(@Nullable
                                                                 com.pulumi.core.Output<java.util.List<java.lang.String>> allowMethods)
        Parameters:
        allowMethods - The allowed HTTP methods for CORS requests. Valid values: `GET`, `POST`, `PUT`, `DELETE`, `HEAD`, `OPTIONS`, `PATCH`.
        Returns:
        builder
      • allowMethods

        public RuleRuleActionCorsConfigArgs.Builder allowMethods​(java.util.List<java.lang.String> allowMethods)
        Parameters:
        allowMethods - The allowed HTTP methods for CORS requests. Valid values: `GET`, `POST`, `PUT`, `DELETE`, `HEAD`, `OPTIONS`, `PATCH`.
        Returns:
        builder
      • allowMethods

        public RuleRuleActionCorsConfigArgs.Builder allowMethods​(java.lang.String... allowMethods)
        Parameters:
        allowMethods - The allowed HTTP methods for CORS requests. Valid values: `GET`, `POST`, `PUT`, `DELETE`, `HEAD`, `OPTIONS`, `PATCH`.
        Returns:
        builder
      • allowOrigins

        public RuleRuleActionCorsConfigArgs.Builder allowOrigins​(@Nullable
                                                                 com.pulumi.core.Output<java.util.List<java.lang.String>> allowOrigins)
        Parameters:
        allowOrigins - The allowed origins of CORS requests.
        Returns:
        builder
      • allowOrigins

        public RuleRuleActionCorsConfigArgs.Builder allowOrigins​(java.util.List<java.lang.String> allowOrigins)
        Parameters:
        allowOrigins - The allowed origins of CORS requests.
        Returns:
        builder
      • allowOrigins

        public RuleRuleActionCorsConfigArgs.Builder allowOrigins​(java.lang.String... allowOrigins)
        Parameters:
        allowOrigins - The allowed origins of CORS requests.
        Returns:
        builder
      • exposeHeaders

        public RuleRuleActionCorsConfigArgs.Builder exposeHeaders​(@Nullable
                                                                  com.pulumi.core.Output<java.util.List<java.lang.String>> exposeHeaders)
        Parameters:
        exposeHeaders - The headers that can be exposed.
        Returns:
        builder
      • exposeHeaders

        public RuleRuleActionCorsConfigArgs.Builder exposeHeaders​(java.util.List<java.lang.String> exposeHeaders)
        Parameters:
        exposeHeaders - The headers that can be exposed.
        Returns:
        builder
      • exposeHeaders

        public RuleRuleActionCorsConfigArgs.Builder exposeHeaders​(java.lang.String... exposeHeaders)
        Parameters:
        exposeHeaders - The headers that can be exposed.
        Returns:
        builder
      • maxAge

        public RuleRuleActionCorsConfigArgs.Builder maxAge​(@Nullable
                                                           com.pulumi.core.Output<java.lang.Integer> maxAge)
        Parameters:
        maxAge - The maximum cache time of preflight requests in the browser. Unit: seconds. Valid values: `-1` to `172800`.
        Returns:
        builder
      • maxAge

        public RuleRuleActionCorsConfigArgs.Builder maxAge​(java.lang.Integer maxAge)
        Parameters:
        maxAge - The maximum cache time of preflight requests in the browser. Unit: seconds. Valid values: `-1` to `172800`.
        Returns:
        builder