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

package com.azure.resourcemanager.databox.fluent.models;

import com.azure.core.annotation.Immutable;
import com.azure.resourcemanager.databox.models.JobSecrets;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Unencrypted credentials for accessing device. */
@Immutable
public final class UnencryptedCredentialsInner {
    /*
     * Name of the job.
     */
    @JsonProperty(value = "jobName", access = JsonProperty.Access.WRITE_ONLY)
    private String jobName;

    /*
     * Secrets related to this job.
     */
    @JsonProperty(value = "jobSecrets", access = JsonProperty.Access.WRITE_ONLY)
    private JobSecrets jobSecrets;

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

    /**
     * Get the jobName property: Name of the job.
     *
     * @return the jobName value.
     */
    public String jobName() {
        return this.jobName;
    }

    /**
     * Get the jobSecrets property: Secrets related to this job.
     *
     * @return the jobSecrets value.
     */
    public JobSecrets jobSecrets() {
        return this.jobSecrets;
    }

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