Class StorageTaskAssignmentUpdateExecutionContext
java.lang.Object
com.azure.resourcemanager.storage.models.StorageTaskAssignmentUpdateExecutionContext
- All Implemented Interfaces:
com.azure.json.JsonSerializable<StorageTaskAssignmentUpdateExecutionContext>
public final class StorageTaskAssignmentUpdateExecutionContext
extends Object
implements com.azure.json.JsonSerializable<StorageTaskAssignmentUpdateExecutionContext>
Execution context of the storage task assignment update.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of StorageTaskAssignmentUpdateExecutionContext class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of StorageTaskAssignmentUpdateExecutionContext 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(ExecutionTriggerUpdate 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
-
StorageTaskAssignmentUpdateExecutionContext
public StorageTaskAssignmentUpdateExecutionContext()Creates an instance of StorageTaskAssignmentUpdateExecutionContext 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 StorageTaskAssignmentUpdateExecutionContext 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 StorageTaskAssignmentUpdateExecutionContext 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<StorageTaskAssignmentUpdateExecutionContext>- Throws:
IOException
-
fromJson
public static StorageTaskAssignmentUpdateExecutionContext fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of StorageTaskAssignmentUpdateExecutionContext from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of StorageTaskAssignmentUpdateExecutionContext 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 StorageTaskAssignmentUpdateExecutionContext.
-