Class StorageTaskAssignmentExecutionContext
java.lang.Object
com.azure.resourcemanager.storage.models.StorageTaskAssignmentExecutionContext
- All Implemented Interfaces:
com.azure.json.JsonSerializable<StorageTaskAssignmentExecutionContext>
public final class StorageTaskAssignmentExecutionContext
extends Object
implements com.azure.json.JsonSerializable<StorageTaskAssignmentExecutionContext>
Execution context of the storage task assignment.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of StorageTaskAssignmentExecutionContext class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of StorageTaskAssignmentExecutionContext from the JsonReader.target()Get the target property: Execution target of the storage task assignment.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) trigger()Get the trigger property: Execution trigger of the storage task assignment.voidvalidate()Validates the instance.withTarget(ExecutionTarget target) Set the target property: Execution target of the storage task assignment.withTrigger(ExecutionTrigger trigger) Set the trigger property: Execution trigger of the storage task assignment.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
-
StorageTaskAssignmentExecutionContext
public StorageTaskAssignmentExecutionContext()Creates an instance of StorageTaskAssignmentExecutionContext class.
-
-
Method Details
-
target
Get the target property: Execution target of the storage task assignment.- Returns:
- the target value.
-
withTarget
Set the target property: Execution target of the storage task assignment.- Parameters:
target- the target value to set.- Returns:
- the StorageTaskAssignmentExecutionContext object itself.
-
trigger
Get the trigger property: Execution trigger of the storage task assignment.- Returns:
- the trigger value.
-
withTrigger
Set the trigger property: Execution trigger of the storage task assignment.- Parameters:
trigger- the trigger value to set.- Returns:
- the StorageTaskAssignmentExecutionContext 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<StorageTaskAssignmentExecutionContext>- Throws:
IOException
-
fromJson
public static StorageTaskAssignmentExecutionContext fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the StorageTaskAssignmentExecutionContext.
-