Class AadBasedSecurityPrincipal
- java.lang.Object
-
- com.azure.resourcemanager.confidentialledger.models.AadBasedSecurityPrincipal
-
public final class AadBasedSecurityPrincipal extends Object
AAD based security principal with associated Ledger RoleName.
-
-
Constructor Summary
Constructors Constructor Description AadBasedSecurityPrincipal()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.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.
-
-
-
Method Detail
-
principalId
public String principalId()
Get the principalId property: UUID/GUID based Principal Id of the Security Principal.- Returns:
- the principalId value.
-
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.
-
tenantId
public String tenantId()
Get the tenantId property: UUID/GUID based Tenant Id of the Security Principal.- Returns:
- the tenantId value.
-
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.
-
ledgerRoleName
public LedgerRoleName ledgerRoleName()
Get the ledgerRoleName property: LedgerRole associated with the Security Principal of Ledger.- Returns:
- the ledgerRoleName value.
-
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.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-