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

package com.azure.resourcemanager.nginx.models;

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

/** The NginxLogging model. */
@Fluent
public final class NginxLogging {
    /*
     * The storageAccount property.
     */
    @JsonProperty(value = "storageAccount")
    private NginxStorageAccount storageAccount;

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

    /**
     * Get the storageAccount property: The storageAccount property.
     *
     * @return the storageAccount value.
     */
    public NginxStorageAccount storageAccount() {
        return this.storageAccount;
    }

    /**
     * Set the storageAccount property: The storageAccount property.
     *
     * @param storageAccount the storageAccount value to set.
     * @return the NginxLogging object itself.
     */
    public NginxLogging withStorageAccount(NginxStorageAccount storageAccount) {
        this.storageAccount = storageAccount;
        return this;
    }

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