@Stability(value=Experimental) @Internal public static final class CorsPreflightOptions.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CorsPreflightOptions
CorsPreflightOptionssoftware.amazon.jsii.JsiiObject.InitializationModeCorsPreflightOptions.Builder, CorsPreflightOptions.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(Boolean allowCredentials,
List<String> allowHeaders,
List<? extends CorsHttpMethod> allowMethods,
List<String> allowOrigins,
List<String> exposeHeaders,
Duration maxAge)
Constructor that initializes the object based on literal property values passed by the
CorsPreflightOptions.Builder. |
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
Boolean |
getAllowCredentials()
(experimental) Specifies whether credentials are included in the CORS request.
|
List<String> |
getAllowHeaders()
(experimental) Represents a collection of allowed headers.
|
List<CorsHttpMethod> |
getAllowMethods()
(experimental) Represents a collection of allowed HTTP methods.
|
List<String> |
getAllowOrigins()
(experimental) Represents a collection of allowed origins.
|
List<String> |
getExposeHeaders()
(experimental) Represents a collection of exposed headers.
|
Duration |
getMaxAge()
(experimental) The duration that the browser should cache preflight request results.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilderprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.protected Jsii$Proxy(Boolean allowCredentials, List<String> allowHeaders, List<? extends CorsHttpMethod> allowMethods, List<String> allowOrigins, List<String> exposeHeaders, Duration maxAge)
CorsPreflightOptions.Builder.public final Boolean getAllowCredentials()
CorsPreflightOptionsDefault: false
getAllowCredentials in interface CorsPreflightOptionspublic final List<String> getAllowHeaders()
CorsPreflightOptionsDefault: - No Headers are allowed.
getAllowHeaders in interface CorsPreflightOptionspublic final List<CorsHttpMethod> getAllowMethods()
CorsPreflightOptionsDefault: - No Methods are allowed.
getAllowMethods in interface CorsPreflightOptionspublic final List<String> getAllowOrigins()
CorsPreflightOptionsDefault: - No Origins are allowed.
getAllowOrigins in interface CorsPreflightOptionspublic final List<String> getExposeHeaders()
CorsPreflightOptionsDefault: - No Expose Headers are allowed.
getExposeHeaders in interface CorsPreflightOptionspublic final Duration getMaxAge()
CorsPreflightOptionsDefault: Duration.seconds(0)
getMaxAge in interface CorsPreflightOptions@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2021. All rights reserved.