Interface AwsCorsConfiguration.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<AwsCorsConfiguration.Builder,AwsCorsConfiguration>,SdkBuilder<AwsCorsConfiguration.Builder,AwsCorsConfiguration>,SdkPojo
- Enclosing class:
- AwsCorsConfiguration
public static interface AwsCorsConfiguration.Builder extends SdkPojo, CopyableBuilder<AwsCorsConfiguration.Builder,AwsCorsConfiguration>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AwsCorsConfiguration.BuilderallowCredentials(Boolean allowCredentials)Indicates whether the CORS request includes credentials.AwsCorsConfiguration.BuilderallowHeaders(String... allowHeaders)The allowed headers for CORS requests.AwsCorsConfiguration.BuilderallowHeaders(Collection<String> allowHeaders)The allowed headers for CORS requests.AwsCorsConfiguration.BuilderallowMethods(String... allowMethods)The allowed methods for CORS requests.AwsCorsConfiguration.BuilderallowMethods(Collection<String> allowMethods)The allowed methods for CORS requests.AwsCorsConfiguration.BuilderallowOrigins(String... allowOrigins)The allowed origins for CORS requests.AwsCorsConfiguration.BuilderallowOrigins(Collection<String> allowOrigins)The allowed origins for CORS requests.AwsCorsConfiguration.BuilderexposeHeaders(String... exposeHeaders)The exposed headers for CORS requests.AwsCorsConfiguration.BuilderexposeHeaders(Collection<String> exposeHeaders)The exposed headers for CORS requests.AwsCorsConfiguration.BuildermaxAge(Integer maxAge)The number of seconds for which the browser caches preflight request results.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
allowOrigins
AwsCorsConfiguration.Builder allowOrigins(Collection<String> allowOrigins)
The allowed origins for CORS requests.
- Parameters:
allowOrigins- The allowed origins for CORS requests.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allowOrigins
AwsCorsConfiguration.Builder allowOrigins(String... allowOrigins)
The allowed origins for CORS requests.
- Parameters:
allowOrigins- The allowed origins for CORS requests.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allowCredentials
AwsCorsConfiguration.Builder allowCredentials(Boolean allowCredentials)
Indicates whether the CORS request includes credentials.
- Parameters:
allowCredentials- Indicates whether the CORS request includes credentials.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
exposeHeaders
AwsCorsConfiguration.Builder exposeHeaders(Collection<String> exposeHeaders)
The exposed headers for CORS requests.
- Parameters:
exposeHeaders- The exposed headers for CORS requests.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
exposeHeaders
AwsCorsConfiguration.Builder exposeHeaders(String... exposeHeaders)
The exposed headers for CORS requests.
- Parameters:
exposeHeaders- The exposed headers for CORS requests.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxAge
AwsCorsConfiguration.Builder maxAge(Integer maxAge)
The number of seconds for which the browser caches preflight request results.
- Parameters:
maxAge- The number of seconds for which the browser caches preflight request results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allowMethods
AwsCorsConfiguration.Builder allowMethods(Collection<String> allowMethods)
The allowed methods for CORS requests.
- Parameters:
allowMethods- The allowed methods for CORS requests.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allowMethods
AwsCorsConfiguration.Builder allowMethods(String... allowMethods)
The allowed methods for CORS requests.
- Parameters:
allowMethods- The allowed methods for CORS requests.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allowHeaders
AwsCorsConfiguration.Builder allowHeaders(Collection<String> allowHeaders)
The allowed headers for CORS requests.
- Parameters:
allowHeaders- The allowed headers for CORS requests.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allowHeaders
AwsCorsConfiguration.Builder allowHeaders(String... allowHeaders)
The allowed headers for CORS requests.
- Parameters:
allowHeaders- The allowed headers for CORS requests.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-