Class BackendProxyContract
- java.lang.Object
-
- com.azure.resourcemanager.apimanagement.models.BackendProxyContract
-
public final class BackendProxyContract extends Object
Details of the Backend WebProxy Server to use in the Request to Backend.
-
-
Constructor Summary
Constructors Constructor Description BackendProxyContract()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
password()
Get the password property: Password to connect to the WebProxy Server.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.String
username()
Get the username property: Username to connect to the WebProxy server.void
validate()
Validates the instance.BackendProxyContract
withPassword(String password)
Set the password property: Password to connect to the WebProxy Server.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.BackendProxyContract
withUsername(String username)
Set the username property: Username to connect to the WebProxy server.
-
-
-
Method Detail
-
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.
-
-