Package com.azure.storage.queue.models
Class GeoReplication
java.lang.Object
com.azure.storage.queue.models.GeoReplication
- All Implemented Interfaces:
com.azure.xml.XmlSerializable<GeoReplication>
public final class GeoReplication
extends Object
implements com.azure.xml.XmlSerializable<GeoReplication>
The GeoReplication model.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GeoReplication
fromXml
(com.azure.xml.XmlReader xmlReader) Reads an instance of GeoReplication from the XmlReader.static GeoReplication
Reads an instance of GeoReplication from the XmlReader.Get the lastSyncTime property: A GMT date/time value, to the second.Get the status property: The status of the secondary location.setLastSyncTime
(OffsetDateTime lastSyncTime) Set the lastSyncTime property: A GMT date/time value, to the second.setStatus
(GeoReplicationStatus status) Set the status property: The status of the secondary location.com.azure.xml.XmlWriter
toXml
(com.azure.xml.XmlWriter xmlWriter) com.azure.xml.XmlWriter
-
Constructor Details
-
GeoReplication
public GeoReplication()Creates an instance of GeoReplication class.
-
-
Method Details
-
getStatus
Get the status property: The status of the secondary location.- Returns:
- the status value.
-
setStatus
Set the status property: The status of the secondary location.- Parameters:
status
- the status value to set.- Returns:
- the GeoReplication object itself.
-
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.
-
setLastSyncTime
Set 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.- Parameters:
lastSyncTime
- the lastSyncTime value to set.- Returns:
- the GeoReplication object itself.
-
toXml
- Specified by:
toXml
in interfacecom.azure.xml.XmlSerializable<GeoReplication>
- Throws:
XMLStreamException
-
toXml
public com.azure.xml.XmlWriter toXml(com.azure.xml.XmlWriter xmlWriter, String rootElementName) throws XMLStreamException - Specified by:
toXml
in interfacecom.azure.xml.XmlSerializable<GeoReplication>
- Throws:
XMLStreamException
-
fromXml
Reads an instance of GeoReplication from the XmlReader.- Parameters:
xmlReader
- The XmlReader being read.- Returns:
- An instance of GeoReplication 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 GeoReplication.
-
fromXml
public static GeoReplication fromXml(com.azure.xml.XmlReader xmlReader, String rootElementName) throws XMLStreamException Reads an instance of GeoReplication 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 GeoReplication 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 GeoReplication.
-