Class UserAssignedIdentityProperties

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

public final class UserAssignedIdentityProperties extends Object implements com.azure.json.JsonSerializable<UserAssignedIdentityProperties>
The UserAssignedIdentityProperties model.
  • Constructor Details

    • UserAssignedIdentityProperties

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

    • userAssignedIdentity

      public String userAssignedIdentity()
      Get the userAssignedIdentity property: ARM ID of user Identity selected for encryption.
      Returns:
      the userAssignedIdentity value.
    • withUserAssignedIdentity

      public UserAssignedIdentityProperties withUserAssignedIdentity(String userAssignedIdentity)
      Set the userAssignedIdentity property: ARM ID of user Identity selected for encryption.
      Parameters:
      userAssignedIdentity - the userAssignedIdentity value to set.
      Returns:
      the UserAssignedIdentityProperties 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<UserAssignedIdentityProperties>
      Throws:
      IOException
    • fromJson

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