Interface Cors.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Cors.Builder,
,Cors> SdkBuilder<Cors.Builder,
,Cors> SdkPojo
- Enclosing class:
Cors
-
Method Summary
Modifier and TypeMethodDescriptionallowCredentials
(Boolean allowCredentials) Specifies whether credentials are included in the CORS request.allowHeaders
(String... allowHeaders) Represents a collection of allowed headers.allowHeaders
(Collection<String> allowHeaders) Represents a collection of allowed headers.allowMethods
(String... allowMethods) Represents a collection of allowed HTTP methods.allowMethods
(Collection<String> allowMethods) Represents a collection of allowed HTTP methods.allowOrigins
(String... allowOrigins) Represents a collection of allowed origins.allowOrigins
(Collection<String> allowOrigins) Represents a collection of allowed origins.exposeHeaders
(String... exposeHeaders) Represents a collection of exposed headers.exposeHeaders
(Collection<String> exposeHeaders) Represents a collection of exposed headers.The number of seconds that the browser should cache 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 Details
-
allowCredentials
Specifies whether credentials are included in the CORS request. Supported only for HTTP APIs.
- Parameters:
allowCredentials
- Specifies whether credentials are included in the CORS request. Supported only for HTTP APIs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allowHeaders
Represents a collection of allowed headers. Supported only for HTTP APIs.
- Parameters:
allowHeaders
- Represents a collection of allowed headers. Supported only for HTTP APIs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allowHeaders
Represents a collection of allowed headers. Supported only for HTTP APIs.
- Parameters:
allowHeaders
- Represents a collection of allowed headers. Supported only for HTTP APIs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allowMethods
Represents a collection of allowed HTTP methods. Supported only for HTTP APIs.
- Parameters:
allowMethods
- Represents a collection of allowed HTTP methods. Supported only for HTTP APIs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allowMethods
Represents a collection of allowed HTTP methods. Supported only for HTTP APIs.
- Parameters:
allowMethods
- Represents a collection of allowed HTTP methods. Supported only for HTTP APIs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allowOrigins
Represents a collection of allowed origins. Supported only for HTTP APIs.
- Parameters:
allowOrigins
- Represents a collection of allowed origins. Supported only for HTTP APIs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
allowOrigins
Represents a collection of allowed origins. Supported only for HTTP APIs.
- Parameters:
allowOrigins
- Represents a collection of allowed origins. Supported only for HTTP APIs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
exposeHeaders
Represents a collection of exposed headers. Supported only for HTTP APIs.
- Parameters:
exposeHeaders
- Represents a collection of exposed headers. Supported only for HTTP APIs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
exposeHeaders
Represents a collection of exposed headers. Supported only for HTTP APIs.
- Parameters:
exposeHeaders
- Represents a collection of exposed headers. Supported only for HTTP APIs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxAge
The number of seconds that the browser should cache preflight request results. Supported only for HTTP APIs.
- Parameters:
maxAge
- The number of seconds that the browser should cache preflight request results. Supported only for HTTP APIs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-