Class HttpSettings
java.lang.Object
com.azure.resourcemanager.appservice.models.HttpSettings
- All Implemented Interfaces:
com.azure.json.JsonSerializable<HttpSettings>
public final class HttpSettings
extends Object
implements com.azure.json.JsonSerializable<HttpSettings>
The configuration settings of the HTTP requests for authentication and authorization requests made against App
Service Authentication/Authorization.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the forwardProxy property: The configuration settings of a forward proxy used to make the requests.static HttpSettings
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of HttpSettings from the JsonReader.Get the requireHttps property: <code>false</code> if the authentication/authorization responses not having the HTTPS scheme are permissible; otherwise, <code>true</code>.routes()
Get the routes property: The configuration settings of the paths HTTP requests.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withForwardProxy
(ForwardProxy forwardProxy) Set the forwardProxy property: The configuration settings of a forward proxy used to make the requests.withRequireHttps
(Boolean requireHttps) Set the requireHttps property: <code>false</code> if the authentication/authorization responses not having the HTTPS scheme are permissible; otherwise, <code>true</code>.withRoutes
(HttpSettingsRoutes routes) Set the routes property: The configuration settings of the paths HTTP requests.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
HttpSettings
public HttpSettings()Creates an instance of HttpSettings class.
-
-
Method Details
-
requireHttps
Get the requireHttps property: <code>false</code> if the authentication/authorization responses not having the HTTPS scheme are permissible; otherwise, <code>true</code>.- Returns:
- the requireHttps value.
-
withRequireHttps
Set the requireHttps property: <code>false</code> if the authentication/authorization responses not having the HTTPS scheme are permissible; otherwise, <code>true</code>.- Parameters:
requireHttps
- the requireHttps value to set.- Returns:
- the HttpSettings object itself.
-
routes
Get the routes property: The configuration settings of the paths HTTP requests.- Returns:
- the routes value.
-
withRoutes
Set the routes property: The configuration settings of the paths HTTP requests.- Parameters:
routes
- the routes value to set.- Returns:
- the HttpSettings object itself.
-
forwardProxy
Get the forwardProxy property: The configuration settings of a forward proxy used to make the requests.- Returns:
- the forwardProxy value.
-
withForwardProxy
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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<HttpSettings>
- Throws:
IOException
-
fromJson
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.
-