Package com.azure.storage.blob.models
Class BlobPrefix
java.lang.Object
com.azure.storage.blob.models.BlobPrefix
- All Implemented Interfaces:
com.azure.xml.XmlSerializable<BlobPrefix>
The BlobPrefix model.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BlobPrefix
fromXml
(com.azure.xml.XmlReader xmlReader) Reads an instance of BlobPrefix from the XmlReader.static BlobPrefix
Reads an instance of BlobPrefix from the XmlReader.getName()
Get the name property: The Name property.Set the name property: The Name property.com.azure.xml.XmlWriter
toXml
(com.azure.xml.XmlWriter xmlWriter) com.azure.xml.XmlWriter
-
Constructor Details
-
BlobPrefix
public BlobPrefix()
-
-
Method Details
-
getName
Get the name property: The Name property.- Returns:
- the name value.
-
setName
Set the name property: The Name property.- Parameters:
name
- the name value to set.- Returns:
- the BlobPrefix object itself.
-
toXml
- Specified by:
toXml
in interfacecom.azure.xml.XmlSerializable<BlobPrefix>
- 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<BlobPrefix>
- Throws:
XMLStreamException
-
fromXml
Reads an instance of BlobPrefix from the XmlReader.- Parameters:
xmlReader
- The XmlReader being read.- Returns:
- An instance of BlobPrefix if the XmlReader was pointing to an instance of it, or null if it was pointing to XML null.
- Throws:
IllegalStateException
- If the deserialized XML object was missing any required properties.XMLStreamException
- If an error occurs while reading the BlobPrefix.
-
fromXml
public static BlobPrefix fromXml(com.azure.xml.XmlReader xmlReader, String rootElementName) throws XMLStreamException Reads an instance of BlobPrefix 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 BlobPrefix if the XmlReader was pointing to an instance of it, or null if it was pointing to XML null.
- Throws:
IllegalStateException
- If the deserialized XML object was missing any required properties.XMLStreamException
- If an error occurs while reading the BlobPrefix.
-