Class ResourceIdentity

java.lang.Object
com.azure.resourcemanager.mediaservices.models.ResourceIdentity

public class ResourceIdentity extends Object
The ResourceIdentity model.
  • Constructor Details

    • ResourceIdentity

      public ResourceIdentity()
      Creates an instance of ResourceIdentity class.
  • Method Details

    • userAssignedIdentity

      public String userAssignedIdentity()
      Get the userAssignedIdentity property: The user assigned managed identity's ARM ID to use when accessing a resource.
      Returns:
      the userAssignedIdentity value.
    • withUserAssignedIdentity

      public ResourceIdentity withUserAssignedIdentity(String userAssignedIdentity)
      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

      public ResourceIdentity withUseSystemAssignedIdentity(boolean useSystemAssignedIdentity)
      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.