Freigeben über


AadBasedSecurityPrincipal Class

  • java.lang.Object
    • com.azure.resourcemanager.confidentialledger.models.AadBasedSecurityPrincipal

Implements

public final class AadBasedSecurityPrincipal
implements JsonSerializable<AadBasedSecurityPrincipal>

AAD based security principal with associated Ledger RoleName.

Constructor Summary

Constructor Description
AadBasedSecurityPrincipal()

Creates an instance of AadBasedSecurityPrincipal class.

Method Summary

Modifier and Type Method and Description
static AadBasedSecurityPrincipal fromJson(JsonReader jsonReader)

Reads an instance of AadBasedSecurityPrincipal from the JsonReader.

LedgerRoleName ledgerRoleName()

Get the ledgerRoleName property: LedgerRole associated with the Security Principal of Ledger.

String principalId()

Get the principalId property: UUID/GUID based Principal Id of the Security Principal.

String tenantId()

Get the tenantId property: UUID/GUID based Tenant Id of the Security Principal.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AadBasedSecurityPrincipal withLedgerRoleName(LedgerRoleName ledgerRoleName)

Set the ledgerRoleName property: LedgerRole associated with the Security Principal of Ledger.

AadBasedSecurityPrincipal withPrincipalId(String principalId)

Set the principalId property: UUID/GUID based Principal Id of the Security Principal.

AadBasedSecurityPrincipal withTenantId(String tenantId)

Set the tenantId property: UUID/GUID based Tenant Id of the Security Principal.

Methods inherited from java.lang.Object

Constructor Details

AadBasedSecurityPrincipal

public AadBasedSecurityPrincipal()

Creates an instance of AadBasedSecurityPrincipal class.

Method Details

fromJson

public static AadBasedSecurityPrincipal fromJson(JsonReader jsonReader)

Reads an instance of AadBasedSecurityPrincipal from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AadBasedSecurityPrincipal 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 AadBasedSecurityPrincipal.

ledgerRoleName

public LedgerRoleName ledgerRoleName()

Get the ledgerRoleName property: LedgerRole associated with the Security Principal of Ledger.

Returns:

the ledgerRoleName value.

principalId

public String principalId()

Get the principalId property: UUID/GUID based Principal Id of the Security Principal.

Returns:

the principalId value.

tenantId

public String tenantId()

Get the tenantId property: UUID/GUID based Tenant Id of the Security Principal.

Returns:

the tenantId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withLedgerRoleName

public AadBasedSecurityPrincipal withLedgerRoleName(LedgerRoleName ledgerRoleName)

Set the ledgerRoleName property: LedgerRole associated with the Security Principal of Ledger.

Parameters:

ledgerRoleName - the ledgerRoleName value to set.

Returns:

the AadBasedSecurityPrincipal object itself.

withPrincipalId

public AadBasedSecurityPrincipal withPrincipalId(String principalId)

Set the principalId property: UUID/GUID based Principal Id of the Security Principal.

Parameters:

principalId - the principalId value to set.

Returns:

the AadBasedSecurityPrincipal object itself.

withTenantId

public AadBasedSecurityPrincipal withTenantId(String tenantId)

Set the tenantId property: UUID/GUID based Tenant Id of the Security Principal.

Parameters:

tenantId - the tenantId value to set.

Returns:

the AadBasedSecurityPrincipal object itself.

Applies to