Class IdentityInfo
- java.lang.Object
-
- com.azure.resourcemanager.recoveryservicesbackup.models.IdentityInfo
-
public final class IdentityInfo extends Object
Encapsulates Managed Identity related information.
-
-
Constructor Summary
Constructors Constructor Description IdentityInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Boolean
isSystemAssignedIdentity()
Get the isSystemAssignedIdentity property: To differentiate if the managed identity is system assigned or user assigned.String
managedIdentityResourceId()
Get the managedIdentityResourceId property: Managed Identity Resource Id Optional: Might not be required in the case of system assigned managed identity.void
validate()
Validates the instance.IdentityInfo
withIsSystemAssignedIdentity(Boolean isSystemAssignedIdentity)
Set the isSystemAssignedIdentity property: To differentiate if the managed identity is system assigned or user assigned.IdentityInfo
withManagedIdentityResourceId(String managedIdentityResourceId)
Set the managedIdentityResourceId property: Managed Identity Resource Id Optional: Might not be required in the case of system assigned managed identity.
-
-
-
Method Detail
-
isSystemAssignedIdentity
public Boolean isSystemAssignedIdentity()
Get the isSystemAssignedIdentity property: To differentiate if the managed identity is system assigned or user assigned.- Returns:
- the isSystemAssignedIdentity value.
-
withIsSystemAssignedIdentity
public IdentityInfo withIsSystemAssignedIdentity(Boolean isSystemAssignedIdentity)
Set the isSystemAssignedIdentity property: To differentiate if the managed identity is system assigned or user assigned.- Parameters:
isSystemAssignedIdentity
- the isSystemAssignedIdentity value to set.- Returns:
- the IdentityInfo object itself.
-
managedIdentityResourceId
public String managedIdentityResourceId()
Get the managedIdentityResourceId property: Managed Identity Resource Id Optional: Might not be required in the case of system assigned managed identity.- Returns:
- the managedIdentityResourceId value.
-
withManagedIdentityResourceId
public IdentityInfo withManagedIdentityResourceId(String managedIdentityResourceId)
Set the managedIdentityResourceId property: Managed Identity Resource Id Optional: Might not be required in the case of system assigned managed identity.- Parameters:
managedIdentityResourceId
- the managedIdentityResourceId value to set.- Returns:
- the IdentityInfo object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-