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
    Constructor
    Description
    Creates an instance of HttpSettings class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the forwardProxy property: The configuration settings of a forward proxy used to make the requests.
    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>.
    Get the routes property: The configuration settings of the paths HTTP requests.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    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>.
    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

      public Boolean 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

      public HttpSettings 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>.
      Parameters:
      requireHttps - the requireHttps value to set.
      Returns:
      the HttpSettings object itself.
    • routes

      public HttpSettingsRoutes routes()
      Get the routes property: The configuration settings of the paths HTTP requests.
      Returns:
      the routes value.
    • 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.
    • forwardProxy

      public ForwardProxy forwardProxy()
      Get the forwardProxy property: The configuration settings of a forward proxy used to make the requests.
      Returns:
      the forwardProxy value.
    • 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.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<HttpSettings>
      Throws:
      IOException
    • fromJson

      public static HttpSettings fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.