Class UserAssignedIdentity

java.lang.Object
com.azure.resourcemanager.containerservice.models.UserAssignedIdentity
All Implemented Interfaces:
com.azure.json.JsonSerializable<UserAssignedIdentity>
Direct Known Subclasses:
ManagedClusterAddonProfileIdentity

public class UserAssignedIdentity extends Object implements com.azure.json.JsonSerializable<UserAssignedIdentity>
Details about a user assigned identity.
  • Constructor Details

    • UserAssignedIdentity

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

    • resourceId

      public String resourceId()
      Get the resourceId property: The resource ID of the user assigned identity.
      Returns:
      the resourceId value.
    • withResourceId

      public UserAssignedIdentity withResourceId(String resourceId)
      Set the resourceId property: The resource ID of the user assigned identity.
      Parameters:
      resourceId - the resourceId value to set.
      Returns:
      the UserAssignedIdentity object itself.
    • clientId

      public String clientId()
      Get the clientId property: The client ID of the user assigned identity.
      Returns:
      the clientId value.
    • withClientId

      public UserAssignedIdentity withClientId(String clientId)
      Set the clientId property: The client ID of the user assigned identity.
      Parameters:
      clientId - the clientId value to set.
      Returns:
      the UserAssignedIdentity object itself.
    • objectId

      public String objectId()
      Get the objectId property: The object ID of the user assigned identity.
      Returns:
      the objectId value.
    • withObjectId

      public UserAssignedIdentity withObjectId(String objectId)
      Set the objectId property: The object ID of the user assigned identity.
      Parameters:
      objectId - the objectId value to set.
      Returns:
      the UserAssignedIdentity 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<UserAssignedIdentity>
      Throws:
      IOException
    • fromJson

      public static UserAssignedIdentity fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of UserAssignedIdentity from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of UserAssignedIdentity 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 UserAssignedIdentity.