Class DigitalTwinsIdentity
- java.lang.Object
-
- com.azure.resourcemanager.digitaltwins.models.DigitalTwinsIdentity
-
public class DigitalTwinsIdentity extends Object
The managed identity for the DigitalTwinsInstance.
-
-
Constructor Summary
Constructors Constructor Description DigitalTwinsIdentity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
principalId()
Get the principalId property: The object id of the Managed Identity Resource.String
tenantId()
Get the tenantId property: The tenant id of the Managed Identity Resource.DigitalTwinsIdentityType
type()
Get the type property: The type of Managed Identity used by the DigitalTwinsInstance.void
validate()
Validates the instance.DigitalTwinsIdentity
withType(DigitalTwinsIdentityType type)
Set the type property: The type of Managed Identity used by the DigitalTwinsInstance.
-
-
-
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.
-
-