Class WebBasicAuthentication
- java.lang.Object
-
- com.azure.resourcemanager.datafactory.models.WebLinkedServiceTypeProperties
-
- com.azure.resourcemanager.datafactory.models.WebBasicAuthentication
-
public final class WebBasicAuthentication extends WebLinkedServiceTypeProperties
A WebLinkedService that uses basic authentication to communicate with an HTTP endpoint.
-
-
Constructor Summary
Constructors Constructor Description WebBasicAuthentication()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SecretBase
password()
Get the password property: The password for Basic authentication.Object
username()
Get the username property: User name for Basic authentication.void
validate()
Validates the instance.WebBasicAuthentication
withPassword(SecretBase password)
Set the password property: The password for Basic authentication.WebBasicAuthentication
withUrl(Object url)
Set the url property: The URL of the web service endpoint, e.g.WebBasicAuthentication
withUsername(Object username)
Set the username property: User name for Basic authentication.-
Methods inherited from class com.azure.resourcemanager.datafactory.models.WebLinkedServiceTypeProperties
url
-
-
-
-
Method Detail
-
username
public Object username()
Get the username property: User name for Basic authentication. Type: string (or Expression with resultType string).- Returns:
- the username value.
-
withUsername
public WebBasicAuthentication withUsername(Object username)
Set the username property: User name for Basic authentication. Type: string (or Expression with resultType string).- Parameters:
username
- the username value to set.- Returns:
- the WebBasicAuthentication object itself.
-
password
public SecretBase password()
Get the password property: The password for Basic authentication.- Returns:
- the password value.
-
withPassword
public WebBasicAuthentication withPassword(SecretBase password)
Set the password property: The password for Basic authentication.- Parameters:
password
- the password value to set.- Returns:
- the WebBasicAuthentication object itself.
-
withUrl
public WebBasicAuthentication withUrl(Object url)
Set the url property: The URL of the web service endpoint, e.g. http://www.microsoft.com . Type: string (or Expression with resultType string).- Overrides:
withUrl
in classWebLinkedServiceTypeProperties
- Parameters:
url
- the url value to set.- Returns:
- the WebLinkedServiceTypeProperties object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classWebLinkedServiceTypeProperties
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-