Compartilhar via


ManagedInstanceExternalAdministrator Class

  • java.lang.Object
    • com.azure.resourcemanager.sql.models.ManagedInstanceExternalAdministrator

Implements

public final class ManagedInstanceExternalAdministrator
implements JsonSerializable<ManagedInstanceExternalAdministrator>

Properties of a active directory administrator.

Constructor Summary

Constructor Description
ManagedInstanceExternalAdministrator()

Creates an instance of ManagedInstanceExternalAdministrator class.

Method Summary

Modifier and Type Method and Description
AdministratorType administratorType()

Get the administratorType property: Type of the sever administrator.

Boolean azureADOnlyAuthentication()

Get the azureADOnlyAuthentication property: Azure Active Directory only Authentication enabled.

static ManagedInstanceExternalAdministrator fromJson(JsonReader jsonReader)

Reads an instance of ManagedInstanceExternalAdministrator from the JsonReader.

String login()

Get the login property: Login name of the server administrator.

PrincipalType principalType()

Get the principalType property: Principal Type of the sever administrator.

UUID sid()

Get the sid property: SID (object ID) of the server administrator.

UUID tenantId()

Get the tenantId property: Tenant ID of the administrator.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ManagedInstanceExternalAdministrator withAdministratorType(AdministratorType administratorType)

Set the administratorType property: Type of the sever administrator.

ManagedInstanceExternalAdministrator withAzureADOnlyAuthentication(Boolean azureADOnlyAuthentication)

Set the azureADOnlyAuthentication property: Azure Active Directory only Authentication enabled.

ManagedInstanceExternalAdministrator withLogin(String login)

Set the login property: Login name of the server administrator.

ManagedInstanceExternalAdministrator withPrincipalType(PrincipalType principalType)

Set the principalType property: Principal Type of the sever administrator.

ManagedInstanceExternalAdministrator withSid(UUID sid)

Set the sid property: SID (object ID) of the server administrator.

ManagedInstanceExternalAdministrator withTenantId(UUID tenantId)

Set the tenantId property: Tenant ID of the administrator.

Methods inherited from java.lang.Object

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.

azureADOnlyAuthentication

public Boolean azureADOnlyAuthentication()

Get the azureADOnlyAuthentication property: Azure Active Directory only Authentication enabled.

Returns:

the azureADOnlyAuthentication value.

fromJson

public static ManagedInstanceExternalAdministrator fromJson(JsonReader jsonReader)

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.

login

public String login()

Get the login property: Login name of the server administrator.

Returns:

the login value.

principalType

public PrincipalType principalType()

Get the principalType property: Principal Type of the sever administrator.

Returns:

the principalType value.

sid

public UUID sid()

Get the sid property: SID (object ID) of the server administrator.

Returns:

the sid value.

tenantId

public UUID tenantId()

Get the tenantId property: Tenant ID of the administrator.

Returns:

the tenantId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

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.

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.

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.

withSid

public ManagedInstanceExternalAdministrator withSid(UUID sid)

Set the sid property: SID (object ID) of the server administrator.

Parameters:

sid - the sid value to set.

Returns:

the ManagedInstanceExternalAdministrator object itself.

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.

Applies to