Class WebActivityAuthentication
- java.lang.Object
-
- com.azure.resourcemanager.datafactory.models.WebActivityAuthentication
-
public final class WebActivityAuthentication extends Object
Web activity authentication properties.
-
-
Constructor Summary
Constructors Constructor Description WebActivityAuthentication()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CredentialReferencecredential()Get the credential property: The credential reference containing authentication information.SecretBasepassword()Get the password property: Password for the PFX file or basic authentication / Secret when used for ServicePrincipal.SecretBasepfx()Get the pfx property: Base64-encoded contents of a PFX file or Certificate when used for ServicePrincipal.Objectresource()Get the resource property: Resource for which Azure Auth token will be requested when using MSI Authentication.Stringtype()Get the type property: Web activity authentication (Basic/ClientCertificate/MSI/ServicePrincipal).Objectusername()Get the username property: Web activity authentication user name for basic authentication or ClientID when used for ServicePrincipal.ObjectuserTenant()Get the userTenant property: TenantId for which Azure Auth token will be requested when using ServicePrincipal Authentication.voidvalidate()Validates the instance.WebActivityAuthenticationwithCredential(CredentialReference credential)Set the credential property: The credential reference containing authentication information.WebActivityAuthenticationwithPassword(SecretBase password)Set the password property: Password for the PFX file or basic authentication / Secret when used for ServicePrincipal.WebActivityAuthenticationwithPfx(SecretBase pfx)Set the pfx property: Base64-encoded contents of a PFX file or Certificate when used for ServicePrincipal.WebActivityAuthenticationwithResource(Object resource)Set the resource property: Resource for which Azure Auth token will be requested when using MSI Authentication.WebActivityAuthenticationwithType(String type)Set the type property: Web activity authentication (Basic/ClientCertificate/MSI/ServicePrincipal).WebActivityAuthenticationwithUsername(Object username)Set the username property: Web activity authentication user name for basic authentication or ClientID when used for ServicePrincipal.WebActivityAuthenticationwithUserTenant(Object userTenant)Set the userTenant property: TenantId for which Azure Auth token will be requested when using ServicePrincipal Authentication.
-
-
-
Method Detail
-
type
public String type()
Get the type property: Web activity authentication (Basic/ClientCertificate/MSI/ServicePrincipal).- Returns:
- the type value.
-
withType
public WebActivityAuthentication withType(String type)
Set the type property: Web activity authentication (Basic/ClientCertificate/MSI/ServicePrincipal).- Parameters:
type- the type value to set.- Returns:
- the WebActivityAuthentication object itself.
-
pfx
public SecretBase pfx()
Get the pfx property: Base64-encoded contents of a PFX file or Certificate when used for ServicePrincipal.- Returns:
- the pfx value.
-
withPfx
public WebActivityAuthentication withPfx(SecretBase pfx)
Set the pfx property: Base64-encoded contents of a PFX file or Certificate when used for ServicePrincipal.- Parameters:
pfx- the pfx value to set.- Returns:
- the WebActivityAuthentication object itself.
-
username
public Object username()
Get the username property: Web activity authentication user name for basic authentication or ClientID when used for ServicePrincipal. Type: string (or Expression with resultType string).- Returns:
- the username value.
-
withUsername
public WebActivityAuthentication withUsername(Object username)
Set the username property: Web activity authentication user name for basic authentication or ClientID when used for ServicePrincipal. Type: string (or Expression with resultType string).- Parameters:
username- the username value to set.- Returns:
- the WebActivityAuthentication object itself.
-
password
public SecretBase password()
Get the password property: Password for the PFX file or basic authentication / Secret when used for ServicePrincipal.- Returns:
- the password value.
-
withPassword
public WebActivityAuthentication withPassword(SecretBase password)
Set the password property: Password for the PFX file or basic authentication / Secret when used for ServicePrincipal.- Parameters:
password- the password value to set.- Returns:
- the WebActivityAuthentication object itself.
-
resource
public Object resource()
Get the resource property: Resource for which Azure Auth token will be requested when using MSI Authentication. Type: string (or Expression with resultType string).- Returns:
- the resource value.
-
withResource
public WebActivityAuthentication withResource(Object resource)
Set the resource property: Resource for which Azure Auth token will be requested when using MSI Authentication. Type: string (or Expression with resultType string).- Parameters:
resource- the resource value to set.- Returns:
- the WebActivityAuthentication object itself.
-
userTenant
public Object userTenant()
Get the userTenant property: TenantId for which Azure Auth token will be requested when using ServicePrincipal Authentication. Type: string (or Expression with resultType string).- Returns:
- the userTenant value.
-
withUserTenant
public WebActivityAuthentication withUserTenant(Object userTenant)
Set the userTenant property: TenantId for which Azure Auth token will be requested when using ServicePrincipal Authentication. Type: string (or Expression with resultType string).- Parameters:
userTenant- the userTenant value to set.- Returns:
- the WebActivityAuthentication object itself.
-
credential
public CredentialReference credential()
Get the credential property: The credential reference containing authentication information.- Returns:
- the credential value.
-
withCredential
public WebActivityAuthentication withCredential(CredentialReference credential)
Set the credential property: The credential reference containing authentication information.- Parameters:
credential- the credential value to set.- Returns:
- the WebActivityAuthentication object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-