public final class CorsPolicy extends GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description | 
|---|
| CorsPolicy() | 
| Modifier and Type | Method and Description | 
|---|---|
| CorsPolicy | clone() | 
| Boolean | getAllowCredentials()In response to a preflight request, setting this to true indicates that the actual request can
 include user credentials. | 
| List<String> | getAllowHeaders()Specifies the content for the Access-Control-Allow-Headers header. | 
| List<String> | getAllowMethods()Specifies the content for the Access-Control-Allow-Methods header. | 
| List<String> | getAllowOriginRegexes()Specifies a regular expression that matches allowed origins. | 
| List<String> | getAllowOrigins()Specifies the list of origins that is allowed to do CORS requests. | 
| Boolean | getDisabled()If true, the setting specifies the CORS policy is disabled. | 
| List<String> | getExposeHeaders()Specifies the content for the Access-Control-Expose-Headers header. | 
| Integer | getMaxAge()Specifies how long results of a preflight request can be cached in seconds. | 
| CorsPolicy | set(String fieldName,
   Object value) | 
| CorsPolicy | setAllowCredentials(Boolean allowCredentials)In response to a preflight request, setting this to true indicates that the actual request can
 include user credentials. | 
| CorsPolicy | setAllowHeaders(List<String> allowHeaders)Specifies the content for the Access-Control-Allow-Headers header. | 
| CorsPolicy | setAllowMethods(List<String> allowMethods)Specifies the content for the Access-Control-Allow-Methods header. | 
| CorsPolicy | setAllowOriginRegexes(List<String> allowOriginRegexes)Specifies a regular expression that matches allowed origins. | 
| CorsPolicy | setAllowOrigins(List<String> allowOrigins)Specifies the list of origins that is allowed to do CORS requests. | 
| CorsPolicy | setDisabled(Boolean disabled)If true, the setting specifies the CORS policy is disabled. | 
| CorsPolicy | setExposeHeaders(List<String> exposeHeaders)Specifies the content for the Access-Control-Expose-Headers header. | 
| CorsPolicy | setMaxAge(Integer maxAge)Specifies how long results of a preflight request can be cached in seconds. | 
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic Boolean getAllowCredentials()
null for nonepublic CorsPolicy setAllowCredentials(Boolean allowCredentials)
allowCredentials - allowCredentials or null for nonepublic List<String> getAllowHeaders()
null for nonepublic CorsPolicy setAllowHeaders(List<String> allowHeaders)
allowHeaders - allowHeaders or null for nonepublic List<String> getAllowMethods()
null for nonepublic CorsPolicy setAllowMethods(List<String> allowMethods)
allowMethods - allowMethods or null for nonepublic List<String> getAllowOriginRegexes()
null for nonepublic CorsPolicy setAllowOriginRegexes(List<String> allowOriginRegexes)
allowOriginRegexes - allowOriginRegexes or null for nonepublic List<String> getAllowOrigins()
null for nonepublic CorsPolicy setAllowOrigins(List<String> allowOrigins)
allowOrigins - allowOrigins or null for nonepublic Boolean getDisabled()
null for nonepublic CorsPolicy setDisabled(Boolean disabled)
disabled - disabled or null for nonepublic List<String> getExposeHeaders()
null for nonepublic CorsPolicy setExposeHeaders(List<String> exposeHeaders)
exposeHeaders - exposeHeaders or null for nonepublic Integer getMaxAge()
null for nonepublic CorsPolicy setMaxAge(Integer maxAge)
maxAge - maxAge or null for nonepublic CorsPolicy set(String fieldName, Object value)
set in class GenericJsonpublic CorsPolicy clone()
clone in class GenericJsonCopyright © 2011–2022 Google. All rights reserved.