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

package com.azure.resourcemanager.storageimportexport.models;

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

/** Put Job parameters. */
@Fluent
public final class PutJobParameters {
    /*
     * Specifies the supported Azure location where the job should be created
     */
    @JsonProperty(value = "location")
    private String location;

    /*
     * Specifies the tags that will be assigned to the job.
     */
    @JsonProperty(value = "tags")
    private Object tags;

    /*
     * Specifies the job properties
     */
    @JsonProperty(value = "properties")
    private JobDetails properties;

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

    /**
     * Get the location property: Specifies the supported Azure location where the job should be created.
     *
     * @return the location value.
     */
    public String location() {
        return this.location;
    }

    /**
     * Set the location property: Specifies the supported Azure location where the job should be created.
     *
     * @param location the location value to set.
     * @return the PutJobParameters object itself.
     */
    public PutJobParameters withLocation(String location) {
        this.location = location;
        return this;
    }

    /**
     * Get the tags property: Specifies the tags that will be assigned to the job.
     *
     * @return the tags value.
     */
    public Object tags() {
        return this.tags;
    }

    /**
     * Set the tags property: Specifies the tags that will be assigned to the job.
     *
     * @param tags the tags value to set.
     * @return the PutJobParameters object itself.
     */
    public PutJobParameters withTags(Object tags) {
        this.tags = tags;
        return this;
    }

    /**
     * Get the properties property: Specifies the job properties.
     *
     * @return the properties value.
     */
    public JobDetails properties() {
        return this.properties;
    }

    /**
     * Set the properties property: Specifies the job properties.
     *
     * @param properties the properties value to set.
     * @return the PutJobParameters object itself.
     */
    public PutJobParameters withProperties(JobDetails properties) {
        this.properties = properties;
        return this;
    }

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