Package com.azure.storage.blob.models
Class Block
java.lang.Object
com.azure.storage.blob.models.Block
Represents a single block in a block blob. It describes the block's ID and size.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
Get the name property: The base64 encoded block ID.int
getSize()
Deprecated.long
Get the sizeLong property: The block size in bytes.Set the name property: The base64 encoded block ID.setSize
(int sizeInt) Deprecated.setSizeLong
(long sizeLong) Set the sizeLong property: The block size in bytes.
-
Constructor Details
-
Block
public Block()Creates an instance of Block class.
-
-
Method Details
-
getName
Get the name property: The base64 encoded block ID.- Returns:
- the name value.
-
setName
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
Set the sizeLong property: The block size in bytes.- Parameters:
sizeLong
- the sizeLong value to set.- Returns:
- the Block object itself.
-
getSize
Deprecated.UsegetSizeLong()
Get the sizeInt property: The SizeInt property.- Returns:
- the sizeInt value.
-
setSize
Deprecated.Set the sizeInt property: The SizeInt property.- Parameters:
sizeInt
- the sizeInt value to set.- Returns:
- the Block object itself.
-
getSizeLong()