Class ResourceIdentity
java.lang.Object
com.azure.resourcemanager.mediaservices.models.ResourceIdentity
The ResourceIdentity model.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the userAssignedIdentity property: The user assigned managed identity's ARM ID to use when accessing a resource.boolean
Get the useSystemAssignedIdentity property: Indicates whether to use System Assigned Managed Identity.void
validate()
Validates the instance.withUserAssignedIdentity
(String userAssignedIdentity) Set the userAssignedIdentity property: The user assigned managed identity's ARM ID to use when accessing a resource.withUseSystemAssignedIdentity
(boolean useSystemAssignedIdentity) Set the useSystemAssignedIdentity property: Indicates whether to use System Assigned Managed Identity.
-
Constructor Details
-
ResourceIdentity
public ResourceIdentity()Creates an instance of ResourceIdentity class.
-
-
Method Details
-
userAssignedIdentity
Get the userAssignedIdentity property: The user assigned managed identity's ARM ID to use when accessing a resource.- Returns:
- the userAssignedIdentity value.
-
withUserAssignedIdentity
Set the userAssignedIdentity property: The user assigned managed identity's ARM ID to use when accessing a resource.- Parameters:
userAssignedIdentity
- the userAssignedIdentity value to set.- Returns:
- the ResourceIdentity object itself.
-
useSystemAssignedIdentity
public boolean useSystemAssignedIdentity()Get the useSystemAssignedIdentity property: Indicates whether to use System Assigned Managed Identity. Mutual exclusive with User Assigned Managed Identity.- Returns:
- the useSystemAssignedIdentity value.
-
withUseSystemAssignedIdentity
Set the useSystemAssignedIdentity property: Indicates whether to use System Assigned Managed Identity. Mutual exclusive with User Assigned Managed Identity.- Parameters:
useSystemAssignedIdentity
- the useSystemAssignedIdentity value to set.- Returns:
- the ResourceIdentity object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-