Package com.azure.storage.blob.models
Class Block
- java.lang.Object
-
- com.azure.storage.blob.models.Block
-
public final class Block extends Object
Represents a single block in a block blob. It describes the block's ID and size.
-
-
Constructor Summary
Constructors Constructor Description Block()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetName()Get the name property: The base64 encoded block ID.intgetSize()Deprecated.UsegetSizeLong()longgetSizeLong()Get the sizeLong property: The block size in bytes.BlocksetName(String name)Set the name property: The base64 encoded block ID.BlocksetSize(int sizeInt)Deprecated.BlocksetSizeLong(long sizeLong)Set the sizeLong property: The block size in bytes.
-
-
-
Method Detail
-
getName
public String getName()
Get the name property: The base64 encoded block ID.- Returns:
- the name value.
-
setName
public Block setName(String name)
Set the name property: The base64 encoded block ID.- Parameters:
name- the name value to set.- Returns:
- the Block object itself.
-
getSizeLong
public long getSizeLong()
Get the sizeLong property: The block size in bytes.- Returns:
- the sizeLong value.
-
setSizeLong
public Block setSizeLong(long sizeLong)
Set the sizeLong property: The block size in bytes.- Parameters:
sizeLong- the sizeLong value to set.- Returns:
- the Block object itself.
-
getSize
@Deprecated public int getSize()
Deprecated.UsegetSizeLong()Get the sizeInt property: The SizeInt property.- Returns:
- the sizeInt value.
-
setSize
@Deprecated public Block setSize(int sizeInt)
Deprecated.Set the sizeInt property: The SizeInt property.- Parameters:
sizeInt- the sizeInt value to set.- Returns:
- the Block object itself.
-
-