Class ManagedIdentity
- java.lang.Object
-
- com.azure.resourcemanager.synapse.models.ManagedIdentity
-
public class ManagedIdentity extends Object
The workspace managed identity.
-
-
Constructor Summary
Constructors Constructor Description ManagedIdentity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
principalId()
Get the principalId property: The principal ID of the workspace managed identity.UUID
tenantId()
Get the tenantId property: The tenant ID of the workspace managed identity.ResourceIdentityType
type()
Get the type property: The type of managed identity for the workspace.Map<String,UserAssignedManagedIdentity>
userAssignedIdentities()
Get the userAssignedIdentities property: The user assigned managed identities.void
validate()
Validates the instance.ManagedIdentity
withType(ResourceIdentityType type)
Set the type property: The type of managed identity for the workspace.ManagedIdentity
withUserAssignedIdentities(Map<String,UserAssignedManagedIdentity> userAssignedIdentities)
Set the userAssignedIdentities property: The user assigned managed identities.
-
-
-
Method Detail
-
principalId
public String principalId()
Get the principalId property: The principal ID of the workspace managed identity.- Returns:
- the principalId value.
-
tenantId
public UUID tenantId()
Get the tenantId property: The tenant ID of the workspace managed identity.- Returns:
- the tenantId value.
-
type
public ResourceIdentityType type()
Get the type property: The type of managed identity for the workspace.- Returns:
- the type value.
-
withType
public ManagedIdentity withType(ResourceIdentityType type)
Set the type property: The type of managed identity for the workspace.- Parameters:
type
- the type value to set.- Returns:
- the ManagedIdentity object itself.
-
userAssignedIdentities
public Map<String,UserAssignedManagedIdentity> userAssignedIdentities()
Get the userAssignedIdentities property: The user assigned managed identities.- Returns:
- the userAssignedIdentities value.
-
withUserAssignedIdentities
public ManagedIdentity withUserAssignedIdentities(Map<String,UserAssignedManagedIdentity> userAssignedIdentities)
Set the userAssignedIdentities property: The user assigned managed identities.- Parameters:
userAssignedIdentities
- the userAssignedIdentities value to set.- Returns:
- the ManagedIdentity object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-