Class ManagedInstanceAdministratorProperties

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

public final class ManagedInstanceAdministratorProperties extends Object implements com.azure.json.JsonSerializable<ManagedInstanceAdministratorProperties>
The properties of a managed instance administrator.
  • Constructor Details

    • ManagedInstanceAdministratorProperties

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

    • administratorType

      public ManagedInstanceAdministratorType administratorType()
      Get the administratorType property: Type of the managed instance administrator.
      Returns:
      the administratorType value.
    • withAdministratorType

      public ManagedInstanceAdministratorProperties withAdministratorType(ManagedInstanceAdministratorType administratorType)
      Set the administratorType property: Type of the managed instance administrator.
      Parameters:
      administratorType - the administratorType value to set.
      Returns:
      the ManagedInstanceAdministratorProperties object itself.
    • login

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

      Set the login property: Login name of the managed instance administrator.
      Parameters:
      login - the login value to set.
      Returns:
      the ManagedInstanceAdministratorProperties object itself.
    • sid

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

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

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

      public ManagedInstanceAdministratorProperties withTenantId(UUID tenantId)
      Set the tenantId property: Tenant ID of the managed instance administrator.
      Parameters:
      tenantId - the tenantId value to set.
      Returns:
      the ManagedInstanceAdministratorProperties 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<ManagedInstanceAdministratorProperties>
      Throws:
      IOException
    • fromJson

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