TriggerParameters Class
- java.
lang. Object - com.
azure. resourcemanager. storage. models. TriggerParameters
- com.
Implements
public final class TriggerParameters
implements JsonSerializable<TriggerParameters>
The trigger parameters update for the storage task assignment execution.
Constructor Summary
Constructor | Description |
---|---|
TriggerParameters() |
Creates an instance of Trigger |
Method Summary
Modifier and Type | Method and Description |
---|---|
Offset |
endBy()
Get the end |
static
Trigger |
fromJson(JsonReader jsonReader)
Reads an instance of Trigger |
Integer |
interval()
Get the interval property: Run interval of task execution. |
Interval |
intervalUnit()
Get the interval |
Offset |
startFrom()
Get the start |
Offset |
startOn()
Get the start |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Trigger |
withEndBy(OffsetDateTime endBy)
Set the end |
Trigger |
withInterval(Integer interval)
Set the interval property: Run interval of task execution. |
Trigger |
withIntervalUnit(IntervalUnit intervalUnit)
Set the interval |
Trigger |
withStartFrom(OffsetDateTime startFrom)
Set the start |
Trigger |
withStartOn(OffsetDateTime startOn)
Set the start |
Methods inherited from java.lang.Object
Constructor Details
TriggerParameters
public TriggerParameters()
Creates an instance of TriggerParameters class.
Method Details
endBy
public OffsetDateTime 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:
fromJson
public static TriggerParameters fromJson(JsonReader jsonReader)
Reads an instance of TriggerParameters from the JsonReader.
Parameters:
Returns:
Throws:
interval
public Integer 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:
intervalUnit
public IntervalUnit 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:
startFrom
public OffsetDateTime 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:
startOn
public OffsetDateTime startOn()
Get the startOn property: When to start task execution. This is an optional field when ExecutionTrigger.properties.type is 'RunOnce'; this property should not be present when ExecutionTrigger.properties.type is 'OnSchedule'.
Returns:
toJson
validate
public void validate()
Validates the instance.
withEndBy
public TriggerParameters withEndBy(OffsetDateTime endBy)
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:
Returns:
withInterval
public TriggerParameters withInterval(Integer interval)
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:
Returns:
withIntervalUnit
public TriggerParameters withIntervalUnit(IntervalUnit intervalUnit)
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:
Returns:
withStartFrom
public TriggerParameters withStartFrom(OffsetDateTime startFrom)
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:
Returns:
withStartOn
public TriggerParameters withStartOn(OffsetDateTime startOn)
Set the startOn property: When to start task execution. This is an optional field when ExecutionTrigger.properties.type is 'RunOnce'; this property should not be present when ExecutionTrigger.properties.type is 'OnSchedule'.
Parameters:
Returns:
Applies to
Azure SDK for Java