FileProperties Class

  • java.lang.Object
    • com.microsoft.azure.batch.protocol.models.FileProperties

public class FileProperties

The properties of a file on a compute node.

Method Summary

Modifier and Type Method and Description
long contentLength()

Get the contentLength value.

String contentType()

Get the contentType value.

DateTime creationTime()

Get the creation time is not returned for files on Linux compute nodes.

String fileMode()

Get the file mode is returned only for files on Linux compute nodes.

DateTime lastModified()

Get the lastModified value.

FileProperties withContentLength(long contentLength)

Set the contentLength value.

FileProperties withContentType(String contentType)

Set the contentType value.

FileProperties withCreationTime(DateTime creationTime)

Set the creation time is not returned for files on Linux compute nodes.

FileProperties withFileMode(String fileMode)

Set the file mode is returned only for files on Linux compute nodes.

FileProperties withLastModified(DateTime lastModified)

Set the lastModified value.

Method Details

contentLength

public long contentLength()

Get the contentLength value.

Returns:

the contentLength value

contentType

public String contentType()

Get the contentType value.

Returns:

the contentType value

creationTime

public DateTime creationTime()

Get the creation time is not returned for files on Linux compute nodes.

Returns:

the creationTime value

fileMode

public String fileMode()

Get the file mode is returned only for files on Linux compute nodes.

Returns:

the fileMode value

lastModified

public DateTime lastModified()

Get the lastModified value.

Returns:

the lastModified value

withContentLength

public FileProperties withContentLength(long contentLength)

Set the contentLength value.

Parameters:

contentLength - the contentLength value to set

Returns:

the FileProperties object itself.

withContentType

public FileProperties withContentType(String contentType)

Set the contentType value.

Parameters:

contentType - the contentType value to set

Returns:

the FileProperties object itself.

withCreationTime

public FileProperties withCreationTime(DateTime creationTime)

Set the creation time is not returned for files on Linux compute nodes.

Parameters:

creationTime - the creationTime value to set

Returns:

the FileProperties object itself.

withFileMode

public FileProperties withFileMode(String fileMode)

Set the file mode is returned only for files on Linux compute nodes.

Parameters:

fileMode - the fileMode value to set

Returns:

the FileProperties object itself.

withLastModified

public FileProperties withLastModified(DateTime lastModified)

Set the lastModified value.

Parameters:

lastModified - the lastModified value to set

Returns:

the FileProperties object itself.

Applies to