com.azure.resourcemanager.storagecache.models.AmlFilesystemUpdate Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-storagecache Show documentation
Show all versions of azure-resourcemanager-storagecache Show documentation
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.Fluent;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
import com.azure.resourcemanager.storagecache.fluent.models.AmlFilesystemUpdateProperties;
import java.io.IOException;
import java.util.Map;
/**
* An AML file system update instance.
*/
@Fluent
public final class AmlFilesystemUpdate implements JsonSerializable {
/*
* Resource tags.
*/
private Map tags;
/*
* Properties of the AML file system.
*/
private AmlFilesystemUpdateProperties innerProperties;
/**
* Creates an instance of AmlFilesystemUpdate class.
*/
public AmlFilesystemUpdate() {
}
/**
* Get the tags property: Resource tags.
*
* @return the tags value.
*/
public Map tags() {
return this.tags;
}
/**
* Set the tags property: Resource tags.
*
* @param tags the tags value to set.
* @return the AmlFilesystemUpdate object itself.
*/
public AmlFilesystemUpdate withTags(Map tags) {
this.tags = tags;
return this;
}
/**
* Get the innerProperties property: Properties of the AML file system.
*
* @return the innerProperties value.
*/
private AmlFilesystemUpdateProperties innerProperties() {
return this.innerProperties;
}
/**
* Get the encryptionSettings property: Specifies encryption settings of the AML file system.
*
* @return the encryptionSettings value.
*/
public AmlFilesystemEncryptionSettings encryptionSettings() {
return this.innerProperties() == null ? null : this.innerProperties().encryptionSettings();
}
/**
* Set the encryptionSettings property: Specifies encryption settings of the AML file system.
*
* @param encryptionSettings the encryptionSettings value to set.
* @return the AmlFilesystemUpdate object itself.
*/
public AmlFilesystemUpdate withEncryptionSettings(AmlFilesystemEncryptionSettings encryptionSettings) {
if (this.innerProperties() == null) {
this.innerProperties = new AmlFilesystemUpdateProperties();
}
this.innerProperties().withEncryptionSettings(encryptionSettings);
return this;
}
/**
* Get the maintenanceWindow property: Start time of a 30-minute weekly maintenance window.
*
* @return the maintenanceWindow value.
*/
public AmlFilesystemUpdatePropertiesMaintenanceWindow maintenanceWindow() {
return this.innerProperties() == null ? null : this.innerProperties().maintenanceWindow();
}
/**
* Set the maintenanceWindow property: Start time of a 30-minute weekly maintenance window.
*
* @param maintenanceWindow the maintenanceWindow value to set.
* @return the AmlFilesystemUpdate object itself.
*/
public AmlFilesystemUpdate withMaintenanceWindow(AmlFilesystemUpdatePropertiesMaintenanceWindow maintenanceWindow) {
if (this.innerProperties() == null) {
this.innerProperties = new AmlFilesystemUpdateProperties();
}
this.innerProperties().withMaintenanceWindow(maintenanceWindow);
return this;
}
/**
* Get the rootSquashSettings property: Specifies root squash settings of the AML file system.
*
* @return the rootSquashSettings value.
*/
public AmlFilesystemRootSquashSettings rootSquashSettings() {
return this.innerProperties() == null ? null : this.innerProperties().rootSquashSettings();
}
/**
* Set the rootSquashSettings property: Specifies root squash settings of the AML file system.
*
* @param rootSquashSettings the rootSquashSettings value to set.
* @return the AmlFilesystemUpdate object itself.
*/
public AmlFilesystemUpdate withRootSquashSettings(AmlFilesystemRootSquashSettings rootSquashSettings) {
if (this.innerProperties() == null) {
this.innerProperties = new AmlFilesystemUpdateProperties();
}
this.innerProperties().withRootSquashSettings(rootSquashSettings);
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (innerProperties() != null) {
innerProperties().validate();
}
}
/**
* {@inheritDoc}
*/
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element));
jsonWriter.writeJsonField("properties", this.innerProperties);
return jsonWriter.writeEndObject();
}
/**
* Reads an instance of AmlFilesystemUpdate from the JsonReader.
*
* @param jsonReader The JsonReader being read.
* @return An instance of AmlFilesystemUpdate 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 AmlFilesystemUpdate.
*/
public static AmlFilesystemUpdate fromJson(JsonReader jsonReader) throws IOException {
return jsonReader.readObject(reader -> {
AmlFilesystemUpdate deserializedAmlFilesystemUpdate = new AmlFilesystemUpdate();
while (reader.nextToken() != JsonToken.END_OBJECT) {
String fieldName = reader.getFieldName();
reader.nextToken();
if ("tags".equals(fieldName)) {
Map tags = reader.readMap(reader1 -> reader1.getString());
deserializedAmlFilesystemUpdate.tags = tags;
} else if ("properties".equals(fieldName)) {
deserializedAmlFilesystemUpdate.innerProperties = AmlFilesystemUpdateProperties.fromJson(reader);
} else {
reader.skipChildren();
}
}
return deserializedAmlFilesystemUpdate;
});
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy