ServiceCorsConfigurationInfo Class

  • java.lang.Object
    • com.azure.resourcemanager.healthcareapis.models.ServiceCorsConfigurationInfo

public final class ServiceCorsConfigurationInfo

The settings for the CORS configuration of the service instance.

Constructor Summary

Constructor Description
ServiceCorsConfigurationInfo()

Method Summary

Modifier and Type Method and Description
Boolean allowCredentials()

Get the allowCredentials property: If credentials are allowed via CORS.

List<String> headers()

Get the headers property: The headers to be allowed via CORS.

Integer maxAge()

Get the maxAge property: The max age to be allowed via CORS.

List<String> methods()

Get the methods property: The methods to be allowed via CORS.

List<String> origins()

Get the origins property: The origins to be allowed via CORS.

void validate()

Validates the instance.

ServiceCorsConfigurationInfo withAllowCredentials(Boolean allowCredentials)

Set the allowCredentials property: If credentials are allowed via CORS.

ServiceCorsConfigurationInfo withHeaders(List<String> headers)

Set the headers property: The headers to be allowed via CORS.

ServiceCorsConfigurationInfo withMaxAge(Integer maxAge)

Set the maxAge property: The max age to be allowed via CORS.

ServiceCorsConfigurationInfo withMethods(List<String> methods)

Set the methods property: The methods to be allowed via CORS.

ServiceCorsConfigurationInfo withOrigins(List<String> origins)

Set the origins property: The origins to be allowed via CORS.

Methods inherited from java.lang.Object

Constructor Details

ServiceCorsConfigurationInfo

public ServiceCorsConfigurationInfo()

Method Details

allowCredentials

public Boolean allowCredentials()

Get the allowCredentials property: If credentials are allowed via CORS.

Returns:

the allowCredentials value.

headers

public List headers()

Get the headers property: The headers to be allowed via CORS.

Returns:

the headers value.

maxAge

public Integer maxAge()

Get the maxAge property: The max age to be allowed via CORS.

Returns:

the maxAge value.

methods

public List methods()

Get the methods property: The methods to be allowed via CORS.

Returns:

the methods value.

origins

public List origins()

Get the origins property: The origins to be allowed via CORS.

Returns:

the origins value.

validate

public void validate()

Validates the instance.

withAllowCredentials

public ServiceCorsConfigurationInfo withAllowCredentials(Boolean allowCredentials)

Set the allowCredentials property: If credentials are allowed via CORS.

Parameters:

allowCredentials - the allowCredentials value to set.

Returns:

the ServiceCorsConfigurationInfo object itself.

withHeaders

public ServiceCorsConfigurationInfo withHeaders(List headers)

Set the headers property: The headers to be allowed via CORS.

Parameters:

headers - the headers value to set.

Returns:

the ServiceCorsConfigurationInfo object itself.

withMaxAge

public ServiceCorsConfigurationInfo withMaxAge(Integer maxAge)

Set the maxAge property: The max age to be allowed via CORS.

Parameters:

maxAge - the maxAge value to set.

Returns:

the ServiceCorsConfigurationInfo object itself.

withMethods

public ServiceCorsConfigurationInfo withMethods(List methods)

Set the methods property: The methods to be allowed via CORS.

Parameters:

methods - the methods value to set.

Returns:

the ServiceCorsConfigurationInfo object itself.

withOrigins

public ServiceCorsConfigurationInfo withOrigins(List origins)

Set the origins property: The origins to be allowed via CORS.

Parameters:

origins - the origins value to set.

Returns:

the ServiceCorsConfigurationInfo object itself.

Applies to