Class ManagedInstanceAdministratorInner

java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.sql.fluent.models.ManagedInstanceAdministratorInner
All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>

public final class ManagedInstanceAdministratorInner extends com.azure.core.management.ProxyResource
An Azure SQL managed instance administrator.
  • Constructor Details

    • ManagedInstanceAdministratorInner

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

    • type

      public String type()
      Get the type property: The type of the resource.
      Overrides:
      type in class com.azure.core.management.ProxyResource
      Returns:
      the type value.
    • name

      public String name()
      Get the name property: The name of the resource.
      Overrides:
      name in class com.azure.core.management.ProxyResource
      Returns:
      the name value.
    • id

      public String id()
      Get the id property: Fully qualified resource Id for the resource.
      Overrides:
      id in class com.azure.core.management.ProxyResource
      Returns:
      the id value.
    • administratorType

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

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

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

      public ManagedInstanceAdministratorInner withLogin(String login)
      Set the login property: Login name of the managed instance administrator.
      Parameters:
      login - the login value to set.
      Returns:
      the ManagedInstanceAdministratorInner 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 ManagedInstanceAdministratorInner object itself.
    • tenantId

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

      public ManagedInstanceAdministratorInner withTenantId(UUID tenantId)
      Set the tenantId property: Tenant ID of the managed instance administrator.
      Parameters:
      tenantId - the tenantId value to set.
      Returns:
      the ManagedInstanceAdministratorInner 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<com.azure.core.management.ProxyResource>
      Overrides:
      toJson in class com.azure.core.management.ProxyResource
      Throws:
      IOException
    • fromJson

      public static ManagedInstanceAdministratorInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ManagedInstanceAdministratorInner from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ManagedInstanceAdministratorInner 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 ManagedInstanceAdministratorInner.