Package com.azure.storage.blob.models
Class BlobItem
- java.lang.Object
-
- com.azure.storage.blob.models.BlobItem
-
public final class BlobItem extends Object
An Azure Storage blob.
-
-
Constructor Summary
Constructors Constructor Description BlobItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>getMetadata()Get the metadata property: The metadata property.StringgetName()Get the name property: The name property.List<ObjectReplicationPolicy>getObjectReplicationSourcePolicies()Get the objectReplicationSourcePolicies property: The objectReplicationSourcePolicies property.BlobItemPropertiesgetProperties()Get the properties property: The properties property.StringgetSnapshot()Get the snapshot property: The snapshot property.Map<String,String>getTags()Get the tags property: The tags property.StringgetVersionId()Get the versionId property: The versionId property.BooleanhasVersionsOnly()Get the hasVersionsOnly property: The HasVersionsOnly property.BooleanisCurrentVersion()Get the isCurrentVersion property: The isCurrentVersion property.booleanisDeleted()Get the deleted property: The deleted property.BooleanisPrefix()Get the isPrefix property: If blobs are named to mimic a directory hierarchy (i.e.BlobItemsetCurrentVersion(Boolean isCurrentVersion)Set the isCurrentVersion property: The isCurrentVersion property.BlobItemsetDeleted(boolean deleted)Set the deleted property: The deleted property.BlobItemsetHasVersionsOnly(Boolean hasVersionsOnly)Set the hasVersionsOnly property: The HasVersionsOnly property.BlobItemsetIsPrefix(Boolean isPrefix)Set the isPrefix property: The isPrefix property.BlobItemsetMetadata(Map<String,String> metadata)Set the metadata property: The metadata property.BlobItemsetName(String name)Set the name property: The name property.BlobItemsetObjectReplicationSourcePolicies(List<ObjectReplicationPolicy> objectReplicationSourcePolicies)Set the objectReplicationSourcePolicies property: The objectReplicationSourcePolicies property.BlobItemsetProperties(BlobItemProperties properties)Set the properties property: The properties property.BlobItemsetSnapshot(String snapshot)Set the snapshot property: The snapshot property.BlobItemsetTags(Map<String,String> tags)Set the tags property: The tags property.BlobItemsetVersionId(String versionId)Set the versionId property: The versionId property.
-
-
-
Method Detail
-
getName
public String getName()
Get the name property: The name property.- Returns:
- the name value.
-
setName
public BlobItem setName(String name)
Set the name property: The name property.- Parameters:
name- the name value to set.- Returns:
- the BlobItem object itself.
-
isDeleted
public boolean isDeleted()
Get the deleted property: The deleted property.- Returns:
- the deleted value.
-
setDeleted
public BlobItem setDeleted(boolean deleted)
Set the deleted property: The deleted property.- Parameters:
deleted- the deleted value to set.- Returns:
- the BlobItem object itself.
-
getSnapshot
public String getSnapshot()
Get the snapshot property: The snapshot property.- Returns:
- the snapshot value.
-
setSnapshot
public BlobItem setSnapshot(String snapshot)
Set the snapshot property: The snapshot property.- Parameters:
snapshot- the snapshot value to set.- Returns:
- the BlobItem object itself.
-
getProperties
public BlobItemProperties getProperties()
Get the properties property: The properties property.- Returns:
- the properties value.
-
setProperties
public BlobItem setProperties(BlobItemProperties properties)
Set the properties property: The properties property.- Parameters:
properties- the properties value to set.- Returns:
- the BlobItem object itself.
-
getMetadata
public Map<String,String> getMetadata()
Get the metadata property: The metadata property.- Returns:
- the metadata value.
-
setMetadata
public BlobItem setMetadata(Map<String,String> metadata)
Set the metadata property: The metadata property.- Parameters:
metadata- the metadata value to set.- Returns:
- the BlobItem object itself.
-
getTags
public Map<String,String> getTags()
Get the tags property: The tags property.- Returns:
- the metadata value.
-
setTags
public BlobItem setTags(Map<String,String> tags)
Set the tags property: The tags property.- Parameters:
tags- the tags value to set.- Returns:
- the BlobItem object itself.
-
getVersionId
public String getVersionId()
Get the versionId property: The versionId property.- Returns:
- the versionId value.
-
setVersionId
public BlobItem setVersionId(String versionId)
Set the versionId property: The versionId property.- Parameters:
versionId- the versionId value to set.- Returns:
- the BlobItem object itself.
-
isCurrentVersion
public Boolean isCurrentVersion()
Get the isCurrentVersion property: The isCurrentVersion property.- Returns:
- the isCurrentVersion value.
-
setCurrentVersion
public BlobItem setCurrentVersion(Boolean isCurrentVersion)
Set the isCurrentVersion property: The isCurrentVersion property.- Parameters:
isCurrentVersion- the isCurrentVersion value to set.- Returns:
- the BlobItem object itself.
-
getObjectReplicationSourcePolicies
public List<ObjectReplicationPolicy> getObjectReplicationSourcePolicies()
Get the objectReplicationSourcePolicies property: The objectReplicationSourcePolicies property.- Returns:
- the objectReplicationSourcePolicies value.
-
setObjectReplicationSourcePolicies
public BlobItem setObjectReplicationSourcePolicies(List<ObjectReplicationPolicy> objectReplicationSourcePolicies)
Set the objectReplicationSourcePolicies property: The objectReplicationSourcePolicies property.- Parameters:
objectReplicationSourcePolicies- the objectReplicationSourcePolicies value to set.- Returns:
- the BlobItem object itself.
-
hasVersionsOnly
public Boolean hasVersionsOnly()
Get the hasVersionsOnly property: The HasVersionsOnly property.- Returns:
- the hasVersionsOnly value.
-
setHasVersionsOnly
public BlobItem setHasVersionsOnly(Boolean hasVersionsOnly)
Set the hasVersionsOnly property: The HasVersionsOnly property.- Parameters:
hasVersionsOnly- the hasVersionsOnly value to set.- Returns:
- the BlobItemInternal object itself.
-
isPrefix
public Boolean isPrefix()
Get the isPrefix property: If blobs are named to mimic a directory hierarchy (i.e. path elements separated by a delimiter), this property may be used to determine if theBlobItemis a virtual directory.- Returns:
- the isPrefix value.
-
-