Class AdministratorProperties

java.lang.Object
com.azure.resourcemanager.mysqlflexibleserver.fluent.models.AdministratorProperties

public final class AdministratorProperties extends Object
The properties of an administrator.
  • Constructor Details

    • AdministratorProperties

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

    • administratorType

      public AdministratorType administratorType()
      Get the administratorType property: Type of the sever administrator.
      Returns:
      the administratorType value.
    • withAdministratorType

      public AdministratorProperties withAdministratorType(AdministratorType administratorType)
      Set the administratorType property: Type of the sever administrator.
      Parameters:
      administratorType - the administratorType value to set.
      Returns:
      the AdministratorProperties object itself.
    • login

      public String login()
      Get the login property: Login name of the server administrator.
      Returns:
      the login value.
    • withLogin

      public AdministratorProperties withLogin(String login)
      Set the login property: Login name of the server administrator.
      Parameters:
      login - the login value to set.
      Returns:
      the AdministratorProperties object itself.
    • sid

      public String sid()
      Get the sid property: SID (object ID) of the server administrator.
      Returns:
      the sid value.
    • withSid

      public AdministratorProperties withSid(String sid)
      Set the sid property: SID (object ID) of the server administrator.
      Parameters:
      sid - the sid value to set.
      Returns:
      the AdministratorProperties object itself.
    • tenantId

      public String tenantId()
      Get the tenantId property: Tenant ID of the administrator.
      Returns:
      the tenantId value.
    • withTenantId

      public AdministratorProperties withTenantId(String tenantId)
      Set the tenantId property: Tenant ID of the administrator.
      Parameters:
      tenantId - the tenantId value to set.
      Returns:
      the AdministratorProperties object itself.
    • identityResourceId

      public String identityResourceId()
      Get the identityResourceId property: The resource id of the identity used for AAD Authentication.
      Returns:
      the identityResourceId value.
    • withIdentityResourceId

      public AdministratorProperties withIdentityResourceId(String identityResourceId)
      Set the identityResourceId property: The resource id of the identity used for AAD Authentication.
      Parameters:
      identityResourceId - the identityResourceId value to set.
      Returns:
      the AdministratorProperties object itself.
    • validate

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