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 Details

    • UserAssignedIdentityProperties

      public UserAssignedIdentityProperties()
      Creates an instance of UserAssignedIdentityProperties class.
  • Method Details

    • tenantId

      public UUID tenantId()
      Get the tenantId property: The id of the tenant which the identity belongs to.
      Returns:
      the tenantId value.
    • principalId

      public UUID principalId()
      Get the principalId property: The id of the service principal object associated with the created identity.
      Returns:
      the principalId value.
    • clientId

      public UUID 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

      public IsolationScope isolationScope()
      Get the isolationScope property: Enum to configure regional restrictions on identity assignment, as necessary.
      Returns:
      the isolationScope value.
    • withIsolationScope

      public UserAssignedIdentityProperties withIsolationScope(IsolationScope isolationScope)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.