Class EncryptionPropertiesIdentity

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

public final class EncryptionPropertiesIdentity extends Object implements com.azure.json.JsonSerializable<EncryptionPropertiesIdentity>
User identity used for CMK.
  • Constructor Details

    • EncryptionPropertiesIdentity

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

    • userAssignedIdentity

      public Object userAssignedIdentity()
      Get the userAssignedIdentity property: The user identity used for CMK. It will be an ARM resource id in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
      Returns:
      the userAssignedIdentity value.
    • withUserAssignedIdentity

      public EncryptionPropertiesIdentity withUserAssignedIdentity(Object userAssignedIdentity)
      Set the userAssignedIdentity property: The user identity used for CMK. It will be an ARM resource id in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
      Parameters:
      userAssignedIdentity - the userAssignedIdentity value to set.
      Returns:
      the EncryptionPropertiesIdentity 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<EncryptionPropertiesIdentity>
      Throws:
      IOException
    • fromJson

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