Partilhar via


BlobItem Class

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

public final class BlobItem

An Azure Storage blob.

Constructor Summary

Constructor Description
BlobItem()

Constructs a new instance of BlobItem.

Method Summary

Modifier and Type Method and Description
Map<String,String> getMetadata()

Get the metadata property: The metadata property.

String getName()

Get the name property: The name property.

List<ObjectReplicationPolicy> getObjectReplicationSourcePolicies()

Get the objectReplicationSourcePolicies property: The objectReplicationSourcePolicies property.

BlobItemProperties getProperties()

Get the properties property: The properties property.

String getSnapshot()

Get the snapshot property: The snapshot property.

Map<String,String> getTags()

Get the tags property: The tags property.

String getVersionId()

Get the versionId property: The versionId property.

Boolean hasVersionsOnly()

Get the hasVersionsOnly property: The HasVersionsOnly property.

Boolean isCurrentVersion()

Get the isCurrentVersion property: The isCurrentVersion property.

boolean isDeleted()

Get the deleted property: The deleted property.

Boolean isPrefix()

Get the isPrefix property: If blobs are named to mimic a directory hierarchy (i.e.

BlobItem setCurrentVersion(Boolean isCurrentVersion)

Set the isCurrentVersion property: The isCurrentVersion property.

BlobItem setDeleted(boolean deleted)

Set the deleted property: The deleted property.

BlobItem setHasVersionsOnly(Boolean hasVersionsOnly)

Set the hasVersionsOnly property: The HasVersionsOnly property.

BlobItem setIsPrefix(Boolean isPrefix)

Set the isPrefix property: The isPrefix property.

BlobItem setMetadata(Map<String,String> metadata)

Set the metadata property: The metadata property.

BlobItem setName(String name)

Set the name property: The name property.

BlobItem setObjectReplicationSourcePolicies(List<ObjectReplicationPolicy> objectReplicationSourcePolicies)

Set the objectReplicationSourcePolicies property: The objectReplicationSourcePolicies property.

BlobItem setProperties(BlobItemProperties properties)

Set the properties property: The properties property.

BlobItem setSnapshot(String snapshot)

Set the snapshot property: The snapshot property.

BlobItem setTags(Map<String,String> tags)

Set the tags property: The tags property.

BlobItem setVersionId(String versionId)

Set the versionId property: The versionId property.

Methods inherited from java.lang.Object

Constructor Details

BlobItem

public BlobItem()

Constructs a new instance of BlobItem.

Method Details

getMetadata

public Map getMetadata()

Get the metadata property: The metadata property.

Returns:

the metadata value.

getName

public String getName()

Get the name property: The name property.

Returns:

the name value.

getObjectReplicationSourcePolicies

public List getObjectReplicationSourcePolicies()

Get the objectReplicationSourcePolicies property: The objectReplicationSourcePolicies property.

Returns:

the objectReplicationSourcePolicies value.

getProperties

public BlobItemProperties getProperties()

Get the properties property: The properties property.

Returns:

the properties value.

getSnapshot

public String getSnapshot()

Get the snapshot property: The snapshot property.

Returns:

the snapshot value.

getTags

public Map getTags()

Get the tags property: The tags property.

Returns:

the metadata value.

getVersionId

public String getVersionId()

Get the versionId property: The versionId property.

Returns:

the versionId value.

hasVersionsOnly

public Boolean hasVersionsOnly()

Get the hasVersionsOnly property: The HasVersionsOnly property.

Returns:

the hasVersionsOnly value.

isCurrentVersion

public Boolean isCurrentVersion()

Get the isCurrentVersion property: The isCurrentVersion property.

Returns:

the isCurrentVersion value.

isDeleted

public boolean isDeleted()

Get the deleted property: The deleted property.

Returns:

the deleted value.

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 the BlobItem is a virtual directory.

Returns:

the isPrefix 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.

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.

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.

setIsPrefix

public BlobItem setIsPrefix(Boolean isPrefix)

Set the isPrefix property: The isPrefix property.

Parameters:

isPrefix - the isPrefix value to set.

Returns:

the BlobItem object itself.

setMetadata

public BlobItem setMetadata(Map metadata)

Set the metadata property: The metadata property.

Parameters:

metadata - the metadata value to set.

Returns:

the BlobItem object itself.

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.

setObjectReplicationSourcePolicies

public BlobItem setObjectReplicationSourcePolicies(List objectReplicationSourcePolicies)

Set the objectReplicationSourcePolicies property: The objectReplicationSourcePolicies property.

Parameters:

objectReplicationSourcePolicies - the objectReplicationSourcePolicies value to set.

Returns:

the BlobItem object itself.

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.

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.

setTags

public BlobItem setTags(Map tags)

Set the tags property: The tags property.

Parameters:

tags - the tags value to set.

Returns:

the BlobItem object itself.

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.

Applies to