BlobContainerItem Class

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

Implements

public final class BlobContainerItem
implements XmlSerializable<BlobContainerItem>

An Azure Storage container.

Constructor Summary

Constructor Description
BlobContainerItem()

Creates an instance of BlobContainerItem class.

Method Summary

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

Reads an instance of BlobContainerItem from the XmlReader.

static BlobContainerItem fromXml(XmlReader xmlReader, String rootElementName)

Reads an instance of BlobContainerItem from the XmlReader.

Map<String,String> getMetadata()

Get the metadata property: Dictionary of .

String getName()

Get the name property: The Name property.

BlobContainerItemProperties getProperties()

Get the properties property: Properties of a container.

String getVersion()

Get the version property: The Version property.

Boolean isDeleted()

Get the deleted property: The Deleted property.

BlobContainerItem setDeleted(Boolean deleted)

Set the deleted property: The Deleted property.

BlobContainerItem setMetadata(Map<String,String> metadata)

Set the metadata property: Dictionary of .

BlobContainerItem setName(String name)

Set the name property: The Name property.

BlobContainerItem setProperties(BlobContainerItemProperties properties)

Set the properties property: Properties of a container.

BlobContainerItem setVersion(String version)

Set the version property: The Version property.

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

Methods inherited from java.lang.Object

Constructor Details

BlobContainerItem

public BlobContainerItem()

Creates an instance of BlobContainerItem class.

Method Details

fromXml

public static BlobContainerItem fromXml(XmlReader xmlReader)

Reads an instance of BlobContainerItem from the XmlReader.

Parameters:

xmlReader - The XmlReader being read.

Returns:

An instance of BlobContainerItem 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 BlobContainerItem fromXml(XmlReader xmlReader, String rootElementName)

Reads an instance of BlobContainerItem 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 BlobContainerItem 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.

getMetadata

public Map getMetadata()

Get the metadata property: Dictionary of .

Returns:

the metadata value.

getName

public String getName()

Get the name property: The Name property.

Returns:

the name value.

getProperties

public BlobContainerItemProperties getProperties()

Get the properties property: Properties of a container.

Returns:

the properties value.

getVersion

public String getVersion()

Get the version property: The Version property.

Returns:

the version value.

isDeleted

public Boolean isDeleted()

Get the deleted property: The Deleted property.

Returns:

the deleted value.

setDeleted

public BlobContainerItem setDeleted(Boolean deleted)

Set the deleted property: The Deleted property.

Parameters:

deleted - the deleted value to set.

Returns:

the BlobContainerItem object itself.

setMetadata

public BlobContainerItem setMetadata(Map metadata)

Set the metadata property: Dictionary of .

Parameters:

metadata - the metadata value to set.

Returns:

the BlobContainerItem object itself.

setName

public BlobContainerItem setName(String name)

Set the name property: The Name property.

Parameters:

name - the name value to set.

Returns:

the BlobContainerItem object itself.

setProperties

public BlobContainerItem setProperties(BlobContainerItemProperties properties)

Set the properties property: Properties of a container.

Parameters:

properties - the properties value to set.

Returns:

the BlobContainerItem object itself.

setVersion

public BlobContainerItem setVersion(String version)

Set the version property: The Version property.

Parameters:

version - the version value to set.

Returns:

the BlobContainerItem 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