// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.machinelearning.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/** The ScheduleBase model. */
@Fluent
public final class ScheduleBase {
    /*
     * A system assigned id for the schedule.
     */
    @JsonProperty(value = "id")
    private String id;

    /*
     * The current deployment state of schedule.
     */
    @JsonProperty(value = "provisioningStatus")
    private ScheduleProvisioningState provisioningStatus;

    /*
     * Is the schedule enabled or disabled?
     */
    @JsonProperty(value = "status")
    private ScheduleStatus status;

    /** Creates an instance of ScheduleBase class. */
    public ScheduleBase() {
    }

    /**
     * Get the id property: A system assigned id for the schedule.
     *
     * @return the id value.
     */
    public String id() {
        return this.id;
    }

    /**
     * Set the id property: A system assigned id for the schedule.
     *
     * @param id the id value to set.
     * @return the ScheduleBase object itself.
     */
    public ScheduleBase withId(String id) {
        this.id = id;
        return this;
    }

    /**
     * Get the provisioningStatus property: The current deployment state of schedule.
     *
     * @return the provisioningStatus value.
     */
    public ScheduleProvisioningState provisioningStatus() {
        return this.provisioningStatus;
    }

    /**
     * Set the provisioningStatus property: The current deployment state of schedule.
     *
     * @param provisioningStatus the provisioningStatus value to set.
     * @return the ScheduleBase object itself.
     */
    public ScheduleBase withProvisioningStatus(ScheduleProvisioningState provisioningStatus) {
        this.provisioningStatus = provisioningStatus;
        return this;
    }

    /**
     * Get the status property: Is the schedule enabled or disabled?.
     *
     * @return the status value.
     */
    public ScheduleStatus status() {
        return this.status;
    }

    /**
     * Set the status property: Is the schedule enabled or disabled?.
     *
     * @param status the status value to set.
     * @return the ScheduleBase object itself.
     */
    public ScheduleBase withStatus(ScheduleStatus status) {
        this.status = status;
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
    }
}
