ServiceCorsConfigurationInfo Class
- java.
lang. Object - com.
azure. resourcemanager. healthcareapis. models. ServiceCorsConfigurationInfo
- com.
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 allow |
List<String> |
headers()
Get the headers property: The headers to be allowed via CORS. |
Integer |
maxAge()
Get the max |
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. |
Service |
withAllowCredentials(Boolean allowCredentials)
Set the allow |
Service |
withHeaders(List<String> headers)
Set the headers property: The headers to be allowed via CORS. |
Service |
withMaxAge(Integer maxAge)
Set the max |
Service |
withMethods(List<String> methods)
Set the methods property: The methods to be allowed via CORS. |
Service |
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:
headers
public List
Get the headers property: The headers to be allowed via CORS.
Returns:
maxAge
public Integer maxAge()
Get the maxAge property: The max age to be allowed via CORS.
Returns:
methods
public List
Get the methods property: The methods to be allowed via CORS.
Returns:
origins
public List
Get the origins property: The origins to be allowed via CORS.
Returns:
validate
public void validate()
Validates the instance.
withAllowCredentials
public ServiceCorsConfigurationInfo withAllowCredentials(Boolean allowCredentials)
Set the allowCredentials property: If credentials are allowed via CORS.
Parameters:
Returns:
withHeaders
public ServiceCorsConfigurationInfo withHeaders(List
Set the headers property: The headers to be allowed via CORS.
Parameters:
Returns:
withMaxAge
public ServiceCorsConfigurationInfo withMaxAge(Integer maxAge)
Set the maxAge property: The max age to be allowed via CORS.
Parameters:
Returns:
withMethods
public ServiceCorsConfigurationInfo withMethods(List
Set the methods property: The methods to be allowed via CORS.
Parameters:
Returns:
withOrigins
public ServiceCorsConfigurationInfo withOrigins(List
Set the origins property: The origins to be allowed via CORS.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for