Class ManagedInstanceExternalAdministrator

java.lang.Object
com.azure.resourcemanager.sql.models.ManagedInstanceExternalAdministrator
All Implemented Interfaces:
com.azure.json.JsonSerializable<ManagedInstanceExternalAdministrator>

public final class ManagedInstanceExternalAdministrator extends Object implements com.azure.json.JsonSerializable<ManagedInstanceExternalAdministrator>
Properties of a active directory administrator.
  • Constructor Details

    • ManagedInstanceExternalAdministrator

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

    • administratorType

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

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

      public PrincipalType principalType()
      Get the principalType property: Principal Type of the sever administrator.
      Returns:
      the principalType value.
    • withPrincipalType

      public ManagedInstanceExternalAdministrator withPrincipalType(PrincipalType principalType)
      Set the principalType property: Principal Type of the sever administrator.
      Parameters:
      principalType - the principalType value to set.
      Returns:
      the ManagedInstanceExternalAdministrator object itself.
    • login

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

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

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

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

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

      public ManagedInstanceExternalAdministrator withTenantId(UUID tenantId)
      Set the tenantId property: Tenant ID of the administrator.
      Parameters:
      tenantId - the tenantId value to set.
      Returns:
      the ManagedInstanceExternalAdministrator object itself.
    • azureADOnlyAuthentication

      public Boolean azureADOnlyAuthentication()
      Get the azureADOnlyAuthentication property: Azure Active Directory only Authentication enabled.
      Returns:
      the azureADOnlyAuthentication value.
    • withAzureADOnlyAuthentication

      public ManagedInstanceExternalAdministrator withAzureADOnlyAuthentication(Boolean azureADOnlyAuthentication)
      Set the azureADOnlyAuthentication property: Azure Active Directory only Authentication enabled.
      Parameters:
      azureADOnlyAuthentication - the azureADOnlyAuthentication value to set.
      Returns:
      the ManagedInstanceExternalAdministrator object itself.
    • validate

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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<ManagedInstanceExternalAdministrator>
      Throws:
      IOException
    • fromJson

      public static ManagedInstanceExternalAdministrator fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ManagedInstanceExternalAdministrator from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ManagedInstanceExternalAdministrator if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the ManagedInstanceExternalAdministrator.