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

package com.azure.resourcemanager.storagecache.models;

import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Object containing the priming job ID. */
@Fluent
public final class PrimingJobIdParameter {
    /*
     * The unique identifier of the priming job.
     */
    @JsonProperty(value = "primingJobId", required = true)
    private String primingJobId;

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

    /**
     * Get the primingJobId property: The unique identifier of the priming job.
     *
     * @return the primingJobId value.
     */
    public String primingJobId() {
        return this.primingJobId;
    }

    /**
     * Set the primingJobId property: The unique identifier of the priming job.
     *
     * @param primingJobId the primingJobId value to set.
     * @return the PrimingJobIdParameter object itself.
     */
    public PrimingJobIdParameter withPrimingJobId(String primingJobId) {
        this.primingJobId = primingJobId;
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
        if (primingJobId() == null) {
            throw LOGGER
                .logExceptionAsError(
                    new IllegalArgumentException(
                        "Missing required property primingJobId in model PrimingJobIdParameter"));
        }
    }

    private static final ClientLogger LOGGER = new ClientLogger(PrimingJobIdParameter.class);
}
