다음을 통해 공유


StorageTaskAssignmentExecutionContext Class

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

Implements

public final class StorageTaskAssignmentExecutionContext
implements JsonSerializable<StorageTaskAssignmentExecutionContext>

Execution context of the storage task assignment.

Constructor Summary

Constructor Description
StorageTaskAssignmentExecutionContext()

Creates an instance of StorageTaskAssignmentExecutionContext class.

Method Summary

Modifier and Type Method and Description
static StorageTaskAssignmentExecutionContext fromJson(JsonReader jsonReader)

Reads an instance of StorageTaskAssignmentExecutionContext from the JsonReader.

ExecutionTarget target()

Get the target property: Execution target of the storage task assignment.

JsonWriter toJson(JsonWriter jsonWriter)
ExecutionTrigger trigger()

Get the trigger property: Execution trigger of the storage task assignment.

void validate()

Validates the instance.

StorageTaskAssignmentExecutionContext withTarget(ExecutionTarget target)

Set the target property: Execution target of the storage task assignment.

StorageTaskAssignmentExecutionContext withTrigger(ExecutionTrigger trigger)

Set the trigger property: Execution trigger of the storage task assignment.

Methods inherited from java.lang.Object

Constructor Details

StorageTaskAssignmentExecutionContext

public StorageTaskAssignmentExecutionContext()

Creates an instance of StorageTaskAssignmentExecutionContext class.

Method Details

fromJson

public static StorageTaskAssignmentExecutionContext fromJson(JsonReader jsonReader)

Reads an instance of StorageTaskAssignmentExecutionContext from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of StorageTaskAssignmentExecutionContext if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

target

public ExecutionTarget target()

Get the target property: Execution target of the storage task assignment.

Returns:

the target value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

trigger

public ExecutionTrigger trigger()

Get the trigger property: Execution trigger of the storage task assignment.

Returns:

the trigger value.

validate

public void validate()

Validates the instance.

withTarget

public StorageTaskAssignmentExecutionContext withTarget(ExecutionTarget target)

Set the target property: Execution target of the storage task assignment.

Parameters:

target - the target value to set.

Returns:

the StorageTaskAssignmentExecutionContext object itself.

withTrigger

public StorageTaskAssignmentExecutionContext withTrigger(ExecutionTrigger trigger)

Set the trigger property: Execution trigger of the storage task assignment.

Parameters:

trigger - the trigger value to set.

Returns:

the StorageTaskAssignmentExecutionContext object itself.

Applies to