Class ExecutionTarget
java.lang.Object
com.azure.resourcemanager.storage.models.ExecutionTarget
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ExecutionTarget>
public final class ExecutionTarget
extends Object
implements com.azure.json.JsonSerializable<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.static ExecutionTargetfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ExecutionTarget from the JsonReader.prefix()Get the prefix property: Required list of object prefixes to be included for task execution.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) 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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
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.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ExecutionTarget>- Throws:
IOException
-
fromJson
Reads an instance of ExecutionTarget from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ExecutionTarget if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the ExecutionTarget.
-