ManagedIdentity Class
- java.
lang. Object - com.
azure. resourcemanager. webpubsub. models. ManagedIdentity
- com.
Implements
public final class ManagedIdentity
implements JsonSerializable<ManagedIdentity>
A class represent managed identities used for request and response.
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: Represents the identity type: system |
|
Map<String,User |
userAssignedIdentities()
Get the user |
| void |
validate()
Validates the instance. |
|
Managed |
withType(ManagedIdentityType type)
Set the type property: Represents the identity type: system |
|
Managed |
withUserAssignedIdentities(Map<String,UserAssignedIdentityProperty> 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: Get the principal id for the system assigned identity. Only be used in response.
Returns:
tenantId
public String tenantId()
Get the tenantId property: Get the tenant id for the system assigned identity. Only be used in response.
Returns:
toJson
type
public ManagedIdentityType type()
Get the type property: Represents the identity type: systemAssigned, userAssigned, None.
Returns:
userAssignedIdentities
public Map<String,UserAssignedIdentityProperty> userAssignedIdentities()
Get the userAssignedIdentities property: Get or set the user assigned identities.
Returns:
validate
public void validate()
Validates the instance.
withType
public ManagedIdentity withType(ManagedIdentityType type)
Set the type property: Represents the identity type: systemAssigned, userAssigned, None.
Parameters:
Returns:
withUserAssignedIdentities
public ManagedIdentity withUserAssignedIdentities(Map<String,UserAssignedIdentityProperty> userAssignedIdentities)
Set the userAssignedIdentities property: Get or set the user assigned identities.
Parameters:
Returns: