Class TableAccessPolicy

java.lang.Object
com.azure.data.tables.models.TableAccessPolicy
All Implemented Interfaces:
com.azure.xml.XmlSerializable<TableAccessPolicy>

public final class TableAccessPolicy extends Object implements com.azure.xml.XmlSerializable<TableAccessPolicy>
An Access policy.
  • Constructor Details

    • TableAccessPolicy

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

    • getStartsOn

      public OffsetDateTime getStartsOn()
      Get the startsOn property: The start datetime from which the policy is active.
      Returns:
      the startsOn value.
    • setStartsOn

      public TableAccessPolicy setStartsOn(OffsetDateTime startsOn)
      Set the startsOn property: The start datetime from which the policy is active.
      Parameters:
      startsOn - the startsOn value to set.
      Returns:
      the TableAccessPolicy object itself.
    • getExpiresOn

      public OffsetDateTime getExpiresOn()
      Get the expiresOn property: The datetime that the policy expires.
      Returns:
      the expiresOn value.
    • setExpiresOn

      public TableAccessPolicy setExpiresOn(OffsetDateTime expiresOn)
      Set the expiresOn property: The datetime that the policy expires.
      Parameters:
      expiresOn - the expiresOn value to set.
      Returns:
      the TableAccessPolicy object itself.
    • getPermissions

      public String getPermissions()
      Get the permissions property: The permissions for the acl policy.
      Returns:
      the permissions value.
    • setPermissions

      public TableAccessPolicy setPermissions(String permissions)
      Set the permissions property: The permissions for the acl policy.
      Parameters:
      permissions - the permissions value to set.
      Returns:
      the TableAccessPolicy object itself.
    • toXml

      public com.azure.xml.XmlWriter toXml(com.azure.xml.XmlWriter xmlWriter) throws XMLStreamException
      Specified by:
      toXml in interface com.azure.xml.XmlSerializable<TableAccessPolicy>
      Throws:
      XMLStreamException
    • toXml

      public com.azure.xml.XmlWriter toXml(com.azure.xml.XmlWriter xmlWriter, String rootElementName) throws XMLStreamException
      Specified by:
      toXml in interface com.azure.xml.XmlSerializable<TableAccessPolicy>
      Throws:
      XMLStreamException
    • fromXml

      public static TableAccessPolicy fromXml(com.azure.xml.XmlReader xmlReader) throws XMLStreamException
      Reads an instance of TableAccessPolicy from the XmlReader.
      Parameters:
      xmlReader - The XmlReader being read.
      Returns:
      An instance of TableAccessPolicy if the XmlReader was pointing to an instance of it, or null if it was pointing to XML null.
      Throws:
      XMLStreamException - If an error occurs while reading the TableAccessPolicy.
    • fromXml

      public static TableAccessPolicy fromXml(com.azure.xml.XmlReader xmlReader, String rootElementName) throws XMLStreamException
      Reads an instance of TableAccessPolicy from the XmlReader.
      Parameters:
      xmlReader - The XmlReader being read.
      rootElementName - Optional root element name to override the default defined by the model. Used to support cases where the model can deserialize from different root element names.
      Returns:
      An instance of TableAccessPolicy if the XmlReader was pointing to an instance of it, or null if it was pointing to XML null.
      Throws:
      XMLStreamException - If an error occurs while reading the TableAccessPolicy.