HttpSettings Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.models.HttpSettings

Implements

public final class HttpSettings
implements JsonSerializable<HttpSettings>

The configuration settings of the HTTP requests for authentication and authorization requests made against App Service Authentication/Authorization.

Constructor Summary

Constructor Description
HttpSettings()

Creates an instance of HttpSettings class.

Method Summary

Modifier and Type Method and Description
ForwardProxy forwardProxy()

Get the forwardProxy property: The configuration settings of a forward proxy used to make the requests.

static HttpSettings fromJson(JsonReader jsonReader)

Reads an instance of HttpSettings from the JsonReader.

Boolean requireHttps()

Get the requireHttps property: false if the authentication/authorization responses not having the HTTPS scheme are permissible; otherwise, true.

HttpSettingsRoutes routes()

Get the routes property: The configuration settings of the paths HTTP requests.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

HttpSettings withForwardProxy(ForwardProxy forwardProxy)

Set the forwardProxy property: The configuration settings of a forward proxy used to make the requests.

HttpSettings withRequireHttps(Boolean requireHttps)

Set the requireHttps property: false if the authentication/authorization responses not having the HTTPS scheme are permissible; otherwise, true.

HttpSettings withRoutes(HttpSettingsRoutes routes)

Set the routes property: The configuration settings of the paths HTTP requests.

Methods inherited from java.lang.Object

Constructor Details

HttpSettings

public HttpSettings()

Creates an instance of HttpSettings class.

Method Details

forwardProxy

public ForwardProxy forwardProxy()

Get the forwardProxy property: The configuration settings of a forward proxy used to make the requests.

Returns:

the forwardProxy value.

fromJson

public static HttpSettings fromJson(JsonReader jsonReader)

Reads an instance of HttpSettings from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

requireHttps

public Boolean requireHttps()

Get the requireHttps property: false if the authentication/authorization responses not having the HTTPS scheme are permissible; otherwise, true.

Returns:

the requireHttps value.

routes

public HttpSettingsRoutes routes()

Get the routes property: The configuration settings of the paths HTTP requests.

Returns:

the routes value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withForwardProxy

public HttpSettings withForwardProxy(ForwardProxy forwardProxy)

Set the forwardProxy property: The configuration settings of a forward proxy used to make the requests.

Parameters:

forwardProxy - the forwardProxy value to set.

Returns:

the HttpSettings object itself.

withRequireHttps

public HttpSettings withRequireHttps(Boolean requireHttps)

Set the requireHttps property: false if the authentication/authorization responses not having the HTTPS scheme are permissible; otherwise, true.

Parameters:

requireHttps - the requireHttps value to set.

Returns:

the HttpSettings object itself.

withRoutes

public HttpSettings withRoutes(HttpSettingsRoutes routes)

Set the routes property: The configuration settings of the paths HTTP requests.

Parameters:

routes - the routes value to set.

Returns:

the HttpSettings object itself.

Applies to