Class BlobItem

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

public final class BlobItem extends Object
An Azure Storage blob.
  • Constructor Details

    • BlobItem

      public BlobItem()
      Constructs a new instance of BlobItem.
  • Method Details

    • 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 the BlobItem is a virtual directory.
      Returns:
      the isPrefix value.
    • 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.