WebPubSubSocketIOSettings Class

  • java.lang.Object
    • com.azure.resourcemanager.webpubsub.models.WebPubSubSocketIOSettings

Implements

public final class WebPubSubSocketIOSettings
implements JsonSerializable<WebPubSubSocketIOSettings>

SocketIO settings for the resource.

Constructor Summary

Constructor Description
WebPubSubSocketIOSettings()

Creates an instance of WebPubSubSocketIOSettings class.

Method Summary

Modifier and Type Method and Description
static WebPubSubSocketIOSettings fromJson(JsonReader jsonReader)

Reads an instance of WebPubSubSocketIOSettings from the JsonReader.

String serviceMode()

Get the serviceMode property: The service mode of Web PubSub for Socket.IO.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

WebPubSubSocketIOSettings withServiceMode(String serviceMode)

Set the serviceMode property: The service mode of Web PubSub for Socket.IO.

Methods inherited from java.lang.Object

Constructor Details

WebPubSubSocketIOSettings

public WebPubSubSocketIOSettings()

Creates an instance of WebPubSubSocketIOSettings class.

Method Details

fromJson

public static WebPubSubSocketIOSettings fromJson(JsonReader jsonReader)

Reads an instance of WebPubSubSocketIOSettings from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the WebPubSubSocketIOSettings.

serviceMode

public String serviceMode()

Get the serviceMode property: The service mode of Web PubSub for Socket.IO. Values allowed: "Default": have your own backend Socket.IO server "Serverless": your application doesn't have a backend server.

Returns:

the serviceMode value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withServiceMode

public WebPubSubSocketIOSettings withServiceMode(String serviceMode)

Set the serviceMode property: The service mode of Web PubSub for Socket.IO. Values allowed: "Default": have your own backend Socket.IO server "Serverless": your application doesn't have a backend server.

Parameters:

serviceMode - the serviceMode value to set.

Returns:

the WebPubSubSocketIOSettings object itself.

Applies to