FileProperties Class
- java.
lang. Object - com.
azure. compute. batch. models. FileProperties
- com.
Implements
public final class FileProperties
implements JsonSerializable<FileProperties>
The properties of a file on a Compute Node.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
File |
fromJson(JsonReader jsonReader)
Reads an instance of File |
| long |
getContentLength()
Get the content |
| String |
getContentType()
Get the content |
|
Offset |
getCreationTime()
Get the creation |
| String |
getFileMode()
Get the file |
|
Offset |
getLastModified()
Get the last |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Method Details
fromJson
public static FileProperties fromJson(JsonReader jsonReader)
Reads an instance of FileProperties from the JsonReader.
Parameters:
Returns:
Throws:
getContentLength
public long getContentLength()
Get the contentLength property: The length of the file.
Returns:
getContentType
public String getContentType()
Get the contentType property: The content type of the file.
Returns:
getCreationTime
public OffsetDateTime getCreationTime()
Get the creationTime property: The file creation time. The creation time is not returned for files on Linux Compute Nodes.
Returns:
getFileMode
public String getFileMode()
Get the fileMode property: The file mode attribute in octal format. The file mode is returned only for files on Linux Compute Nodes.
Returns:
getLastModified
public OffsetDateTime getLastModified()
Get the lastModified property: The time at which the file was last modified.
Returns: