ServerlessUpstreamSettings Class

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

Implements

public final class ServerlessUpstreamSettings
implements JsonSerializable<ServerlessUpstreamSettings>

The settings for the Upstream when the service is in server-less mode.

Constructor Summary

Constructor Description
ServerlessUpstreamSettings()

Creates an instance of ServerlessUpstreamSettings class.

Method Summary

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

Reads an instance of ServerlessUpstreamSettings from the JsonReader.

List<UpstreamTemplate> templates()

Get the templates property: Gets or sets the list of Upstream URL templates.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ServerlessUpstreamSettings withTemplates(List<UpstreamTemplate> templates)

Set the templates property: Gets or sets the list of Upstream URL templates.

Methods inherited from java.lang.Object

Constructor Details

ServerlessUpstreamSettings

public ServerlessUpstreamSettings()

Creates an instance of ServerlessUpstreamSettings class.

Method Details

fromJson

public static ServerlessUpstreamSettings fromJson(JsonReader jsonReader)

Reads an instance of ServerlessUpstreamSettings from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ServerlessUpstreamSettings 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 ServerlessUpstreamSettings.

templates

public List<UpstreamTemplate> templates()

Get the templates property: Gets or sets the list of Upstream URL templates. Order matters, and the first matching template takes effects.

Returns:

the templates value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withTemplates

public ServerlessUpstreamSettings withTemplates(List<UpstreamTemplate> templates)

Set the templates property: Gets or sets the list of Upstream URL templates. Order matters, and the first matching template takes effects.

Parameters:

templates - the templates value to set.

Returns:

the ServerlessUpstreamSettings object itself.

Applies to