public static final class CfnApi.CorsConfigurationProperty.Builder
extends java.lang.Object
CfnApi.CorsConfigurationProperty
Constructor and Description |
---|
Builder() |
public CfnApi.CorsConfigurationProperty.Builder allowOrigin(java.lang.String allowOrigin)
CfnApi.CorsConfigurationProperty.getAllowOrigin()
allowOrigin
- `CfnApi.CorsConfigurationProperty.AllowOrigin`. This parameter is required.this
public CfnApi.CorsConfigurationProperty.Builder allowCredentials(java.lang.Boolean allowCredentials)
CfnApi.CorsConfigurationProperty.getAllowCredentials()
allowCredentials
- `CfnApi.CorsConfigurationProperty.AllowCredentials`.this
public CfnApi.CorsConfigurationProperty.Builder allowCredentials(IResolvable allowCredentials)
CfnApi.CorsConfigurationProperty.getAllowCredentials()
allowCredentials
- `CfnApi.CorsConfigurationProperty.AllowCredentials`.this
public CfnApi.CorsConfigurationProperty.Builder allowHeaders(java.lang.String allowHeaders)
CfnApi.CorsConfigurationProperty.getAllowHeaders()
allowHeaders
- `CfnApi.CorsConfigurationProperty.AllowHeaders`.this
public CfnApi.CorsConfigurationProperty.Builder allowMethods(java.lang.String allowMethods)
CfnApi.CorsConfigurationProperty.getAllowMethods()
allowMethods
- `CfnApi.CorsConfigurationProperty.AllowMethods`.this
public CfnApi.CorsConfigurationProperty.Builder maxAge(java.lang.String maxAge)
CfnApi.CorsConfigurationProperty.getMaxAge()
maxAge
- `CfnApi.CorsConfigurationProperty.MaxAge`.this
public CfnApi.CorsConfigurationProperty build()
CfnApi.CorsConfigurationProperty
java.lang.NullPointerException
- if any required attribute was not provided