CorsRule Class
- java.
lang. Object - com.
azure. resourcemanager. maps. models. CorsRule
- com.
public final class CorsRule
Specifies a CORS rule for the Map Account.
Constructor Summary
| Constructor | Description |
|---|---|
| CorsRule() |
Creates an instance of Cors |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| List<String> |
allowedOrigins()
Get the allowed |
| void |
validate()
Validates the instance. |
|
Cors |
withAllowedOrigins(List<String> allowedOrigins)
Set the allowed |
Methods inherited from java.lang.Object
Constructor Details
CorsRule
public CorsRule()
Creates an instance of CorsRule class.
Method Details
allowedOrigins
public List<String> allowedOrigins()
Get the allowedOrigins property: Required if CorsRule element is present. A list of origin domains that will be allowed via CORS, or "*" to allow all domains.
Returns:
validate
public void validate()
Validates the instance.
withAllowedOrigins
public CorsRule withAllowedOrigins(List<String> allowedOrigins)
Set the allowedOrigins property: Required if CorsRule element is present. A list of origin domains that will be allowed via CORS, or "*" to allow all domains.
Parameters:
Returns: