Udostępnij przez


ManagedInstanceAdministratorProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.sql.fluent.models.ManagedInstanceAdministratorProperties

Implements

public final class ManagedInstanceAdministratorProperties
implements JsonSerializable<ManagedInstanceAdministratorProperties>

The properties of a managed instance administrator.

Constructor Summary

Constructor Description
ManagedInstanceAdministratorProperties()

Creates an instance of ManagedInstanceAdministratorProperties class.

Method Summary

Modifier and Type Method and Description
ManagedInstanceAdministratorType administratorType()

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

static ManagedInstanceAdministratorProperties fromJson(JsonReader jsonReader)

Reads an instance of ManagedInstanceAdministratorProperties from the JsonReader.

String login()

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

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)
void validate()

Validates the instance.

ManagedInstanceAdministratorProperties withAdministratorType(ManagedInstanceAdministratorType administratorType)

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

ManagedInstanceAdministratorProperties withLogin(String login)

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

ManagedInstanceAdministratorProperties withSid(UUID sid)

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

ManagedInstanceAdministratorProperties withTenantId(UUID tenantId)

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

Methods inherited from java.lang.Object

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.

fromJson

public static ManagedInstanceAdministratorProperties fromJson(JsonReader jsonReader)

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:

IOException

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

login

public String login()

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

Returns:

the login 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)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

withLogin

public ManagedInstanceAdministratorProperties withLogin(String login)

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

Parameters:

login - the login value to set.

Returns:

the ManagedInstanceAdministratorProperties object itself.

withSid

public ManagedInstanceAdministratorProperties withSid(UUID sid)

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

Parameters:

sid - the sid value to set.

Returns:

the ManagedInstanceAdministratorProperties object itself.

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.

Applies to