Package com.azure.storage.blob.models
Class BlobContainerItem
java.lang.Object
com.azure.storage.blob.models.BlobContainerItem
- All Implemented Interfaces:
com.azure.xml.XmlSerializable<BlobContainerItem>
public final class BlobContainerItem
extends Object
implements com.azure.xml.XmlSerializable<BlobContainerItem>
An Azure Storage container.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BlobContainerItem
fromXml
(com.azure.xml.XmlReader xmlReader) Reads an instance of BlobContainerItem from the XmlReader.static BlobContainerItem
Reads an instance of BlobContainerItem from the XmlReader.Get the metadata property: Dictionary of <string>.getName()
Get the name property: The Name property.Get the properties property: Properties of a container.Get the version property: The Version property.Get the deleted property: The Deleted property.setDeleted
(Boolean deleted) Set the deleted property: The Deleted property.setMetadata
(Map<String, String> metadata) Set the metadata property: Dictionary of <string>.Set the name property: The Name property.setProperties
(BlobContainerItemProperties properties) Set the properties property: Properties of a container.setVersion
(String version) Set the version property: The Version property.com.azure.xml.XmlWriter
toXml
(com.azure.xml.XmlWriter xmlWriter) com.azure.xml.XmlWriter
-
Constructor Details
-
BlobContainerItem
public BlobContainerItem()Creates an instance of BlobContainerItem class.
-
-
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 BlobContainerItem object itself.
-
isDeleted
Get the deleted property: The Deleted property.- Returns:
- the deleted value.
-
setDeleted
Set the deleted property: The Deleted property.- Parameters:
deleted
- the deleted value to set.- Returns:
- the BlobContainerItem object itself.
-
getVersion
Get the version property: The Version property.- Returns:
- the version value.
-
setVersion
Set the version property: The Version property.- Parameters:
version
- the version value to set.- Returns:
- the BlobContainerItem object itself.
-
getProperties
Get the properties property: Properties of a container.- Returns:
- the properties value.
-
setProperties
Set the properties property: Properties of a container.- Parameters:
properties
- the properties value to set.- Returns:
- the BlobContainerItem object itself.
-
getMetadata
Get the metadata property: Dictionary of <string>.- Returns:
- the metadata value.
-
setMetadata
Set the metadata property: Dictionary of <string>.- Parameters:
metadata
- the metadata value to set.- Returns:
- the BlobContainerItem object itself.
-
toXml
- Specified by:
toXml
in interfacecom.azure.xml.XmlSerializable<BlobContainerItem>
- 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<BlobContainerItem>
- Throws:
XMLStreamException
-
fromXml
public static BlobContainerItem fromXml(com.azure.xml.XmlReader xmlReader) throws XMLStreamException 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 an error occurs while reading the BlobContainerItem.
-
fromXml
public static BlobContainerItem fromXml(com.azure.xml.XmlReader xmlReader, String rootElementName) throws XMLStreamException 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 an error occurs while reading the BlobContainerItem.
-