BatchTaskFileDeleteOptions Class

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

public final class BatchTaskFileDeleteOptions

Optional parameters for Delete Task File operation.

Constructor Summary

Constructor Description
BatchTaskFileDeleteOptions()

Creates an instance of BatchTaskFileDeleteOptions class.

Method Summary

Modifier and Type Method and Description
Duration getTimeOutInSeconds()

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

Boolean isRecursive()

Get the recursive property: Whether to delete children of a directory.

BatchTaskFileDeleteOptions setRecursive(Boolean recursive)

Set the recursive property: Whether to delete children of a directory.

BatchTaskFileDeleteOptions 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

BatchTaskFileDeleteOptions

public BatchTaskFileDeleteOptions()

Creates an instance of BatchTaskFileDeleteOptions class.

Method Details

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.

isRecursive

public Boolean isRecursive()

Get the recursive property: Whether to delete children of a directory. If the filePath parameter represents a directory instead of a file, you can set recursive to true to delete the directory and all of the files and subdirectories in it. If recursive is false then the directory must be empty or deletion will fail.

Returns:

the recursive value.

setRecursive

public BatchTaskFileDeleteOptions setRecursive(Boolean recursive)

Set the recursive property: Whether to delete children of a directory. If the filePath parameter represents a directory instead of a file, you can set recursive to true to delete the directory and all of the files and subdirectories in it. If recursive is false then the directory must be empty or deletion will fail.

Parameters:

recursive - the recursive value to set.

Returns:

the BatchTaskFileDeleteOptions object itself.

setTimeOutInSeconds

public BatchTaskFileDeleteOptions 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 BatchTaskFileDeleteOptions object itself.

Applies to