Class SignedIdentifier

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

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

    • SignedIdentifier

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

    • id

      public String id()
      Get the id property: An unique identifier of the stored access policy.
      Returns:
      the id value.
    • withId

      public SignedIdentifier withId(String id)
      Set the id property: An unique identifier of the stored access policy.
      Parameters:
      id - the id value to set.
      Returns:
      the SignedIdentifier object itself.
    • accessPolicy

      public AccessPolicy accessPolicy()
      Get the accessPolicy property: Access policy.
      Returns:
      the accessPolicy value.
    • withAccessPolicy

      public SignedIdentifier withAccessPolicy(AccessPolicy accessPolicy)
      Set the accessPolicy property: Access policy.
      Parameters:
      accessPolicy - the accessPolicy value to set.
      Returns:
      the SignedIdentifier 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<SignedIdentifier>
      Throws:
      IOException
    • fromJson

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