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

com.azure.resourcemanager.storagecache.models.AmlFilesystemContainerStorageInterface 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 container storage interface information.
 */
@Immutable
public final class AmlFilesystemContainerStorageInterface
    implements JsonSerializable {
    /*
     * Recommended AKS Persistent Volume Claim for the CSI driver, in Base64 encoded YAML
     */
    private String persistentVolumeClaim;

    /*
     * Recommended AKS Persistent Volume for the CSI driver, in Base64 encoded YAML
     */
    private String persistentVolume;

    /*
     * Recommended AKS Storage Class for the CSI driver, in Base64 encoded YAML
     */
    private String storageClass;

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

    /**
     * Get the persistentVolumeClaim property: Recommended AKS Persistent Volume Claim for the CSI driver, in Base64
     * encoded YAML.
     * 
     * @return the persistentVolumeClaim value.
     */
    public String persistentVolumeClaim() {
        return this.persistentVolumeClaim;
    }

    /**
     * Get the persistentVolume property: Recommended AKS Persistent Volume for the CSI driver, in Base64 encoded YAML.
     * 
     * @return the persistentVolume value.
     */
    public String persistentVolume() {
        return this.persistentVolume;
    }

    /**
     * Get the storageClass property: Recommended AKS Storage Class for the CSI driver, in Base64 encoded YAML.
     * 
     * @return the storageClass value.
     */
    public String storageClass() {
        return this.storageClass;
    }

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

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

    /**
     * Reads an instance of AmlFilesystemContainerStorageInterface from the JsonReader.
     * 
     * @param jsonReader The JsonReader being read.
     * @return An instance of AmlFilesystemContainerStorageInterface 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 AmlFilesystemContainerStorageInterface.
     */
    public static AmlFilesystemContainerStorageInterface fromJson(JsonReader jsonReader) throws IOException {
        return jsonReader.readObject(reader -> {
            AmlFilesystemContainerStorageInterface deserializedAmlFilesystemContainerStorageInterface
                = new AmlFilesystemContainerStorageInterface();
            while (reader.nextToken() != JsonToken.END_OBJECT) {
                String fieldName = reader.getFieldName();
                reader.nextToken();

                if ("persistentVolumeClaim".equals(fieldName)) {
                    deserializedAmlFilesystemContainerStorageInterface.persistentVolumeClaim = reader.getString();
                } else if ("persistentVolume".equals(fieldName)) {
                    deserializedAmlFilesystemContainerStorageInterface.persistentVolume = reader.getString();
                } else if ("storageClass".equals(fieldName)) {
                    deserializedAmlFilesystemContainerStorageInterface.storageClass = reader.getString();
                } else {
                    reader.skipChildren();
                }
            }

            return deserializedAmlFilesystemContainerStorageInterface;
        });
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy