TriggerBase Class

  • java.lang.Object
    • com.azure.resourcemanager.machinelearning.models.TriggerBase

Implements

public class TriggerBase
implements JsonSerializable<TriggerBase>

The TriggerBase model.

Constructor Summary

Constructor Description
TriggerBase()

Creates an instance of TriggerBase class.

Method Summary

Modifier and Type Method and Description
String endTime()

Get the endTime property: Specifies end time of schedule in ISO 8601, but without a UTC offset.

static TriggerBase fromJson(JsonReader jsonReader)

Reads an instance of TriggerBase from the JsonReader.

String startTime()

Get the startTime property: Specifies start time of schedule in ISO 8601 format, but without a UTC offset.

String timeZone()

Get the timeZone property: Specifies time zone in which the schedule runs.

JsonWriter toJson(JsonWriter jsonWriter)
TriggerType triggerType()

Get the triggerType property: [Required].

void validate()

Validates the instance.

TriggerBase withEndTime(String endTime)

Set the endTime property: Specifies end time of schedule in ISO 8601, but without a UTC offset.

TriggerBase withStartTime(String startTime)

Set the startTime property: Specifies start time of schedule in ISO 8601 format, but without a UTC offset.

TriggerBase withTimeZone(String timeZone)

Set the timeZone property: Specifies time zone in which the schedule runs.

Methods inherited from java.lang.Object

Constructor Details

TriggerBase

public TriggerBase()

Creates an instance of TriggerBase class.

Method Details

endTime

public String endTime()

Get the endTime property: Specifies end time of schedule in ISO 8601, but without a UTC offset. Refer https://en.wikipedia.org/wiki/ISO\_8601. Recommented format would be "2022-06-01T00:00:01" If not present, the schedule will run indefinitely.

Returns:

the endTime value.

fromJson

public static TriggerBase fromJson(JsonReader jsonReader)

Reads an instance of TriggerBase from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of TriggerBase 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 TriggerBase.

startTime

public String startTime()

Get the startTime property: Specifies start time of schedule in ISO 8601 format, but without a UTC offset.

Returns:

the startTime value.

timeZone

public String timeZone()

Get the timeZone property: Specifies time zone in which the schedule runs. TimeZone should follow Windows time zone format. Refer: https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/default-time-zones?view=windows-11.

Returns:

the timeZone value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

triggerType

public TriggerType triggerType()

Get the triggerType property: [Required].

Returns:

the triggerType value.

validate

public void validate()

Validates the instance.

withEndTime

public TriggerBase withEndTime(String endTime)

Set the endTime property: Specifies end time of schedule in ISO 8601, but without a UTC offset. Refer https://en.wikipedia.org/wiki/ISO\_8601. Recommented format would be "2022-06-01T00:00:01" If not present, the schedule will run indefinitely.

Parameters:

endTime - the endTime value to set.

Returns:

the TriggerBase object itself.

withStartTime

public TriggerBase withStartTime(String startTime)

Set the startTime property: Specifies start time of schedule in ISO 8601 format, but without a UTC offset.

Parameters:

startTime - the startTime value to set.

Returns:

the TriggerBase object itself.

withTimeZone

public TriggerBase withTimeZone(String timeZone)

Set the timeZone property: Specifies time zone in which the schedule runs. TimeZone should follow Windows time zone format. Refer: https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/default-time-zones?view=windows-11.

Parameters:

timeZone - the timeZone value to set.

Returns:

the TriggerBase object itself.

Applies to