GeoReplication Class

  • java.lang.Object
    • com.azure.storage.queue.models.GeoReplication

Implements

public final class GeoReplication
implements XmlSerializable<GeoReplication>

The GeoReplication model.

Constructor Summary

Constructor Description
GeoReplication()

Creates an instance of GeoReplication class.

Method Summary

Modifier and Type Method and Description
static GeoReplication fromXml(XmlReader xmlReader)

Reads an instance of GeoReplication from the XmlReader.

static GeoReplication fromXml(XmlReader xmlReader, String rootElementName)

Reads an instance of GeoReplication from the XmlReader.

OffsetDateTime getLastSyncTime()

Get the lastSyncTime property: A GMT date/time value, to the second.

GeoReplicationStatus getStatus()

Get the status property: The status of the secondary location.

GeoReplication setLastSyncTime(OffsetDateTime lastSyncTime)

Set the lastSyncTime property: A GMT date/time value, to the second.

GeoReplication setStatus(GeoReplicationStatus status)

Set the status property: The status of the secondary location.

XmlWriter toXml(XmlWriter xmlWriter)
XmlWriter toXml(XmlWriter xmlWriter, String rootElementName)

Methods inherited from java.lang.Object

Constructor Details

GeoReplication

public GeoReplication()

Creates an instance of GeoReplication class.

Method Details

fromXml

public static GeoReplication fromXml(XmlReader xmlReader)

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 the deserialized XML object was missing any required properties.

fromXml

public static GeoReplication fromXml(XmlReader xmlReader, String rootElementName)

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 the deserialized XML object was missing any required properties.

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.

getStatus

public GeoReplicationStatus getStatus()

Get the status property: The status of the secondary location.

Returns:

the status value.

setLastSyncTime

public GeoReplication setLastSyncTime(OffsetDateTime lastSyncTime)

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.

setStatus

public GeoReplication setStatus(GeoReplicationStatus status)

Set the status property: The status of the secondary location.

Parameters:

status - the status value to set.

Returns:

the GeoReplication object itself.

toXml

public XmlWriter toXml(XmlWriter xmlWriter)

Parameters:

xmlWriter

Throws:

toXml

public XmlWriter toXml(XmlWriter xmlWriter, String rootElementName)

Parameters:

xmlWriter
rootElementName

Throws:

Applies to