All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.azure.resourcemanager.storagecache.models.AmlFilesystemClientInfo Maven / Gradle / Ivy

Go to download

This package contains Microsoft Azure SDK for StorageCache Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure Managed Lustre provides a fully managed Lustre® file system, integrated with Blob storage, for use on demand. These operations create and manage Azure Managed Lustre file systems. Package tag package-2024-03.

The newest version!
// 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.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
import java.io.IOException;

/**
 * AML file system client information.
 */
@Immutable
public final class AmlFilesystemClientInfo implements JsonSerializable {
    /*
     * The IPv4 address used by clients to mount the AML file system's Lustre Management Service (MGS).
     */
    private String mgsAddress;

    /*
     * Recommended command to mount the AML file system
     */
    private String mountCommand;

    /*
     * The version of Lustre running in the AML file system
     */
    private String lustreVersion;

    /*
     * Container Storage Interface information for the AML file system.
     */
    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();
        }
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
        jsonWriter.writeStartObject();
        return jsonWriter.writeEndObject();
    }

    /**
     * Reads an instance of AmlFilesystemClientInfo from the JsonReader.
     * 
     * @param jsonReader The JsonReader being read.
     * @return An instance of AmlFilesystemClientInfo if the JsonReader was pointing to an instance of it, or null if it
     * was pointing to JSON null.
     * @throws IOException If an error occurs while reading the AmlFilesystemClientInfo.
     */
    public static AmlFilesystemClientInfo fromJson(JsonReader jsonReader) throws IOException {
        return jsonReader.readObject(reader -> {
            AmlFilesystemClientInfo deserializedAmlFilesystemClientInfo = new AmlFilesystemClientInfo();
            while (reader.nextToken() != JsonToken.END_OBJECT) {
                String fieldName = reader.getFieldName();
                reader.nextToken();

                if ("mgsAddress".equals(fieldName)) {
                    deserializedAmlFilesystemClientInfo.mgsAddress = reader.getString();
                } else if ("mountCommand".equals(fieldName)) {
                    deserializedAmlFilesystemClientInfo.mountCommand = reader.getString();
                } else if ("lustreVersion".equals(fieldName)) {
                    deserializedAmlFilesystemClientInfo.lustreVersion = reader.getString();
                } else if ("containerStorageInterface".equals(fieldName)) {
                    deserializedAmlFilesystemClientInfo.containerStorageInterface
                        = AmlFilesystemContainerStorageInterface.fromJson(reader);
                } else {
                    reader.skipChildren();
                }
            }

            return deserializedAmlFilesystemClientInfo;
        });
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy