FileProperties Class
- java.
lang. Object - com.
microsoft. azure. batch. protocol. models. FileProperties
- com.
public class FileProperties
The properties of a file on a Compute Node.
Constructor Summary
Constructor | Description | |
---|---|---|
FileProperties() |
Method Summary
Modifier and Type | Method and Description |
---|---|
long |
contentLength()
Get the content |
String |
contentType()
Get the content |
org.joda.time.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. |
org.joda.time.DateTime |
lastModified()
Get the last |
File |
withContentLength(long contentLength)
Set the content |
File |
withContentType(String contentType)
Set the content |
File |
withCreationTime(DateTime creationTime)
Set the creation time is not returned for files on Linux Compute Nodes. |
File |
withFileMode(String fileMode)
Set the file mode is returned only for files on Linux Compute Nodes. |
File |
withLastModified(DateTime lastModified)
Set the last |
Methods inherited from java.lang.Object
Constructor Details
FileProperties
public FileProperties()
Method Details
contentLength
public long contentLength()
Get the contentLength value.
Returns:
contentType
public String contentType()
Get the contentType value.
Returns:
creationTime
public DateTime creationTime()
Get the creation time is not returned for files on Linux Compute Nodes.
Returns:
fileMode
public String fileMode()
Get the file mode is returned only for files on Linux Compute Nodes.
Returns:
lastModified
public DateTime lastModified()
Get the lastModified value.
Returns:
withContentLength
public FileProperties withContentLength(long contentLength)
Set the contentLength value.
Parameters:
Returns:
withContentType
public FileProperties withContentType(String contentType)
Set the contentType value.
Parameters:
Returns:
withCreationTime
public FileProperties withCreationTime(DateTime creationTime)
Set the creation time is not returned for files on Linux Compute Nodes.
Parameters:
Returns:
withFileMode
public FileProperties withFileMode(String fileMode)
Set the file mode is returned only for files on Linux Compute Nodes.
Parameters:
Returns:
withLastModified
public FileProperties withLastModified(DateTime lastModified)
Set the lastModified value.
Parameters:
Returns:
Applies to
Azure SDK for Java