public static interface Cors.Builder extends SdkPojo, CopyableBuilder<Cors.Builder,Cors>
| Modifier and Type | Method and Description |
|---|---|
Cors.Builder |
allowCredentials(Boolean allowCredentials)
Specifies whether credentials are included in the CORS request.
|
Cors.Builder |
allowHeaders(Collection<String> allowHeaders)
Represents a collection of allowed headers.
|
Cors.Builder |
allowHeaders(String... allowHeaders)
Represents a collection of allowed headers.
|
Cors.Builder |
allowMethods(Collection<String> allowMethods)
Represents a collection of allowed HTTP methods.
|
Cors.Builder |
allowMethods(String... allowMethods)
Represents a collection of allowed HTTP methods.
|
Cors.Builder |
allowOrigins(Collection<String> allowOrigins)
Represents a collection of allowed origins.
|
Cors.Builder |
allowOrigins(String... allowOrigins)
Represents a collection of allowed origins.
|
Cors.Builder |
exposeHeaders(Collection<String> exposeHeaders)
Represents a collection of exposed headers.
|
Cors.Builder |
exposeHeaders(String... exposeHeaders)
Represents a collection of exposed headers.
|
Cors.Builder |
maxAge(Integer maxAge)
The number of seconds that the browser should cache preflight request results.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildCors.Builder allowCredentials(Boolean allowCredentials)
Specifies whether credentials are included in the CORS request. Supported only for HTTP APIs.
allowCredentials - Specifies whether credentials are included in the CORS request. Supported only for HTTP APIs.Cors.Builder allowHeaders(Collection<String> allowHeaders)
Represents a collection of allowed headers. Supported only for HTTP APIs.
allowHeaders - Represents a collection of allowed headers. Supported only for HTTP APIs.Cors.Builder allowHeaders(String... allowHeaders)
Represents a collection of allowed headers. Supported only for HTTP APIs.
allowHeaders - Represents a collection of allowed headers. Supported only for HTTP APIs.Cors.Builder allowMethods(Collection<String> allowMethods)
Represents a collection of allowed HTTP methods. Supported only for HTTP APIs.
allowMethods - Represents a collection of allowed HTTP methods. Supported only for HTTP APIs.Cors.Builder allowMethods(String... allowMethods)
Represents a collection of allowed HTTP methods. Supported only for HTTP APIs.
allowMethods - Represents a collection of allowed HTTP methods. Supported only for HTTP APIs.Cors.Builder allowOrigins(Collection<String> allowOrigins)
Represents a collection of allowed origins. Supported only for HTTP APIs.
allowOrigins - Represents a collection of allowed origins. Supported only for HTTP APIs.Cors.Builder allowOrigins(String... allowOrigins)
Represents a collection of allowed origins. Supported only for HTTP APIs.
allowOrigins - Represents a collection of allowed origins. Supported only for HTTP APIs.Cors.Builder exposeHeaders(Collection<String> exposeHeaders)
Represents a collection of exposed headers. Supported only for HTTP APIs.
exposeHeaders - Represents a collection of exposed headers. Supported only for HTTP APIs.Cors.Builder exposeHeaders(String... exposeHeaders)
Represents a collection of exposed headers. Supported only for HTTP APIs.
exposeHeaders - Represents a collection of exposed headers. Supported only for HTTP APIs.Cors.Builder maxAge(Integer maxAge)
The number of seconds that the browser should cache preflight request results. Supported only for HTTP APIs.
maxAge - The number of seconds that the browser should cache preflight request results. Supported only for HTTP
APIs.Copyright © 2022. All rights reserved.