Class ArmIdentity
java.lang.Object
com.azure.resourcemanager.iothub.models.ArmIdentity
The ArmIdentity model.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the principalId property: Principal Id.tenantId()
Get the tenantId property: Tenant Id.type()
Get the type property: The type of identity used for the resource.Get the userAssignedIdentities property: Dictionary of <ArmUserIdentity>.void
validate()
Validates the instance.withType
(ResourceIdentityType type) Set the type property: The type of identity used for the resource.withUserAssignedIdentities
(Map<String, ArmUserIdentity> userAssignedIdentities) Set the userAssignedIdentities property: Dictionary of <ArmUserIdentity>.
-
Constructor Details
-
ArmIdentity
public ArmIdentity()
-
-
Method Details
-
principalId
Get the principalId property: Principal Id.- Returns:
- the principalId value.
-
tenantId
Get the tenantId property: Tenant Id.- Returns:
- the tenantId value.
-
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
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
Get the userAssignedIdentities property: Dictionary of <ArmUserIdentity>.- Returns:
- the userAssignedIdentities value.
-
withUserAssignedIdentities
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.
-