Interface Cors.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Cors.Builder,Cors>,SdkBuilder<Cors.Builder,Cors>,SdkPojo
- Enclosing class:
- Cors
public static interface Cors.Builder extends SdkPojo, CopyableBuilder<Cors.Builder,Cors>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Cors.BuilderallowCredentials(Boolean allowCredentials)Specifies whether credentials are included in the CORS request.Cors.BuilderallowHeaders(String... allowHeaders)Represents a collection of allowed headers.Cors.BuilderallowHeaders(Collection<String> allowHeaders)Represents a collection of allowed headers.Cors.BuilderallowMethods(String... allowMethods)Represents a collection of allowed HTTP methods.Cors.BuilderallowMethods(Collection<String> allowMethods)Represents a collection of allowed HTTP methods.Cors.BuilderallowOrigins(String... allowOrigins)Represents a collection of allowed origins.Cors.BuilderallowOrigins(Collection<String> allowOrigins)Represents a collection of allowed origins.Cors.BuilderexposeHeaders(String... exposeHeaders)Represents a collection of exposed headers.Cors.BuilderexposeHeaders(Collection<String> exposeHeaders)Represents a collection of exposed headers.Cors.BuildermaxAge(Integer maxAge)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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
allowCredentials
Cors.Builder allowCredentials(Boolean 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
Cors.Builder allowHeaders(Collection<String> 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
Cors.Builder allowHeaders(String... 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
Cors.Builder allowMethods(Collection<String> 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
Cors.Builder allowMethods(String... 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
Cors.Builder allowOrigins(Collection<String> 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
Cors.Builder allowOrigins(String... 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
Cors.Builder exposeHeaders(Collection<String> 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
Cors.Builder exposeHeaders(String... 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
Cors.Builder maxAge(Integer 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.
-
-