Class DigitalTwinsIdentity

java.lang.Object
com.azure.resourcemanager.digitaltwins.models.DigitalTwinsIdentity

public class DigitalTwinsIdentity extends Object
The managed identity for the DigitalTwinsInstance.
  • Constructor Details

    • DigitalTwinsIdentity

      public DigitalTwinsIdentity()
  • Method Details

    • type

      public DigitalTwinsIdentityType type()
      Get the type property: The type of Managed Identity used by the DigitalTwinsInstance. Only SystemAssigned is supported.
      Returns:
      the type value.
    • withType

      Set the type property: The type of Managed Identity used by the DigitalTwinsInstance. Only SystemAssigned is supported.
      Parameters:
      type - the type value to set.
      Returns:
      the DigitalTwinsIdentity object itself.
    • principalId

      public String principalId()
      Get the principalId property: The object id of the Managed Identity Resource. This will be sent to the RP from ARM via the x-ms-identity-principal-id header in the PUT request if the resource has a systemAssigned(implicit) identity.
      Returns:
      the principalId value.
    • tenantId

      public String tenantId()
      Get the tenantId property: The tenant id of the Managed Identity Resource. This will be sent to the RP from ARM via the x-ms-client-tenant-id header in the PUT request if the resource has a systemAssigned(implicit) identity.
      Returns:
      the tenantId value.
    • validate

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