Class SystemAssignedIdentityProperties

java.lang.Object
com.azure.resourcemanager.msi.fluent.models.SystemAssignedIdentityProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<SystemAssignedIdentityProperties>

public final class SystemAssignedIdentityProperties extends Object implements com.azure.json.JsonSerializable<SystemAssignedIdentityProperties>
System Assigned Identity properties. The properties associated with the system assigned identity.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of SystemAssignedIdentityProperties class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the clientId property: The id of the app associated with the identity.
    Get the clientSecretUrl property: The ManagedServiceIdentity DataPlane URL that can be queried to obtain the identity credentials.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of SystemAssignedIdentityProperties from the JsonReader.
    Get the principalId property: The id of the service principal object associated with the created identity.
    Get the tenantId property: The id of the tenant which the identity belongs to.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • SystemAssignedIdentityProperties

      public SystemAssignedIdentityProperties()
      Creates an instance of SystemAssignedIdentityProperties 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.
    • clientSecretUrl

      public String clientSecretUrl()
      Get the clientSecretUrl property: The ManagedServiceIdentity DataPlane URL that can be queried to obtain the identity credentials.
      Returns:
      the clientSecretUrl value.
    • 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<SystemAssignedIdentityProperties>
      Throws:
      IOException
    • fromJson

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