// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.mysqlflexibleserver.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Storage Profile properties of a server. */
@Fluent
public final class Storage {
    /*
     * Max storage size allowed for a server.
     */
    @JsonProperty(value = "storageSizeGB")
    private Integer storageSizeGB;

    /*
     * Storage IOPS for a server.
     */
    @JsonProperty(value = "iops")
    private Integer iops;

    /*
     * Enable Storage Auto Grow or not.
     */
    @JsonProperty(value = "autoGrow")
    private EnableStatusEnum autoGrow;

    /*
     * Enable Log On Disk or not.
     */
    @JsonProperty(value = "logOnDisk")
    private EnableStatusEnum logOnDisk;

    /*
     * The sku name of the server storage.
     */
    @JsonProperty(value = "storageSku", access = JsonProperty.Access.WRITE_ONLY)
    private String storageSku;

    /*
     * Enable IO Auto Scaling or not.
     */
    @JsonProperty(value = "autoIoScaling")
    private EnableStatusEnum autoIoScaling;

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

    /**
     * Get the storageSizeGB property: Max storage size allowed for a server.
     *
     * @return the storageSizeGB value.
     */
    public Integer storageSizeGB() {
        return this.storageSizeGB;
    }

    /**
     * Set the storageSizeGB property: Max storage size allowed for a server.
     *
     * @param storageSizeGB the storageSizeGB value to set.
     * @return the Storage object itself.
     */
    public Storage withStorageSizeGB(Integer storageSizeGB) {
        this.storageSizeGB = storageSizeGB;
        return this;
    }

    /**
     * Get the iops property: Storage IOPS for a server.
     *
     * @return the iops value.
     */
    public Integer iops() {
        return this.iops;
    }

    /**
     * Set the iops property: Storage IOPS for a server.
     *
     * @param iops the iops value to set.
     * @return the Storage object itself.
     */
    public Storage withIops(Integer iops) {
        this.iops = iops;
        return this;
    }

    /**
     * Get the autoGrow property: Enable Storage Auto Grow or not.
     *
     * @return the autoGrow value.
     */
    public EnableStatusEnum autoGrow() {
        return this.autoGrow;
    }

    /**
     * Set the autoGrow property: Enable Storage Auto Grow or not.
     *
     * @param autoGrow the autoGrow value to set.
     * @return the Storage object itself.
     */
    public Storage withAutoGrow(EnableStatusEnum autoGrow) {
        this.autoGrow = autoGrow;
        return this;
    }

    /**
     * Get the logOnDisk property: Enable Log On Disk or not.
     *
     * @return the logOnDisk value.
     */
    public EnableStatusEnum logOnDisk() {
        return this.logOnDisk;
    }

    /**
     * Set the logOnDisk property: Enable Log On Disk or not.
     *
     * @param logOnDisk the logOnDisk value to set.
     * @return the Storage object itself.
     */
    public Storage withLogOnDisk(EnableStatusEnum logOnDisk) {
        this.logOnDisk = logOnDisk;
        return this;
    }

    /**
     * Get the storageSku property: The sku name of the server storage.
     *
     * @return the storageSku value.
     */
    public String storageSku() {
        return this.storageSku;
    }

    /**
     * Get the autoIoScaling property: Enable IO Auto Scaling or not.
     *
     * @return the autoIoScaling value.
     */
    public EnableStatusEnum autoIoScaling() {
        return this.autoIoScaling;
    }

    /**
     * Set the autoIoScaling property: Enable IO Auto Scaling or not.
     *
     * @param autoIoScaling the autoIoScaling value to set.
     * @return the Storage object itself.
     */
    public Storage withAutoIoScaling(EnableStatusEnum autoIoScaling) {
        this.autoIoScaling = autoIoScaling;
        return this;
    }

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