BatchTaskFileGetOptions Class

  • java.lang.Object
    • com.azure.compute.batch.models.BatchTaskFileGetOptions

public final class BatchTaskFileGetOptions

Optional parameters for Get Task File operation.

Constructor Summary

Constructor Description
BatchTaskFileGetOptions()

Creates an instance of BatchTaskFileGetOptions class.

Method Summary

Modifier and Type Method and Description
OffsetDateTime getIfModifiedSince()

Get the ifModifiedSince property: A timestamp indicating the last modified time of the resource known to the client.

OffsetDateTime getIfUnmodifiedSince()

Get the ifUnmodifiedSince property: A timestamp indicating the last modified time of the resource known to the client.

String getOcpRange()

Get the ocpRange property: The byte range to be retrieved.

Duration getTimeOutInSeconds()

Get the timeOutInSeconds property: The maximum time that the server can spend processing the request, in seconds.

BatchTaskFileGetOptions setIfModifiedSince(OffsetDateTime ifModifiedSince)

Set the ifModifiedSince property: A timestamp indicating the last modified time of the resource known to the client.

BatchTaskFileGetOptions setIfUnmodifiedSince(OffsetDateTime ifUnmodifiedSince)

Set the ifUnmodifiedSince property: A timestamp indicating the last modified time of the resource known to the client.

BatchTaskFileGetOptions setOcpRange(String ocpRange)

Set the ocpRange property: The byte range to be retrieved.

BatchTaskFileGetOptions setTimeOutInSeconds(Duration timeOutInSeconds)

Set the timeOutInSeconds property: The maximum time that the server can spend processing the request, in seconds.

Methods inherited from java.lang.Object

Constructor Details

BatchTaskFileGetOptions

public BatchTaskFileGetOptions()

Creates an instance of BatchTaskFileGetOptions class.

Method Details

getIfModifiedSince

public OffsetDateTime getIfModifiedSince()

Get the ifModifiedSince property: A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time.

Returns:

the ifModifiedSince value.

getIfUnmodifiedSince

public OffsetDateTime getIfUnmodifiedSince()

Get the ifUnmodifiedSince property: A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time.

Returns:

the ifUnmodifiedSince value.

getOcpRange

public String getOcpRange()

Get the ocpRange property: The byte range to be retrieved. The default is to retrieve the entire file. The format is bytes=startRange-endRange.

Returns:

the ocpRange value.

getTimeOutInSeconds

public Duration getTimeOutInSeconds()

Get the timeOutInSeconds property: The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.".

Returns:

the timeOutInSeconds value.

setIfModifiedSince

public BatchTaskFileGetOptions setIfModifiedSince(OffsetDateTime ifModifiedSince)

Set the ifModifiedSince property: A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has been modified since the specified time.

Parameters:

ifModifiedSince - the ifModifiedSince value to set.

Returns:

the BatchTaskFileGetOptions object itself.

setIfUnmodifiedSince

public BatchTaskFileGetOptions setIfUnmodifiedSince(OffsetDateTime ifUnmodifiedSince)

Set the ifUnmodifiedSince property: A timestamp indicating the last modified time of the resource known to the client. The operation will be performed only if the resource on the service has not been modified since the specified time.

Parameters:

ifUnmodifiedSince - the ifUnmodifiedSince value to set.

Returns:

the BatchTaskFileGetOptions object itself.

setOcpRange

public BatchTaskFileGetOptions setOcpRange(String ocpRange)

Set the ocpRange property: The byte range to be retrieved. The default is to retrieve the entire file. The format is bytes=startRange-endRange.

Parameters:

ocpRange - the ocpRange value to set.

Returns:

the BatchTaskFileGetOptions object itself.

setTimeOutInSeconds

public BatchTaskFileGetOptions setTimeOutInSeconds(Duration timeOutInSeconds)

Set the timeOutInSeconds property: The maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used instead.".

Parameters:

timeOutInSeconds - the timeOutInSeconds value to set.

Returns:

the BatchTaskFileGetOptions object itself.

Applies to