// 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.fluent.models;

import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.storagecache.models.AmlFilesystemEncryptionSettings;
import com.azure.resourcemanager.storagecache.models.AmlFilesystemUpdatePropertiesMaintenanceWindow;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Properties of the AML file system. */
@Fluent
public final class AmlFilesystemUpdateProperties {
    /*
     * Specifies encryption settings of the AML file system.
     */
    @JsonProperty(value = "encryptionSettings")
    private AmlFilesystemEncryptionSettings encryptionSettings;

    /*
     * Start time of a 30-minute weekly maintenance window.
     */
    @JsonProperty(value = "maintenanceWindow")
    private AmlFilesystemUpdatePropertiesMaintenanceWindow maintenanceWindow;

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

    /**
     * Get the encryptionSettings property: Specifies encryption settings of the AML file system.
     *
     * @return the encryptionSettings value.
     */
    public AmlFilesystemEncryptionSettings encryptionSettings() {
        return this.encryptionSettings;
    }

    /**
     * Set the encryptionSettings property: Specifies encryption settings of the AML file system.
     *
     * @param encryptionSettings the encryptionSettings value to set.
     * @return the AmlFilesystemUpdateProperties object itself.
     */
    public AmlFilesystemUpdateProperties withEncryptionSettings(AmlFilesystemEncryptionSettings encryptionSettings) {
        this.encryptionSettings = 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.maintenanceWindow;
    }

    /**
     * Set the maintenanceWindow property: Start time of a 30-minute weekly maintenance window.
     *
     * @param maintenanceWindow the maintenanceWindow value to set.
     * @return the AmlFilesystemUpdateProperties object itself.
     */
    public AmlFilesystemUpdateProperties withMaintenanceWindow(
        AmlFilesystemUpdatePropertiesMaintenanceWindow maintenanceWindow) {
        this.maintenanceWindow = maintenanceWindow;
        return this;
    }

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