Package com.pulumi.alicloud.alb.inputs
Class RuleRuleActionCorsConfigArgs.Builder
- java.lang.Object
-
- com.pulumi.alicloud.alb.inputs.RuleRuleActionCorsConfigArgs.Builder
-
- Enclosing class:
- RuleRuleActionCorsConfigArgs
public static final class RuleRuleActionCorsConfigArgs.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
Builder(RuleRuleActionCorsConfigArgs defaults)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RuleRuleActionCorsConfigArgs.Builder
allowCredentials(com.pulumi.core.Output<java.lang.String> allowCredentials)
RuleRuleActionCorsConfigArgs.Builder
allowCredentials(java.lang.String allowCredentials)
RuleRuleActionCorsConfigArgs.Builder
allowHeaders(com.pulumi.core.Output<java.util.List<java.lang.String>> allowHeaders)
RuleRuleActionCorsConfigArgs.Builder
allowHeaders(java.lang.String... allowHeaders)
RuleRuleActionCorsConfigArgs.Builder
allowHeaders(java.util.List<java.lang.String> allowHeaders)
RuleRuleActionCorsConfigArgs.Builder
allowMethods(com.pulumi.core.Output<java.util.List<java.lang.String>> allowMethods)
RuleRuleActionCorsConfigArgs.Builder
allowMethods(java.lang.String... allowMethods)
RuleRuleActionCorsConfigArgs.Builder
allowMethods(java.util.List<java.lang.String> allowMethods)
RuleRuleActionCorsConfigArgs.Builder
allowOrigins(com.pulumi.core.Output<java.util.List<java.lang.String>> allowOrigins)
RuleRuleActionCorsConfigArgs.Builder
allowOrigins(java.lang.String... allowOrigins)
RuleRuleActionCorsConfigArgs.Builder
allowOrigins(java.util.List<java.lang.String> allowOrigins)
RuleRuleActionCorsConfigArgs
build()
RuleRuleActionCorsConfigArgs.Builder
exposeHeaders(com.pulumi.core.Output<java.util.List<java.lang.String>> exposeHeaders)
RuleRuleActionCorsConfigArgs.Builder
exposeHeaders(java.lang.String... exposeHeaders)
RuleRuleActionCorsConfigArgs.Builder
exposeHeaders(java.util.List<java.lang.String> exposeHeaders)
RuleRuleActionCorsConfigArgs.Builder
maxAge(com.pulumi.core.Output<java.lang.Integer> maxAge)
RuleRuleActionCorsConfigArgs.Builder
maxAge(java.lang.Integer maxAge)
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(RuleRuleActionCorsConfigArgs defaults)
-
-
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
-
build
public RuleRuleActionCorsConfigArgs build()
-
-