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

package com.azure.resourcemanager.automation.models;

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

/** Task properties of the software update configuration. */
@Fluent
public final class SoftwareUpdateConfigurationRunTaskProperties {
    /*
     * The status of the task.
     */
    @JsonProperty(value = "status")
    private String status;

    /*
     * The name of the source of the task.
     */
    @JsonProperty(value = "source")
    private String source;

    /*
     * The job id of the task.
     */
    @JsonProperty(value = "jobId")
    private String jobId;

    /**
     * Get the status property: The status of the task.
     *
     * @return the status value.
     */
    public String status() {
        return this.status;
    }

    /**
     * Set the status property: The status of the task.
     *
     * @param status the status value to set.
     * @return the SoftwareUpdateConfigurationRunTaskProperties object itself.
     */
    public SoftwareUpdateConfigurationRunTaskProperties withStatus(String status) {
        this.status = status;
        return this;
    }

    /**
     * Get the source property: The name of the source of the task.
     *
     * @return the source value.
     */
    public String source() {
        return this.source;
    }

    /**
     * Set the source property: The name of the source of the task.
     *
     * @param source the source value to set.
     * @return the SoftwareUpdateConfigurationRunTaskProperties object itself.
     */
    public SoftwareUpdateConfigurationRunTaskProperties withSource(String source) {
        this.source = source;
        return this;
    }

    /**
     * Get the jobId property: The job id of the task.
     *
     * @return the jobId value.
     */
    public String jobId() {
        return this.jobId;
    }

    /**
     * Set the jobId property: The job id of the task.
     *
     * @param jobId the jobId value to set.
     * @return the SoftwareUpdateConfigurationRunTaskProperties object itself.
     */
    public SoftwareUpdateConfigurationRunTaskProperties withJobId(String jobId) {
        this.jobId = jobId;
        return this;
    }

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