다음을 통해 공유


ExecutionTarget Class

  • java.lang.Object
    • com.azure.resourcemanager.storage.models.ExecutionTarget

Implements

public final class ExecutionTarget
implements 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

Constructor Description
ExecutionTarget()

Creates an instance of ExecutionTarget class.

Method Summary

Modifier and Type Method and Description
List<String> excludePrefix()

Get the excludePrefix property: List of object prefixes to be excluded from task execution.

static ExecutionTarget fromJson(JsonReader jsonReader)

Reads an instance of ExecutionTarget from the JsonReader.

List<String> prefix()

Get the prefix property: Required list of object prefixes to be included for task execution.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ExecutionTarget withExcludePrefix(List<String> excludePrefix)

Set the excludePrefix property: List of object prefixes to be excluded from task execution.

ExecutionTarget withPrefix(List<String> prefix)

Set the prefix property: Required list of object prefixes to be included for task execution.

Methods inherited from java.lang.Object

Constructor Details

ExecutionTarget

public ExecutionTarget()

Creates an instance of ExecutionTarget class.

Method Details

excludePrefix

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

fromJson

public static ExecutionTarget fromJson(JsonReader jsonReader)

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.

prefix

public List prefix()

Get the prefix property: Required list of object prefixes to be included for task execution.

Returns:

the prefix value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withExcludePrefix

public ExecutionTarget withExcludePrefix(List 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.

withPrefix

public ExecutionTarget withPrefix(List 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.

Applies to