Dela via


ServerAdministratorProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.postgresql.fluent.models.ServerAdministratorProperties

Implements

public final class ServerAdministratorProperties
implements JsonSerializable<ServerAdministratorProperties>

The properties of an server Administrator.

Constructor Summary

Constructor Description
ServerAdministratorProperties()

Creates an instance of ServerAdministratorProperties class.

Method Summary

Modifier and Type Method and Description
AdministratorType administratorType()

Get the administratorType property: The type of administrator.

static ServerAdministratorProperties fromJson(JsonReader jsonReader)

Reads an instance of ServerAdministratorProperties from the JsonReader.

String login()

Get the login property: The server administrator login account name.

UUID sid()

Get the sid property: The server administrator Sid (Secure ID).

UUID tenantId()

Get the tenantId property: The server Active Directory Administrator tenant id.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ServerAdministratorProperties withAdministratorType(AdministratorType administratorType)

Set the administratorType property: The type of administrator.

ServerAdministratorProperties withLogin(String login)

Set the login property: The server administrator login account name.

ServerAdministratorProperties withSid(UUID sid)

Set the sid property: The server administrator Sid (Secure ID).

ServerAdministratorProperties withTenantId(UUID tenantId)

Set the tenantId property: The server Active Directory Administrator tenant id.

Methods inherited from java.lang.Object

Constructor Details

ServerAdministratorProperties

public ServerAdministratorProperties()

Creates an instance of ServerAdministratorProperties class.

Method Details

administratorType

public AdministratorType administratorType()

Get the administratorType property: The type of administrator.

Returns:

the administratorType value.

fromJson

public static ServerAdministratorProperties fromJson(JsonReader jsonReader)

Reads an instance of ServerAdministratorProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ServerAdministratorProperties 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: The server administrator login account name.

Returns:

the login value.

sid

public UUID sid()

Get the sid property: The server administrator Sid (Secure ID).

Returns:

the sid value.

tenantId

public UUID tenantId()

Get the tenantId property: The server Active Directory Administrator tenant id.

Returns:

the tenantId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAdministratorType

public ServerAdministratorProperties withAdministratorType(AdministratorType administratorType)

Set the administratorType property: The type of administrator.

Parameters:

administratorType - the administratorType value to set.

Returns:

the ServerAdministratorProperties object itself.

withLogin

public ServerAdministratorProperties withLogin(String login)

Set the login property: The server administrator login account name.

Parameters:

login - the login value to set.

Returns:

the ServerAdministratorProperties object itself.

withSid

public ServerAdministratorProperties withSid(UUID sid)

Set the sid property: The server administrator Sid (Secure ID).

Parameters:

sid - the sid value to set.

Returns:

the ServerAdministratorProperties object itself.

withTenantId

public ServerAdministratorProperties withTenantId(UUID tenantId)

Set the tenantId property: The server Active Directory Administrator tenant id.

Parameters:

tenantId - the tenantId value to set.

Returns:

the ServerAdministratorProperties object itself.

Applies to