Class BlobPrefix

java.lang.Object
com.azure.storage.blob.models.BlobPrefix
All Implemented Interfaces:
com.azure.xml.XmlSerializable<BlobPrefix>

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

    Constructors
    Constructor
    Description
    Creates an instance of BlobPrefix.
  • Method Summary

    Modifier and Type
    Method
    Description
    static BlobPrefix
    fromXml(com.azure.xml.XmlReader xmlReader)
    Reads an instance of BlobPrefix from the XmlReader.
    static BlobPrefix
    fromXml(com.azure.xml.XmlReader xmlReader, String rootElementName)
    Reads an instance of BlobPrefix from the XmlReader.
    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
    toXml(com.azure.xml.XmlWriter xmlWriter, String rootElementName)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BlobPrefix

      public BlobPrefix()
      Creates an instance of BlobPrefix.
  • Method Details

    • getName

      public String getName()
      Get the name property: The Name property.
      Returns:
      the name value.
    • setName

      public BlobPrefix setName(String name)
      Set the name property: The Name property.
      Parameters:
      name - the name value to set.
      Returns:
      the BlobPrefix 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<BlobPrefix>
      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<BlobPrefix>
      Throws:
      XMLStreamException
    • fromXml

      public static BlobPrefix fromXml(com.azure.xml.XmlReader xmlReader) throws XMLStreamException
      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.