// 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.Immutable;
import com.fasterxml.jackson.annotation.JsonProperty;

/** AML file system client information. */
@Immutable
public final class AmlFilesystemClientInfo {
    /*
     * The IPv4 address used by clients to mount the AML file system's Lustre Management Service (MGS).
     */
    @JsonProperty(value = "mgsAddress", access = JsonProperty.Access.WRITE_ONLY)
    private String mgsAddress;

    /*
     * Recommended command to mount the AML file system
     */
    @JsonProperty(value = "mountCommand", access = JsonProperty.Access.WRITE_ONLY)
    private String mountCommand;

    /*
     * The version of Lustre running in the AML file system
     */
    @JsonProperty(value = "lustreVersion", access = JsonProperty.Access.WRITE_ONLY)
    private String lustreVersion;

    /*
     * Container Storage Interface information for the AML file system.
     */
    @JsonProperty(value = "containerStorageInterface", access = JsonProperty.Access.WRITE_ONLY)
    private AmlFilesystemContainerStorageInterface containerStorageInterface;

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

    /**
     * Get the mgsAddress property: The IPv4 address used by clients to mount the AML file system's Lustre Management
     * Service (MGS).
     *
     * @return the mgsAddress value.
     */
    public String mgsAddress() {
        return this.mgsAddress;
    }

    /**
     * Get the mountCommand property: Recommended command to mount the AML file system.
     *
     * @return the mountCommand value.
     */
    public String mountCommand() {
        return this.mountCommand;
    }

    /**
     * Get the lustreVersion property: The version of Lustre running in the AML file system.
     *
     * @return the lustreVersion value.
     */
    public String lustreVersion() {
        return this.lustreVersion;
    }

    /**
     * Get the containerStorageInterface property: Container Storage Interface information for the AML file system.
     *
     * @return the containerStorageInterface value.
     */
    public AmlFilesystemContainerStorageInterface containerStorageInterface() {
        return this.containerStorageInterface;
    }

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