Class DigitalTwinsIdentity


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

      • DigitalTwinsIdentity

        public DigitalTwinsIdentity()
    • Method Detail

      • 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

        public DigitalTwinsIdentity withType​(DigitalTwinsIdentityType type)
        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.