Class BackendProxyContract

java.lang.Object
com.azure.resourcemanager.apimanagement.models.BackendProxyContract
All Implemented Interfaces:
com.azure.json.JsonSerializable<BackendProxyContract>

public final class BackendProxyContract extends Object implements com.azure.json.JsonSerializable<BackendProxyContract>
Details of the Backend WebProxy Server to use in the Request to Backend.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of BackendProxyContract class.
  • Method Summary

    Modifier and Type
    Method
    Description
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of BackendProxyContract from the JsonReader.
    Get the password property: Password to connect to the WebProxy Server.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    url()
    Get the url property: WebProxy Server AbsoluteUri property which includes the entire URI stored in the Uri instance, including all fragments and query strings.
    Get the username property: Username to connect to the WebProxy server.
    void
    Validates the instance.
    withPassword(String password)
    Set the password property: Password to connect to the WebProxy Server.
    Set the url property: WebProxy Server AbsoluteUri property which includes the entire URI stored in the Uri instance, including all fragments and query strings.
    withUsername(String username)
    Set the username property: Username to connect to the WebProxy server.

    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

    • BackendProxyContract

      public BackendProxyContract()
      Creates an instance of BackendProxyContract class.
  • Method Details

    • url

      public String url()
      Get the url property: WebProxy Server AbsoluteUri property which includes the entire URI stored in the Uri instance, including all fragments and query strings.
      Returns:
      the url value.
    • withUrl

      public BackendProxyContract withUrl(String url)
      Set the url property: WebProxy Server AbsoluteUri property which includes the entire URI stored in the Uri instance, including all fragments and query strings.
      Parameters:
      url - the url value to set.
      Returns:
      the BackendProxyContract object itself.
    • username

      public String username()
      Get the username property: Username to connect to the WebProxy server.
      Returns:
      the username value.
    • withUsername

      public BackendProxyContract withUsername(String username)
      Set the username property: Username to connect to the WebProxy server.
      Parameters:
      username - the username value to set.
      Returns:
      the BackendProxyContract object itself.
    • password

      public String password()
      Get the password property: Password to connect to the WebProxy Server.
      Returns:
      the password value.
    • withPassword

      public BackendProxyContract withPassword(String password)
      Set the password property: Password to connect to the WebProxy Server.
      Parameters:
      password - the password value to set.
      Returns:
      the BackendProxyContract 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<BackendProxyContract>
      Throws:
      IOException
    • fromJson

      public static BackendProxyContract fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of BackendProxyContract from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of BackendProxyContract if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the BackendProxyContract.