Class ManagedIdentity

java.lang.Object
com.azure.resourcemanager.machinelearning.models.IdentityConfiguration
com.azure.resourcemanager.machinelearning.models.ManagedIdentity
All Implemented Interfaces:
com.azure.json.JsonSerializable<IdentityConfiguration>

public final class ManagedIdentity extends IdentityConfiguration
Managed identity configuration.
  • Constructor Details

    • ManagedIdentity

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

    • identityType

      public IdentityConfigurationType identityType()
      Get the identityType property: [Required] Specifies the type of identity framework.
      Overrides:
      identityType in class IdentityConfiguration
      Returns:
      the identityType value.
    • clientId

      public UUID clientId()
      Get the clientId property: Specifies a user-assigned identity by client ID. For system-assigned, do not set this field.
      Returns:
      the clientId value.
    • withClientId

      public ManagedIdentity withClientId(UUID clientId)
      Set the clientId property: Specifies a user-assigned identity by client ID. For system-assigned, do not set this field.
      Parameters:
      clientId - the clientId value to set.
      Returns:
      the ManagedIdentity object itself.
    • objectId

      public UUID objectId()
      Get the objectId property: Specifies a user-assigned identity by object ID. For system-assigned, do not set this field.
      Returns:
      the objectId value.
    • withObjectId

      public ManagedIdentity withObjectId(UUID objectId)
      Set the objectId property: Specifies a user-assigned identity by object ID. For system-assigned, do not set this field.
      Parameters:
      objectId - the objectId value to set.
      Returns:
      the ManagedIdentity object itself.
    • resourceId

      public String resourceId()
      Get the resourceId property: Specifies a user-assigned identity by ARM resource ID. For system-assigned, do not set this field.
      Returns:
      the resourceId value.
    • withResourceId

      public ManagedIdentity withResourceId(String resourceId)
      Set the resourceId property: Specifies a user-assigned identity by ARM resource ID. For system-assigned, do not set this field.
      Parameters:
      resourceId - the resourceId value to set.
      Returns:
      the ManagedIdentity object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class IdentityConfiguration
      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<IdentityConfiguration>
      Overrides:
      toJson in class IdentityConfiguration
      Throws:
      IOException
    • fromJson

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