Class PartialManagedServiceIdentity

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

public final class PartialManagedServiceIdentity extends Object implements com.azure.json.JsonSerializable<PartialManagedServiceIdentity>
Managed service identity (system assigned and/or user assigned identities).
  • Constructor Details

    • PartialManagedServiceIdentity

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

    • type

      Get the type property: Managed service identity (system assigned and/or user assigned identities).
      Returns:
      the type value.
    • withType

      Set the type property: Managed service identity (system assigned and/or user assigned identities).
      Parameters:
      type - the type value to set.
      Returns:
      the PartialManagedServiceIdentity object itself.
    • userAssignedIdentities

      public Map<String,Object> userAssignedIdentities()
      Get the userAssignedIdentities property: The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.
      Returns:
      the userAssignedIdentities value.
    • withUserAssignedIdentities

      public PartialManagedServiceIdentity withUserAssignedIdentities(Map<String,Object> userAssignedIdentities)
      Set the userAssignedIdentities property: The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.
      Parameters:
      userAssignedIdentities - the userAssignedIdentities value to set.
      Returns:
      the PartialManagedServiceIdentity 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<PartialManagedServiceIdentity>
      Throws:
      IOException
    • fromJson

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