Class JobCredentialInner

java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.sql.fluent.models.JobCredentialInner

public final class JobCredentialInner extends com.azure.core.management.ProxyResource
A stored credential that can be used by a job to connect to target databases.
  • Constructor Details

    • JobCredentialInner

      public JobCredentialInner()
      Creates an instance of JobCredentialInner class.
  • Method Details

    • username

      public String username()
      Get the username property: The credential user name.
      Returns:
      the username value.
    • withUsername

      public JobCredentialInner withUsername(String username)
      Set the username property: The credential user name.
      Parameters:
      username - the username value to set.
      Returns:
      the JobCredentialInner object itself.
    • password

      public String password()
      Get the password property: The credential password.
      Returns:
      the password value.
    • withPassword

      public JobCredentialInner withPassword(String password)
      Set the password property: The credential password.
      Parameters:
      password - the password value to set.
      Returns:
      the JobCredentialInner object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.