Class UserAssignedIdentityProperties
java.lang.Object
com.azure.resourcemanager.msi.fluent.models.UserAssignedIdentityProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<UserAssignedIdentityProperties>
public final class UserAssignedIdentityProperties
extends Object
implements com.azure.json.JsonSerializable<UserAssignedIdentityProperties>
User Assigned Identity properties.
The properties associated with the user assigned identity.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of UserAssignedIdentityProperties class. -
Method Summary
Modifier and TypeMethodDescriptionclientId()Get the clientId property: The id of the app associated with the identity.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of UserAssignedIdentityProperties from the JsonReader.Get the isolationScope property: Enum to configure regional restrictions on identity assignment, as necessary.Get the principalId property: The id of the service principal object associated with the created identity.tenantId()Get the tenantId property: The id of the tenant which the identity belongs to.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withIsolationScope(IsolationScope isolationScope) Set the isolationScope property: Enum to configure regional restrictions on identity assignment, as necessary.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
-
UserAssignedIdentityProperties
public UserAssignedIdentityProperties()Creates an instance of UserAssignedIdentityProperties class.
-
-
Method Details
-
tenantId
Get the tenantId property: The id of the tenant which the identity belongs to.- Returns:
- the tenantId value.
-
principalId
Get the principalId property: The id of the service principal object associated with the created identity.- Returns:
- the principalId value.
-
clientId
Get the clientId property: The id of the app associated with the identity. This is a random generated UUID by MSI.- Returns:
- the clientId value.
-
isolationScope
Get the isolationScope property: Enum to configure regional restrictions on identity assignment, as necessary.- Returns:
- the isolationScope value.
-
withIsolationScope
Set the isolationScope property: Enum to configure regional restrictions on identity assignment, as necessary.- Parameters:
isolationScope- the isolationScope value to set.- Returns:
- the UserAssignedIdentityProperties 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<UserAssignedIdentityProperties>- Throws:
IOException
-
fromJson
public static UserAssignedIdentityProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of UserAssignedIdentityProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of UserAssignedIdentityProperties 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 UserAssignedIdentityProperties.
-