Class ArmIdentity

java.lang.Object
com.azure.resourcemanager.iothub.models.ArmIdentity

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

    • ArmIdentity

      public ArmIdentity()
  • Method Details

    • principalId

      public String principalId()
      Get the principalId property: Principal Id.
      Returns:
      the principalId value.
    • tenantId

      public String tenantId()
      Get the tenantId property: Tenant Id.
      Returns:
      the tenantId value.
    • type

      public ResourceIdentityType type()
      Get the type property: The type of identity used for the resource. The type 'SystemAssigned,UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the service.
      Returns:
      the type value.
    • withType

      public ArmIdentity withType(ResourceIdentityType type)
      Set the type property: The type of identity used for the resource. The type 'SystemAssigned,UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove any identities from the service.
      Parameters:
      type - the type value to set.
      Returns:
      the ArmIdentity object itself.
    • userAssignedIdentities

      public Map<String,ArmUserIdentity> userAssignedIdentities()
      Get the userAssignedIdentities property: Dictionary of <ArmUserIdentity>.
      Returns:
      the userAssignedIdentities value.
    • withUserAssignedIdentities

      public ArmIdentity withUserAssignedIdentities(Map<String,ArmUserIdentity> userAssignedIdentities)
      Set the userAssignedIdentities property: Dictionary of <ArmUserIdentity>.
      Parameters:
      userAssignedIdentities - the userAssignedIdentities value to set.
      Returns:
      the ArmIdentity object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.