Class ManagedIdentitySpec

java.lang.Object
com.azure.resourcemanager.hdinsight.containers.models.ManagedIdentitySpec
All Implemented Interfaces:
com.azure.json.JsonSerializable<ManagedIdentitySpec>

public final class ManagedIdentitySpec extends Object implements com.azure.json.JsonSerializable<ManagedIdentitySpec>
The details of a managed identity.
  • Constructor Details

    • ManagedIdentitySpec

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

    • type

      public ManagedIdentityType type()
      Get the type property: The type of managed identity.
      Returns:
      the type value.
    • withType

      public ManagedIdentitySpec withType(ManagedIdentityType type)
      Set the type property: The type of managed identity.
      Parameters:
      type - the type value to set.
      Returns:
      the ManagedIdentitySpec object itself.
    • resourceId

      public String resourceId()
      Get the resourceId property: ResourceId of the managed identity.
      Returns:
      the resourceId value.
    • withResourceId

      public ManagedIdentitySpec withResourceId(String resourceId)
      Set the resourceId property: ResourceId of the managed identity.
      Parameters:
      resourceId - the resourceId value to set.
      Returns:
      the ManagedIdentitySpec object itself.
    • clientId

      public String clientId()
      Get the clientId property: ClientId of the managed identity.
      Returns:
      the clientId value.
    • withClientId

      public ManagedIdentitySpec withClientId(String clientId)
      Set the clientId property: ClientId of the managed identity.
      Parameters:
      clientId - the clientId value to set.
      Returns:
      the ManagedIdentitySpec object itself.
    • objectId

      public String objectId()
      Get the objectId property: ObjectId of the managed identity.
      Returns:
      the objectId value.
    • withObjectId

      public ManagedIdentitySpec withObjectId(String objectId)
      Set the objectId property: ObjectId of the managed identity.
      Parameters:
      objectId - the objectId value to set.
      Returns:
      the ManagedIdentitySpec 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<ManagedIdentitySpec>
      Throws:
      IOException
    • fromJson

      public static ManagedIdentitySpec fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ManagedIdentitySpec from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ManagedIdentitySpec if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the ManagedIdentitySpec.