Class WebBasicAuthentication
java.lang.Object
com.azure.resourcemanager.datafactory.models.WebLinkedServiceTypeProperties
com.azure.resourcemanager.datafactory.models.WebBasicAuthentication
A WebLinkedService that uses basic authentication to communicate with an HTTP endpoint.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of WebBasicAuthentication class. -
Method Summary
Modifier and TypeMethodDescriptionpassword()Get the password property: The password for Basic authentication.username()Get the username property: User name for Basic authentication.voidvalidate()Validates the instance.withPassword(SecretBase password) Set the password property: The password for Basic authentication.Set the url property: The URL of the web service endpoint, e.g.withUsername(Object username) Set the username property: User name for Basic authentication.Methods inherited from class com.azure.resourcemanager.datafactory.models.WebLinkedServiceTypeProperties
url
-
Constructor Details
-
WebBasicAuthentication
public WebBasicAuthentication()Creates an instance of WebBasicAuthentication class.
-
-
Method Details
-
username
Get the username property: User name for Basic authentication. Type: string (or Expression with resultType string).- Returns:
- the username value.
-
withUsername
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
Get the password property: The password for Basic authentication.- Returns:
- the password value.
-
withPassword
Set the password property: The password for Basic authentication.- Parameters:
password- the password value to set.- Returns:
- the WebBasicAuthentication object itself.
-
withUrl
Set the url property: The URL of the web service endpoint, e.g. https://www.microsoft.com . Type: string (or Expression with resultType string).- Overrides:
withUrlin classWebLinkedServiceTypeProperties- Parameters:
url- the url value to set.- Returns:
- the WebLinkedServiceTypeProperties object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classWebLinkedServiceTypeProperties- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-