Class SignalRCorsSettings
- java.lang.Object
-
- com.azure.resourcemanager.signalr.models.SignalRCorsSettings
-
public final class SignalRCorsSettings extends Object
Cross-Origin Resource Sharing (CORS) settings.
-
-
Constructor Summary
Constructors Constructor Description SignalRCorsSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
allowedOrigins()
Get the allowedOrigins property: Gets or sets the list of origins that should be allowed to make cross-origin calls (for example: http://example.com:12345).void
validate()
Validates the instance.SignalRCorsSettings
withAllowedOrigins(List<String> allowedOrigins)
Set the allowedOrigins property: Gets or sets the list of origins that should be allowed to make cross-origin calls (for example: http://example.com:12345).
-
-
-
Method Detail
-
allowedOrigins
public List<String> allowedOrigins()
Get the allowedOrigins property: Gets or sets the list of origins that should be allowed to make cross-origin calls (for example: http://example.com:12345). Use "*" to allow all. If omitted, allow all by default.- Returns:
- the allowedOrigins value.
-
withAllowedOrigins
public SignalRCorsSettings withAllowedOrigins(List<String> allowedOrigins)
Set the allowedOrigins property: Gets or sets the list of origins that should be allowed to make cross-origin calls (for example: http://example.com:12345). Use "*" to allow all. If omitted, allow all by default.- Parameters:
allowedOrigins
- the allowedOrigins value to set.- Returns:
- the SignalRCorsSettings object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-