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
    Constructor
    Description
    Creates an instance of ExecutionTarget class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the excludePrefix property: List of object prefixes to be excluded from task execution.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of ExecutionTarget from the JsonReader.
    Get the prefix property: Required list of object prefixes to be included for task execution.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    withExcludePrefix(List<String> excludePrefix)
    Set the excludePrefix property: List of object prefixes to be excluded from task execution.
    Set the prefix property: Required list of object prefixes to be included for task execution.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods 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

      public List<String> prefix()
      Get the prefix property: Required list of object prefixes to be included for task execution.
      Returns:
      the prefix value.
    • withPrefix

      public ExecutionTarget withPrefix(List<String> prefix)
      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

      public List<String> 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

      public ExecutionTarget withExcludePrefix(List<String> excludePrefix)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<ExecutionTarget>
      Throws:
      IOException
    • fromJson

      public static ExecutionTarget fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.