public class PathUpdateAccessControlRecursiveOptions extends Object
| Constructor and Description |
|---|
PathUpdateAccessControlRecursiveOptions(List<PathAccessControlEntry> accessControlList)
Constructs a new options object.
|
| Modifier and Type | Method and Description |
|---|---|
List<PathAccessControlEntry> |
getAccessControlList()
Returns the POSIX access control list for the file or directory.
|
Integer |
getBatchSize()
Gets the batch size.
|
String |
getContinuationToken()
Returns a token that can be used to resume previously stopped operation.
|
Integer |
getMaxBatches()
Gets the maximum number of batches that single change Access Control operation can execute.
|
Consumer<com.azure.core.http.rest.Response<AccessControlChanges>> |
getProgressHandler()
Gets a callback where caller can track progress of the operation as well as collect paths that failed to change
Access Control.
|
boolean |
isContinueOnFailure()
Returns if the operation should continue on user failure.
|
PathUpdateAccessControlRecursiveOptions |
setBatchSize(Integer batchSize)
Sets the batch size.
|
PathUpdateAccessControlRecursiveOptions |
setContinuationToken(String continuationToken)
Sets a token that can be used to resume previously stopped operation.
|
PathUpdateAccessControlRecursiveOptions |
setContinueOnFailure(boolean continueOnFailure)
Sets if the operation should continue on user failure.
|
PathUpdateAccessControlRecursiveOptions |
setMaxBatches(Integer maxBatches)
Sets the maximum number of batches that single change Access Control operation can execute.
|
PathUpdateAccessControlRecursiveOptions |
setProgressHandler(Consumer<com.azure.core.http.rest.Response<AccessControlChanges>> progressHandler)
Sets a callback where caller can track progress of the operation as well as collect paths that failed to change
Access Control.
|
public PathUpdateAccessControlRecursiveOptions(List<PathAccessControlEntry> accessControlList)
accessControlList - The POSIX access control list for the file or directory.public List<PathAccessControlEntry> getAccessControlList()
public Integer getBatchSize()
If data set size exceeds batch size then operation will be split into multiple requests so that progress can be tracked. Batch size should be between 1 and 2000. The default when unspecified is 2000.
public PathUpdateAccessControlRecursiveOptions setBatchSize(Integer batchSize)
If data set size exceeds batch size then operation will be split into multiple requests so that progress can be tracked. Batch size should be between 1 and 2000. The default when unspecified is 2000.
batchSize - The size of the batch.public Integer getMaxBatches()
If maximum is reached before all subpaths are processed then continuation token can be used to resume operation.
Empty value indicates that maximum number of batches in unbound and operation continues till end. Operation may
also halt if an error is hit and continueOnFailure is false.
public PathUpdateAccessControlRecursiveOptions setMaxBatches(Integer maxBatches)
If maximum is reached before all subpaths are processed then continuation token can be used to resume operation.
Empty value indicates that maximum number of batches in unbound and operation continues till end. Operation may
* also halt if an error is hit and continueOnFailure is false.
maxBatches - The maximum number of batches.public Consumer<com.azure.core.http.rest.Response<AccessControlChanges>> getProgressHandler()
public PathUpdateAccessControlRecursiveOptions setProgressHandler(Consumer<com.azure.core.http.rest.Response<AccessControlChanges>> progressHandler)
progressHandler - The progress handler.public String getContinuationToken()
public PathUpdateAccessControlRecursiveOptions setContinuationToken(String continuationToken)
continuationToken - A token that can be used to resume previously stopped operation.public boolean isContinueOnFailure()
If set to false, the operation will terminate quickly on encountering user failures. If true, the operation will ignore user failures and proceed with the operation on other sub-entities of the directory.
public PathUpdateAccessControlRecursiveOptions setContinueOnFailure(boolean continueOnFailure)
If set to false, the operation will terminate quickly on encountering user failures. If true, the operation will ignore user failures and proceed with the operation on other sub-entities of the directory.
continueOnFailure - Whether the operation should continue on user failure.Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.