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

package com.azure.resourcemanager.workloads.models;

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

/** The disk configuration required for the selected volume. */
@Fluent
public final class DiskVolumeConfiguration {
    /*
     * The total number of disks required for the concerned volume.
     */
    @JsonProperty(value = "count")
    private Long count;

    /*
     * The disk size in GB.
     */
    @JsonProperty(value = "sizeGB")
    private Long sizeGB;

    /*
     * The disk SKU details.
     */
    @JsonProperty(value = "sku")
    private DiskSku sku;

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

    /**
     * Get the count property: The total number of disks required for the concerned volume.
     *
     * @return the count value.
     */
    public Long count() {
        return this.count;
    }

    /**
     * Set the count property: The total number of disks required for the concerned volume.
     *
     * @param count the count value to set.
     * @return the DiskVolumeConfiguration object itself.
     */
    public DiskVolumeConfiguration withCount(Long count) {
        this.count = count;
        return this;
    }

    /**
     * Get the sizeGB property: The disk size in GB.
     *
     * @return the sizeGB value.
     */
    public Long sizeGB() {
        return this.sizeGB;
    }

    /**
     * Set the sizeGB property: The disk size in GB.
     *
     * @param sizeGB the sizeGB value to set.
     * @return the DiskVolumeConfiguration object itself.
     */
    public DiskVolumeConfiguration withSizeGB(Long sizeGB) {
        this.sizeGB = sizeGB;
        return this;
    }

    /**
     * Get the sku property: The disk SKU details.
     *
     * @return the sku value.
     */
    public DiskSku sku() {
        return this.sku;
    }

    /**
     * Set the sku property: The disk SKU details.
     *
     * @param sku the sku value to set.
     * @return the DiskVolumeConfiguration object itself.
     */
    public DiskVolumeConfiguration withSku(DiskSku sku) {
        this.sku = sku;
        return this;
    }

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