Class ExecutionTrigger
java.lang.Object
com.azure.resourcemanager.storage.models.ExecutionTrigger
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ExecutionTrigger>
public final class ExecutionTrigger
extends Object
implements com.azure.json.JsonSerializable<ExecutionTrigger>
Execution trigger for storage task assignment.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ExecutionTriggerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ExecutionTrigger from the JsonReader.Get the parameters property: The trigger parameters of the storage task assignment execution.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The trigger type of the storage task assignment execution.voidvalidate()Validates the instance.withParameters(TriggerParameters parameters) Set the parameters property: The trigger parameters of the storage task assignment execution.withType(TriggerType type) Set the type property: The trigger type of the storage task assignment execution.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
-
ExecutionTrigger
public ExecutionTrigger()Creates an instance of ExecutionTrigger class.
-
-
Method Details
-
type
Get the type property: The trigger type of the storage task assignment execution.- Returns:
- the type value.
-
withType
Set the type property: The trigger type of the storage task assignment execution.- Parameters:
type- the type value to set.- Returns:
- the ExecutionTrigger object itself.
-
parameters
Get the parameters property: The trigger parameters of the storage task assignment execution.- Returns:
- the parameters value.
-
withParameters
Set the parameters property: The trigger parameters of the storage task assignment execution.- Parameters:
parameters- the parameters value to set.- Returns:
- the ExecutionTrigger 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<ExecutionTrigger>- Throws:
IOException
-
fromJson
Reads an instance of ExecutionTrigger from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ExecutionTrigger 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 ExecutionTrigger.
-