Class DefaultIdentity

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

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

    • DefaultIdentity

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

    • identityType

      public ManagedServiceIdentityType identityType()
      Get the identityType property: The identityType property.
      Returns:
      the identityType value.
    • withIdentityType

      public DefaultIdentity withIdentityType(ManagedServiceIdentityType identityType)
      Set the identityType property: The identityType property.
      Parameters:
      identityType - the identityType value to set.
      Returns:
      the DefaultIdentity object itself.
    • userAssignedIdentityResourceId

      public String userAssignedIdentityResourceId()
      Get the userAssignedIdentityResourceId property: The userAssignedIdentityResourceId property.
      Returns:
      the userAssignedIdentityResourceId value.
    • withUserAssignedIdentityResourceId

      public DefaultIdentity withUserAssignedIdentityResourceId(String userAssignedIdentityResourceId)
      Set the userAssignedIdentityResourceId property: The userAssignedIdentityResourceId property.
      Parameters:
      userAssignedIdentityResourceId - the userAssignedIdentityResourceId value to set.
      Returns:
      the DefaultIdentity 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<DefaultIdentity>
      Throws:
      IOException
    • fromJson

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