Delen via


BlobPrefix Class

  • java.lang.Object
    • com.azure.storage.blob.models.BlobPrefix

Implements

public final class BlobPrefix
implements XmlSerializable<BlobPrefix>

The BlobPrefix model.

Constructor Summary

Constructor Description
BlobPrefix()

Method Summary

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

Reads an instance of BlobPrefix from the XmlReader.

static BlobPrefix fromXml(XmlReader xmlReader, String rootElementName)

Reads an instance of BlobPrefix from the XmlReader.

String getName()

Get the name property: The Name property.

BlobPrefix setName(String name)

Set the name property: The Name property.

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

Methods inherited from java.lang.Object

Constructor Details

BlobPrefix

public BlobPrefix()

Method Details

fromXml

public static BlobPrefix fromXml(XmlReader xmlReader)

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:

XMLStreamException

- If the deserialized XML object was missing any required properties.

fromXml

public static BlobPrefix fromXml(XmlReader xmlReader, String rootElementName)

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:

XMLStreamException

- If the deserialized XML object was missing any required properties.

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 XmlWriter toXml(XmlWriter xmlWriter)

Parameters:

xmlWriter

Throws:

toXml

public XmlWriter toXml(XmlWriter xmlWriter, String rootElementName)

Parameters:

xmlWriter
rootElementName

Throws:

Applies to