Class ExecutionTarget
java.lang.Object
com.azure.resourcemanager.storage.models.ExecutionTarget
Target helps provide filter parameters for the objects in the storage account and forms the execution context for the
storage task.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the excludePrefix property: List of object prefixes to be excluded from task execution.prefix()Get the prefix property: Required list of object prefixes to be included for task execution.voidvalidate()Validates the instance.withExcludePrefix(List<String> excludePrefix) Set the excludePrefix property: List of object prefixes to be excluded from task execution.withPrefix(List<String> prefix) Set the prefix property: Required list of object prefixes to be included for task execution.
-
Constructor Details
-
ExecutionTarget
public ExecutionTarget()Creates an instance of ExecutionTarget class.
-
-
Method Details
-
prefix
Get the prefix property: Required list of object prefixes to be included for task execution.- Returns:
- the prefix value.
-
withPrefix
Set the prefix property: Required list of object prefixes to be included for task execution.- Parameters:
prefix- the prefix value to set.- Returns:
- the ExecutionTarget object itself.
-
excludePrefix
Get the excludePrefix property: List of object prefixes to be excluded from task execution. If there is a conflict between include and exclude prefixes, the exclude prefix will be the determining factor.- Returns:
- the excludePrefix value.
-
withExcludePrefix
Set the excludePrefix property: List of object prefixes to be excluded from task execution. If there is a conflict between include and exclude prefixes, the exclude prefix will be the determining factor.- Parameters:
excludePrefix- the excludePrefix value to set.- Returns:
- the ExecutionTarget object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-