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