SignalRCorsSettings Class
- java.
lang. Object - com.
azure. resourcemanager. signalr. models. SignalRCorsSettings
- com.
Implements
public final class SignalRCorsSettings
implements JsonSerializable<SignalRCorsSettings>
Cross-Origin Resource Sharing (CORS) settings.
Constructor Summary
| Constructor | Description |
|---|---|
| SignalRCorsSettings() |
Creates an instance of Signal |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| List<String> |
allowedOrigins()
Get the allowed |
|
static
Signal |
fromJson(JsonReader jsonReader)
Reads an instance of Signal |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Signal |
withAllowedOrigins(List<String> allowedOrigins)
Set the allowed |
Methods inherited from java.lang.Object
Constructor Details
SignalRCorsSettings
public SignalRCorsSettings()
Creates an instance of SignalRCorsSettings class.
Method Details
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:
fromJson
public static SignalRCorsSettings fromJson(JsonReader jsonReader)
Reads an instance of SignalRCorsSettings from the JsonReader.
Parameters:
Returns:
Throws:
toJson
validate
public void validate()
Validates the instance.
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:
Returns: