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 -
Method Summary
Modifier and TypeMethodDescriptionstatic BackendProxyContractfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of BackendProxyContract from the JsonReader.password()Get the password property: Password to connect to the WebProxy Server.com.azure.json.JsonWritertoJson(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.username()Get the username property: Username to connect to the WebProxy server.voidvalidate()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, waitMethods 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
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
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
Get the username property: Username to connect to the WebProxy server.- Returns:
- the username value.
-
withUsername
Set the username property: Username to connect to the WebProxy server.- Parameters:
username- the username value to set.- Returns:
- the BackendProxyContract object itself.
-
password
Get the password property: Password to connect to the WebProxy Server.- Returns:
- the password value.
-
withPassword
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
- Specified by:
toJsonin interfacecom.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.
-