Class ServerlessUpstreamSettings
- java.lang.Object
-
- com.azure.resourcemanager.signalr.models.ServerlessUpstreamSettings
-
public final class ServerlessUpstreamSettings extends Object
The settings for the Upstream when the service is in server-less mode.
-
-
Constructor Summary
Constructors Constructor Description ServerlessUpstreamSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<UpstreamTemplate>
templates()
Get the templates property: Gets or sets the list of Upstream URL templates.void
validate()
Validates the instance.ServerlessUpstreamSettings
withTemplates(List<UpstreamTemplate> templates)
Set the templates property: Gets or sets the list of Upstream URL templates.
-
-
-
Method Detail
-
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.
-
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.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-