Class TableServiceGeoReplication

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

public final class TableServiceGeoReplication extends Object implements com.azure.xml.XmlSerializable<TableServiceGeoReplication>
The TableServiceGeoReplication model.
  • Constructor Details

    • TableServiceGeoReplication

      public TableServiceGeoReplication(TableServiceGeoReplicationStatus status, OffsetDateTime lastSyncTime)
      Creates an instance of TableServiceGeoReplication class.
      Parameters:
      status - The status of the secondary location.
      lastSyncTime - A GMT date/time value, to the second. All primary writes preceding this value are guaranteed to be available for read operations at the secondary. Primary writes after this point in time may or may not be available for reads.
  • Method Details

    • getStatus

      Get the status property: The status of the secondary location.
      Returns:
      the status value.
    • getLastSyncTime

      public OffsetDateTime getLastSyncTime()
      Get the lastSyncTime property: A GMT date/time value, to the second. All primary writes preceding this value are guaranteed to be available for read operations at the secondary. Primary writes after this point in time may or may not be available for reads.
      Returns:
      the lastSyncTime value.
    • toXml

      public com.azure.xml.XmlWriter toXml(com.azure.xml.XmlWriter xmlWriter) throws XMLStreamException
      Specified by:
      toXml in interface com.azure.xml.XmlSerializable<TableServiceGeoReplication>
      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<TableServiceGeoReplication>
      Throws:
      XMLStreamException
    • fromXml

      public static TableServiceGeoReplication fromXml(com.azure.xml.XmlReader xmlReader) throws XMLStreamException
      Reads an instance of TableServiceGeoReplication from the XmlReader.
      Parameters:
      xmlReader - The XmlReader being read.
      Returns:
      An instance of TableServiceGeoReplication 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 TableServiceGeoReplication.
    • fromXml

      public static TableServiceGeoReplication fromXml(com.azure.xml.XmlReader xmlReader, String rootElementName) throws XMLStreamException
      Reads an instance of TableServiceGeoReplication 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 TableServiceGeoReplication 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 TableServiceGeoReplication.