ManagedIdentity Class
- java.
lang. Object - com.
azure. resourcemanager. servicefabric. models. ManagedIdentity
- com.
Implements
public final class ManagedIdentity
implements JsonSerializable<ManagedIdentity>
Describes the managed identities for an Azure resource.
Constructor Summary
| Constructor | Description |
|---|---|
| ManagedIdentity() |
Creates an instance of Managed |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Managed |
fromJson(JsonReader jsonReader)
Reads an instance of Managed |
| String |
principalId()
Get the principal |
| String |
tenantId()
Get the tenant |
|
Json |
toJson(JsonWriter jsonWriter) |
|
Managed |
type()
Get the type property: The type of managed identity for the resource. |
|
Map<String,User |
userAssignedIdentities()
Get the user |
| void |
validate()
Validates the instance. |
|
Managed |
withType(ManagedIdentityType type)
Set the type property: The type of managed identity for the resource. |
|
Managed |
withUserAssignedIdentities(Map<String,UserAssignedIdentity> userAssignedIdentities)
Set the user |
Methods inherited from java.lang.Object
Constructor Details
ManagedIdentity
public ManagedIdentity()
Creates an instance of ManagedIdentity class.
Method Details
fromJson
public static ManagedIdentity fromJson(JsonReader jsonReader)
Reads an instance of ManagedIdentity from the JsonReader.
Parameters:
Returns:
Throws:
principalId
public String principalId()
Get the principalId property: The principal id of the managed identity. This property will only be provided for a system assigned identity.
Returns:
tenantId
public String tenantId()
Get the tenantId property: The tenant id of the managed identity. This property will only be provided for a system assigned identity.
Returns:
toJson
type
public ManagedIdentityType type()
Get the type property: The type of managed identity for the resource.
Returns:
userAssignedIdentities
public Map<String,UserAssignedIdentity> userAssignedIdentities()
Get the userAssignedIdentities property: The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
Returns:
validate
public void validate()
Validates the instance.
withType
public ManagedIdentity withType(ManagedIdentityType type)
Set the type property: The type of managed identity for the resource.
Parameters:
Returns:
withUserAssignedIdentities
public ManagedIdentity withUserAssignedIdentities(Map<String,UserAssignedIdentity> userAssignedIdentities)
Set the userAssignedIdentities property: The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
Parameters:
Returns: