ServerAdministratorResourceInner Class

public final class ServerAdministratorResourceInner
extends ProxyResource

Represents a and external administrator to be created.

Constructor Summary

Constructor Description
ServerAdministratorResourceInner()

Creates an instance of ServerAdministratorResourceInner class.

Method Summary

Modifier and Type Method and Description
AdministratorType administratorType()

Get the administratorType property: The type of administrator.

static ServerAdministratorResourceInner fromJson(JsonReader jsonReader)

Reads an instance of ServerAdministratorResourceInner from the JsonReader.

String id()

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

String login()

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

String name()

Get the name property: The name of the resource.

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)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

ServerAdministratorResourceInner withAdministratorType(AdministratorType administratorType)

Set the administratorType property: The type of administrator.

ServerAdministratorResourceInner withLogin(String login)

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

ServerAdministratorResourceInner withSid(UUID sid)

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

ServerAdministratorResourceInner withTenantId(UUID tenantId)

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

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

ServerAdministratorResourceInner

public ServerAdministratorResourceInner()

Creates an instance of ServerAdministratorResourceInner class.

Method Details

administratorType

public AdministratorType administratorType()

Get the administratorType property: The type of administrator.

Returns:

the administratorType value.

fromJson

public static ServerAdministratorResourceInner fromJson(JsonReader jsonReader)

Reads an instance of ServerAdministratorResourceInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ServerAdministratorResourceInner 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:

ServerAdministratorResourceInner.id()

Returns:

the id value.

login

public String login()

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

Returns:

the login value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

ServerAdministratorResourceInner.name()

Returns:

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

Overrides:

ServerAdministratorResourceInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

ServerAdministratorResourceInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withAdministratorType

public ServerAdministratorResourceInner withAdministratorType(AdministratorType administratorType)

Set the administratorType property: The type of administrator.

Parameters:

administratorType - the administratorType value to set.

Returns:

the ServerAdministratorResourceInner object itself.

withLogin

public ServerAdministratorResourceInner withLogin(String login)

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

Parameters:

login - the login value to set.

Returns:

the ServerAdministratorResourceInner object itself.

withSid

public ServerAdministratorResourceInner withSid(UUID sid)

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

Parameters:

sid - the sid value to set.

Returns:

the ServerAdministratorResourceInner object itself.

withTenantId

public ServerAdministratorResourceInner withTenantId(UUID tenantId)

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

Parameters:

tenantId - the tenantId value to set.

Returns:

the ServerAdministratorResourceInner object itself.

Applies to