Class DigitalTwinsIdentity
java.lang.Object
com.azure.resourcemanager.digitaltwins.models.DigitalTwinsIdentity
The managed identity for the DigitalTwinsInstance.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the principalId property: The object id of the Managed Identity Resource.tenantId()
Get the tenantId property: The tenant id of the Managed Identity Resource.type()
Get the type property: The type of Managed Identity used by the DigitalTwinsInstance.void
validate()
Validates the instance.Set the type property: The type of Managed Identity used by the DigitalTwinsInstance.
-
Constructor Details
-
DigitalTwinsIdentity
public DigitalTwinsIdentity()
-
-
Method Details
-
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
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
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.
-