SignalRFeature Class

  • java.lang.Object
    • com.azure.resourcemanager.signalr.models.SignalRFeature

Implements

public final class SignalRFeature
implements JsonSerializable<SignalRFeature>

Feature of a resource, which controls the runtime behavior.

Constructor Summary

Constructor Description
SignalRFeature()

Creates an instance of SignalRFeature class.

Method Summary

Modifier and Type Method and Description
FeatureFlags flag()

Get the flag property: FeatureFlags is the supported features of Azure SignalR service.

static SignalRFeature fromJson(JsonReader jsonReader)

Reads an instance of SignalRFeature from the JsonReader.

Map<String,String> properties()

Get the properties property: Optional properties related to this feature.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String value()

Get the value property: Value of the feature flag.

SignalRFeature withFlag(FeatureFlags flag)

Set the flag property: FeatureFlags is the supported features of Azure SignalR service.

SignalRFeature withProperties(Map<String,String> properties)

Set the properties property: Optional properties related to this feature.

SignalRFeature withValue(String value)

Set the value property: Value of the feature flag.

Methods inherited from java.lang.Object

Constructor Details

SignalRFeature

public SignalRFeature()

Creates an instance of SignalRFeature class.

Method Details

flag

public FeatureFlags flag()

Get the flag property: FeatureFlags is the supported features of Azure SignalR service. - ServiceMode: Flag for backend server for SignalR service. Values allowed: "Default": have your own backend server; "Serverless": your application doesn't have a backend server; "Classic": for backward compatibility. Support both Default and Serverless mode but not recommended; "PredefinedOnly": for future use. - EnableConnectivityLogs: "true"/"false", to enable/disable the connectivity log category respectively. - EnableMessagingLogs: "true"/"false", to enable/disable the connectivity log category respectively. - EnableLiveTrace: Live Trace allows you to know what's happening inside Azure SignalR service, it will give you live traces in real time, it will be helpful when you developing your own Azure SignalR based web application or self-troubleshooting some issues. Please note that live traces are counted as outbound messages that will be charged. Values allowed: "true"/"false", to enable/disable live trace feature.

Returns:

the flag value.

fromJson

public static SignalRFeature fromJson(JsonReader jsonReader)

Reads an instance of SignalRFeature from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SignalRFeature if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

properties

public Map<String,String> properties()

Get the properties property: Optional properties related to this feature.

Returns:

the properties value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

value

public String value()

Get the value property: Value of the feature flag. See Azure SignalR service document https://docs.microsoft.com/azure/azure-signalr/ for allowed values.

Returns:

the value value.

withFlag

public SignalRFeature withFlag(FeatureFlags flag)

Set the flag property: FeatureFlags is the supported features of Azure SignalR service. - ServiceMode: Flag for backend server for SignalR service. Values allowed: "Default": have your own backend server; "Serverless": your application doesn't have a backend server; "Classic": for backward compatibility. Support both Default and Serverless mode but not recommended; "PredefinedOnly": for future use. - EnableConnectivityLogs: "true"/"false", to enable/disable the connectivity log category respectively. - EnableMessagingLogs: "true"/"false", to enable/disable the connectivity log category respectively. - EnableLiveTrace: Live Trace allows you to know what's happening inside Azure SignalR service, it will give you live traces in real time, it will be helpful when you developing your own Azure SignalR based web application or self-troubleshooting some issues. Please note that live traces are counted as outbound messages that will be charged. Values allowed: "true"/"false", to enable/disable live trace feature.

Parameters:

flag - the flag value to set.

Returns:

the SignalRFeature object itself.

withProperties

public SignalRFeature withProperties(Map<String,String> properties)

Set the properties property: Optional properties related to this feature.

Parameters:

properties - the properties value to set.

Returns:

the SignalRFeature object itself.

withValue

public SignalRFeature withValue(String value)

Set the value property: Value of the feature flag. See Azure SignalR service document https://docs.microsoft.com/azure/azure-signalr/ for allowed values.

Parameters:

value - the value value to set.

Returns:

the SignalRFeature object itself.

Applies to