CorsRule Class

  • java.lang.Object
    • com.azure.resourcemanager.maps.models.CorsRule

public final class CorsRule

Specifies a CORS rule for the Map Account.

Constructor Summary

Constructor Description
CorsRule()

Creates an instance of CorsRule class.

Method Summary

Modifier and Type Method and Description
List<String> allowedOrigins()

Get the allowedOrigins property: Required if CorsRule element is present.

void validate()

Validates the instance.

CorsRule withAllowedOrigins(List<String> allowedOrigins)

Set the allowedOrigins property: Required if CorsRule element is present.

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:

the allowedOrigins value.

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:

allowedOrigins - the allowedOrigins value to set.

Returns:

the CorsRule object itself.

Applies to