Class ManagedIdentityProperties
java.lang.Object
com.azure.resourcemanager.appplatform.models.ManagedIdentityProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ManagedIdentityProperties>
public final class ManagedIdentityProperties
extends Object
implements com.azure.json.JsonSerializable<ManagedIdentityProperties>
Managed identity properties retrieved from ARM request headers.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ManagedIdentityProperties class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ManagedIdentityPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ManagedIdentityProperties from the JsonReader.Get the principalId property: Principal Id of system-assigned managed identity.tenantId()Get the tenantId property: Tenant Id of system-assigned managed identity.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: Type of the managed identity.Get the userAssignedIdentities property: Properties of user-assigned managed identities.voidvalidate()Validates the instance.withPrincipalId(String principalId) Set the principalId property: Principal Id of system-assigned managed identity.withTenantId(String tenantId) Set the tenantId property: Tenant Id of system-assigned managed identity.withType(ManagedIdentityType type) Set the type property: Type of the managed identity.withUserAssignedIdentities(Map<String, UserAssignedManagedIdentity> userAssignedIdentities) Set the userAssignedIdentities property: Properties of user-assigned managed identities.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ManagedIdentityProperties
public ManagedIdentityProperties()Creates an instance of ManagedIdentityProperties class.
-
-
Method Details
-
type
Get the type property: Type of the managed identity.- Returns:
- the type value.
-
withType
Set the type property: Type of the managed identity.- Parameters:
type- the type value to set.- Returns:
- the ManagedIdentityProperties object itself.
-
principalId
Get the principalId property: Principal Id of system-assigned managed identity.- Returns:
- the principalId value.
-
withPrincipalId
Set the principalId property: Principal Id of system-assigned managed identity.- Parameters:
principalId- the principalId value to set.- Returns:
- the ManagedIdentityProperties object itself.
-
tenantId
Get the tenantId property: Tenant Id of system-assigned managed identity.- Returns:
- the tenantId value.
-
withTenantId
Set the tenantId property: Tenant Id of system-assigned managed identity.- Parameters:
tenantId- the tenantId value to set.- Returns:
- the ManagedIdentityProperties object itself.
-
userAssignedIdentities
Get the userAssignedIdentities property: Properties of user-assigned managed identities.- Returns:
- the userAssignedIdentities value.
-
withUserAssignedIdentities
public ManagedIdentityProperties withUserAssignedIdentities(Map<String, UserAssignedManagedIdentity> userAssignedIdentities) Set the userAssignedIdentities property: Properties of user-assigned managed identities.- Parameters:
userAssignedIdentities- the userAssignedIdentities value to set.- Returns:
- the ManagedIdentityProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ManagedIdentityProperties>- Throws:
IOException
-
fromJson
public static ManagedIdentityProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ManagedIdentityProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ManagedIdentityProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the ManagedIdentityProperties.
-