ScheduleBase Class

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

Implements

public final class ScheduleBase
implements JsonSerializable<ScheduleBase>

The ScheduleBase model.

Constructor Summary

Constructor Description
ScheduleBase()

Creates an instance of ScheduleBase class.

Method Summary

Modifier and Type Method and Description
static ScheduleBase fromJson(JsonReader jsonReader)

Reads an instance of ScheduleBase from the JsonReader.

String id()

Get the id property: A system assigned id for the schedule.

ScheduleProvisioningState provisioningStatus()

Get the provisioningStatus property: The current deployment state of schedule.

ScheduleStatus status()

Get the status property: Is the schedule enabled or disabled?.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ScheduleBase withId(String id)

Set the id property: A system assigned id for the schedule.

ScheduleBase withProvisioningStatus(ScheduleProvisioningState provisioningStatus)

Set the provisioningStatus property: The current deployment state of schedule.

ScheduleBase withStatus(ScheduleStatus status)

Set the status property: Is the schedule enabled or disabled?.

Methods inherited from java.lang.Object

Constructor Details

ScheduleBase

public ScheduleBase()

Creates an instance of ScheduleBase class.

Method Details

fromJson

public static ScheduleBase fromJson(JsonReader jsonReader)

Reads an instance of ScheduleBase from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: A system assigned id for the schedule.

Returns:

the id value.

provisioningStatus

public ScheduleProvisioningState provisioningStatus()

Get the provisioningStatus property: The current deployment state of schedule.

Returns:

the provisioningStatus value.

status

public ScheduleStatus status()

Get the status property: Is the schedule enabled or disabled?.

Returns:

the status value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withId

public ScheduleBase withId(String id)

Set the id property: A system assigned id for the schedule.

Parameters:

id - the id value to set.

Returns:

the ScheduleBase object itself.

withProvisioningStatus

public ScheduleBase withProvisioningStatus(ScheduleProvisioningState provisioningStatus)

Set the provisioningStatus property: The current deployment state of schedule.

Parameters:

provisioningStatus - the provisioningStatus value to set.

Returns:

the ScheduleBase object itself.

withStatus

public ScheduleBase withStatus(ScheduleStatus status)

Set the status property: Is the schedule enabled or disabled?.

Parameters:

status - the status value to set.

Returns:

the ScheduleBase object itself.

Applies to