ManagedInstanceAdministratorInner Class

public final class ManagedInstanceAdministratorInner
extends ProxyResource

An Azure SQL managed instance administrator.

Constructor Summary

Constructor Description
ManagedInstanceAdministratorInner()

Creates an instance of ManagedInstanceAdministratorInner class.

Method Summary

Modifier and Type Method and Description
ManagedInstanceAdministratorType administratorType()

Get the administratorType property: Type of the managed instance administrator.

static ManagedInstanceAdministratorInner fromJson(JsonReader jsonReader)

Reads an instance of ManagedInstanceAdministratorInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String login()

Get the login property: Login name of the managed instance administrator.

String name()

Get the name property: The name of the resource.

UUID sid()

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

UUID tenantId()

Get the tenantId property: Tenant ID of the managed instance administrator.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

ManagedInstanceAdministratorInner withAdministratorType(ManagedInstanceAdministratorType administratorType)

Set the administratorType property: Type of the managed instance administrator.

ManagedInstanceAdministratorInner withLogin(String login)

Set the login property: Login name of the managed instance administrator.

ManagedInstanceAdministratorInner withSid(UUID sid)

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

ManagedInstanceAdministratorInner withTenantId(UUID tenantId)

Set the tenantId property: Tenant ID of the managed instance administrator.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

ManagedInstanceAdministratorInner

public ManagedInstanceAdministratorInner()

Creates an instance of ManagedInstanceAdministratorInner class.

Method Details

administratorType

public ManagedInstanceAdministratorType administratorType()

Get the administratorType property: Type of the managed instance administrator.

Returns:

the administratorType value.

fromJson

public static ManagedInstanceAdministratorInner fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

ManagedInstanceAdministratorInner.id()

Returns:

the id value.

login

public String login()

Get the login property: Login name of the managed instance administrator.

Returns:

the login value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

ManagedInstanceAdministratorInner.name()

Returns:

the name value.

sid

public UUID sid()

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

Returns:

the sid value.

tenantId

public UUID tenantId()

Get the tenantId property: Tenant ID of the managed instance administrator.

Returns:

the tenantId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ManagedInstanceAdministratorInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

ManagedInstanceAdministratorInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

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.

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.

withSid

public ManagedInstanceAdministratorInner withSid(UUID sid)

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

Parameters:

sid - the sid value to set.

Returns:

the ManagedInstanceAdministratorInner object itself.

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.

Applies to