FileGetPropertiesFromTaskHeaders Class
- java.
lang. Object - com.
microsoft. azure. batch. protocol. models. FileGetPropertiesFromTaskHeaders
- com.
public class FileGetPropertiesFromTaskHeaders
Defines headers for GetPropertiesFromTask operation.
Method Summary
Modifier and Type | Method and Description |
---|---|
UUID |
clientRequestId()
Get the client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. |
Long |
contentLength()
Get the length of the file. |
String |
contentType()
Get the content type of the file. |
String |
eTag()
Get the ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. |
DateTime |
lastModified()
Get the time at which the resource was last modified. |
Boolean |
ocpBatchFileIsdirectory()
Get whether the object represents a directory. |
String |
ocpBatchFileMode()
Get the file mode attribute in octal format. |
String |
ocpBatchFileUrl()
Get the URL of the file. |
DateTime |
ocpCreationTime()
Get the file creation time. |
UUID |
requestId()
Get a unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch account against which the request was made, and the region that account resides in. |
File |
withClientRequestId(UUID clientRequestId)
Set the client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true. |
File |
withContentLength(Long contentLength)
Set the length of the file. |
File |
withContentType(String contentType)
Set the content type of the file. |
File |
withETag(String eTag)
Set the ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers. |
File |
withLastModified(DateTime lastModified)
Set the time at which the resource was last modified. |
File |
withOcpBatchFileIsdirectory(Boolean ocpBatchFileIsdirectory)
Set whether the object represents a directory. |
File |
withOcpBatchFileMode(String ocpBatchFileMode)
Set the file mode attribute in octal format. |
File |
withOcpBatchFileUrl(String ocpBatchFileUrl)
Set the URL of the file. |
File |
withOcpCreationTime(DateTime ocpCreationTime)
Set the file creation time. |
File |
withRequestId(UUID requestId)
Set a unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch account against which the request was made, and the region that account resides in. |
Method Details
clientRequestId
public UUID clientRequestId()
Get the client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.
Returns:
contentLength
public Long contentLength()
Get the length of the file.
Returns:
contentType
public String contentType()
Get the content type of the file.
Returns:
eTag
public String eTag()
Get the ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers.
Returns:
lastModified
public DateTime lastModified()
Get the time at which the resource was last modified.
Returns:
ocpBatchFileIsdirectory
public Boolean ocpBatchFileIsdirectory()
Get whether the object represents a directory.
Returns:
ocpBatchFileMode
public String ocpBatchFileMode()
Get the file mode attribute in octal format.
Returns:
ocpBatchFileUrl
public String ocpBatchFileUrl()
Get the URL of the file.
Returns:
ocpCreationTime
public DateTime ocpCreationTime()
Get the file creation time.
Returns:
requestId
public UUID requestId()
Get a unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch account against which the request was made, and the region that account resides in.
Returns:
withClientRequestId
public FileGetPropertiesFromTaskHeaders withClientRequestId(UUID clientRequestId)
Set the client-request-id provided by the client during the request. This will be returned only if the return-client-request-id parameter was set to true.
Parameters:
Returns:
withContentLength
public FileGetPropertiesFromTaskHeaders withContentLength(Long contentLength)
Set the length of the file.
Parameters:
Returns:
withContentType
public FileGetPropertiesFromTaskHeaders withContentType(String contentType)
Set the content type of the file.
Parameters:
Returns:
withETag
public FileGetPropertiesFromTaskHeaders withETag(String eTag)
Set the ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Modified-Since, If-Unmodified-Since, If-Match or If-None-Match headers.
Parameters:
Returns:
withLastModified
public FileGetPropertiesFromTaskHeaders withLastModified(DateTime lastModified)
Set the time at which the resource was last modified.
Parameters:
Returns:
withOcpBatchFileIsdirectory
public FileGetPropertiesFromTaskHeaders withOcpBatchFileIsdirectory(Boolean ocpBatchFileIsdirectory)
Set whether the object represents a directory.
Parameters:
Returns:
withOcpBatchFileMode
public FileGetPropertiesFromTaskHeaders withOcpBatchFileMode(String ocpBatchFileMode)
Set the file mode attribute in octal format.
Parameters:
Returns:
withOcpBatchFileUrl
public FileGetPropertiesFromTaskHeaders withOcpBatchFileUrl(String ocpBatchFileUrl)
Set the URL of the file.
Parameters:
Returns:
withOcpCreationTime
public FileGetPropertiesFromTaskHeaders withOcpCreationTime(DateTime ocpCreationTime)
Set the file creation time.
Parameters:
Returns:
withRequestId
public FileGetPropertiesFromTaskHeaders withRequestId(UUID requestId)
Set a unique identifier for the request that was made to the Batch service. If a request is consistently failing and you have verified that the request is properly formulated, you may use this value to report the error to Microsoft. In your report, include the value of this request ID, the approximate time that the request was made, the Batch account against which the request was made, and the region that account resides in.
Parameters:
Returns:
Applies to
Azure SDK for Java