Class TableSignedIdentifier

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

public final class TableSignedIdentifier extends Object implements com.azure.json.JsonSerializable<TableSignedIdentifier>
Object to set Table Access Policy.
  • Constructor Details

    • TableSignedIdentifier

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

    • id

      public String id()
      Get the id property: unique-64-character-value of the stored access policy.
      Returns:
      the id value.
    • withId

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

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

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

      public static TableSignedIdentifier fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of TableSignedIdentifier from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of TableSignedIdentifier if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the TableSignedIdentifier.