FileGetFromTaskHeaders Class
- java.
lang. Object - com.
microsoft. azure. batch. protocol. models. FileGetFromTaskHeaders
- com.
public class FileGetFromTaskHeaders
Defines headers for GetFromTask 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 FileGetFromTaskHeaders 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 FileGetFromTaskHeaders withContentLength(Long contentLength)
Set the length of the file.
Parameters:
Returns:
withContentType
public FileGetFromTaskHeaders withContentType(String contentType)
Set the content type of the file.
Parameters:
Returns:
withETag
public FileGetFromTaskHeaders 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 FileGetFromTaskHeaders withLastModified(DateTime lastModified)
Set the time at which the resource was last modified.
Parameters:
Returns:
withOcpBatchFileIsdirectory
public FileGetFromTaskHeaders withOcpBatchFileIsdirectory(Boolean ocpBatchFileIsdirectory)
Set whether the object represents a directory.
Parameters:
Returns:
withOcpBatchFileMode
public FileGetFromTaskHeaders withOcpBatchFileMode(String ocpBatchFileMode)
Set the file mode attribute in octal format.
Parameters:
Returns:
withOcpBatchFileUrl
public FileGetFromTaskHeaders withOcpBatchFileUrl(String ocpBatchFileUrl)
Set the URL of the file.
Parameters:
Returns:
withOcpCreationTime
public FileGetFromTaskHeaders withOcpCreationTime(DateTime ocpCreationTime)
Set the file creation time.
Parameters:
Returns:
withRequestId
public FileGetFromTaskHeaders 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