Class ManagedIdentity
- java.lang.Object
-
- com.azure.resourcemanager.signalr.models.ManagedIdentity
-
public class ManagedIdentity extends Object
A class represent managed identities used for request and response.
-
-
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: Get the principal id for the system assigned identity.String
tenantId()
Get the tenantId property: Get the tenant id for the system assigned identity.ManagedIdentityType
type()
Get the type property: Represents the identity type: systemAssigned, userAssigned, None.Map<String,UserAssignedIdentityProperty>
userAssignedIdentities()
Get the userAssignedIdentities property: Get or set the user assigned identities.void
validate()
Validates the instance.ManagedIdentity
withType(ManagedIdentityType type)
Set the type property: Represents the identity type: systemAssigned, userAssigned, None.ManagedIdentity
withUserAssignedIdentities(Map<String,UserAssignedIdentityProperty> userAssignedIdentities)
Set the userAssignedIdentities property: Get or set the user assigned identities.
-
-
-
Method Detail
-
type
public ManagedIdentityType type()
Get the type property: Represents the identity type: systemAssigned, userAssigned, None.- Returns:
- the type value.
-
withType
public ManagedIdentity withType(ManagedIdentityType type)
Set the type property: Represents the identity type: systemAssigned, userAssigned, None.- Parameters:
type
- the type value to set.- Returns:
- the ManagedIdentity object itself.
-
userAssignedIdentities
public Map<String,UserAssignedIdentityProperty> userAssignedIdentities()
Get the userAssignedIdentities property: Get or set the user assigned identities.- Returns:
- the userAssignedIdentities value.
-
withUserAssignedIdentities
public ManagedIdentity withUserAssignedIdentities(Map<String,UserAssignedIdentityProperty> userAssignedIdentities)
Set the userAssignedIdentities property: Get or set the user assigned identities.- Parameters:
userAssignedIdentities
- the userAssignedIdentities value to set.- Returns:
- the ManagedIdentity object itself.
-
principalId
public String principalId()
Get the principalId property: Get the principal id for the system assigned identity. Only be used in response.- Returns:
- the principalId value.
-
tenantId
public String tenantId()
Get the tenantId property: Get the tenant id for the system assigned identity. Only be used in response.- Returns:
- the tenantId value.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-