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

package com.azure.resourcemanager.appcontainers.models;

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

/** Secret to be added to volume. */
@Fluent
public final class SecretVolumeItem {
    /*
     * Name of the Container App secret from which to pull the secret value.
     */
    @JsonProperty(value = "secretRef")
    private String secretRef;

    /*
     * Path to project secret to. If no path is provided, path defaults to name of secret listed in secretRef.
     */
    @JsonProperty(value = "path")
    private String path;

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

    /**
     * Get the secretRef property: Name of the Container App secret from which to pull the secret value.
     *
     * @return the secretRef value.
     */
    public String secretRef() {
        return this.secretRef;
    }

    /**
     * Set the secretRef property: Name of the Container App secret from which to pull the secret value.
     *
     * @param secretRef the secretRef value to set.
     * @return the SecretVolumeItem object itself.
     */
    public SecretVolumeItem withSecretRef(String secretRef) {
        this.secretRef = secretRef;
        return this;
    }

    /**
     * Get the path property: Path to project secret to. If no path is provided, path defaults to name of secret listed
     * in secretRef.
     *
     * @return the path value.
     */
    public String path() {
        return this.path;
    }

    /**
     * Set the path property: Path to project secret to. If no path is provided, path defaults to name of secret listed
     * in secretRef.
     *
     * @param path the path value to set.
     * @return the SecretVolumeItem object itself.
     */
    public SecretVolumeItem withPath(String path) {
        this.path = path;
        return this;
    }

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