다음을 통해 공유


TriggerParameters Class

  • java.lang.Object
    • com.azure.resourcemanager.storage.models.TriggerParameters

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 TriggerParameters class.

Method Summary

Modifier and Type Method and Description
OffsetDateTime endBy()

Get the endBy property: When to end task execution.

static TriggerParameters fromJson(JsonReader jsonReader)

Reads an instance of TriggerParameters from the JsonReader.

Integer interval()

Get the interval property: Run interval of task execution.

IntervalUnit intervalUnit()

Get the intervalUnit property: Run interval unit of task execution.

OffsetDateTime startFrom()

Get the startFrom property: When to start task execution.

OffsetDateTime startOn()

Get the startOn property: When to start task execution.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

TriggerParameters withEndBy(OffsetDateTime endBy)

Set the endBy property: When to end task execution.

TriggerParameters withInterval(Integer interval)

Set the interval property: Run interval of task execution.

TriggerParameters withIntervalUnit(IntervalUnit intervalUnit)

Set the intervalUnit property: Run interval unit of task execution.

TriggerParameters withStartFrom(OffsetDateTime startFrom)

Set the startFrom property: When to start task execution.

TriggerParameters withStartOn(OffsetDateTime startOn)

Set the startOn property: When to start task execution.

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:

the endBy value.

fromJson

public static TriggerParameters fromJson(JsonReader jsonReader)

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.

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:

the interval value.

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:

the intervalUnit value.

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:

the startFrom value.

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:

the startOn value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

endBy - the endBy value to set.

Returns:

the TriggerParameters object itself.

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:

interval - the interval value to set.

Returns:

the TriggerParameters object itself.

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:

intervalUnit - the intervalUnit value to set.

Returns:

the TriggerParameters object itself.

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:

startFrom - the startFrom value to set.

Returns:

the TriggerParameters object itself.

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:

startOn - the startOn value to set.

Returns:

the TriggerParameters object itself.

Applies to