Class TriggerParameters
java.lang.Object
com.azure.resourcemanager.storage.models.TriggerParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<TriggerParameters>
public final class TriggerParameters
extends Object
implements com.azure.json.JsonSerializable<TriggerParameters>
The trigger parameters update for the storage task assignment execution.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionendBy()Get the endBy property: When to end task execution.static TriggerParametersfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of TriggerParameters from the JsonReader.interval()Get the interval property: Run interval of task execution.Get the intervalUnit property: Run interval unit of task execution.Get the startFrom property: When to start task execution.startOn()Get the startOn property: When to start task execution.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withEndBy(OffsetDateTime endBy) Set the endBy property: When to end task execution.withInterval(Integer interval) Set the interval property: Run interval of task execution.withIntervalUnit(IntervalUnit intervalUnit) Set the intervalUnit property: Run interval unit of task execution.withStartFrom(OffsetDateTime startFrom) Set the startFrom property: When to start task execution.withStartOn(OffsetDateTime startOn) Set the startOn property: When to start task 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
-
TriggerParameters
public TriggerParameters()Creates an instance of TriggerParameters class.
-
-
Method Details
-
startFrom
Get the startFrom property: When to start task execution. This is a required field when ExecutionTrigger.properties.type is 'OnSchedule'; this property should not be present when ExecutionTrigger.properties.type is 'RunOnce'.- Returns:
- the startFrom value.
-
withStartFrom
Set the startFrom property: When to start task execution. This is a required field when ExecutionTrigger.properties.type is 'OnSchedule'; this property should not be present when ExecutionTrigger.properties.type is 'RunOnce'.- Parameters:
startFrom- the startFrom value to set.- Returns:
- the TriggerParameters object itself.
-
interval
Get the interval property: Run interval of task execution. This is a required field when ExecutionTrigger.properties.type is 'OnSchedule'; this property should not be present when ExecutionTrigger.properties.type is 'RunOnce'.- Returns:
- the interval value.
-
withInterval
Set the interval property: Run interval of task execution. This is a required field when ExecutionTrigger.properties.type is 'OnSchedule'; this property should not be present when ExecutionTrigger.properties.type is 'RunOnce'.- Parameters:
interval- the interval value to set.- Returns:
- the TriggerParameters object itself.
-
intervalUnit
Get the intervalUnit property: Run interval unit of task execution. This is a required field when ExecutionTrigger.properties.type is 'OnSchedule'; this property should not be present when ExecutionTrigger.properties.type is 'RunOnce'.- Returns:
- the intervalUnit value.
-
withIntervalUnit
Set the intervalUnit property: Run interval unit of task execution. This is a required field when ExecutionTrigger.properties.type is 'OnSchedule'; this property should not be present when ExecutionTrigger.properties.type is 'RunOnce'.- Parameters:
intervalUnit- the intervalUnit value to set.- Returns:
- the TriggerParameters object itself.
-
endBy
Get the endBy property: When to end task execution. This is a required field when ExecutionTrigger.properties.type is 'OnSchedule'; this property should not be present when ExecutionTrigger.properties.type is 'RunOnce'.- Returns:
- the endBy value.
-
withEndBy
Set the endBy property: When to end task execution. This is a required field when ExecutionTrigger.properties.type is 'OnSchedule'; this property should not be present when ExecutionTrigger.properties.type is 'RunOnce'.- Parameters:
endBy- the endBy value to set.- Returns:
- the TriggerParameters object itself.
-
startOn
Get the startOn property: When to start task execution. This is a required field when ExecutionTrigger.properties.type is 'RunOnce'; this property should not be present when ExecutionTrigger.properties.type is 'OnSchedule'.- Returns:
- the startOn value.
-
withStartOn
Set the startOn property: When to start task execution. This is a required field when ExecutionTrigger.properties.type is 'RunOnce'; this property should not be present when ExecutionTrigger.properties.type is 'OnSchedule'.- Parameters:
startOn- the startOn value to set.- Returns:
- the TriggerParameters 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<TriggerParameters>- Throws:
IOException
-
fromJson
Reads an instance of TriggerParameters from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of TriggerParameters 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 TriggerParameters.
-