Class IdentityInfo
java.lang.Object
com.azure.resourcemanager.recoveryservicesbackup.models.IdentityInfo
Encapsulates Managed Identity related information.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the isSystemAssignedIdentity property: To differentiate if the managed identity is system assigned or user assigned.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.withIsSystemAssignedIdentity
(Boolean isSystemAssignedIdentity) Set the isSystemAssignedIdentity property: To differentiate if the managed identity is system assigned or user assigned.withManagedIdentityResourceId
(String managedIdentityResourceId) Set the managedIdentityResourceId property: Managed Identity Resource Id Optional: Might not be required in the case of system assigned managed identity.
-
Constructor Details
-
IdentityInfo
public IdentityInfo()Creates an instance of IdentityInfo class.
-
-
Method Details
-
isSystemAssignedIdentity
Get the isSystemAssignedIdentity property: To differentiate if the managed identity is system assigned or user assigned.- Returns:
- the isSystemAssignedIdentity value.
-
withIsSystemAssignedIdentity
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
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
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.
-