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

package com.azure.resourcemanager.hybridnetwork.models;

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

/**
 * Specifies information about the operating system disk used by the virtual machine. &lt;br&gt;&lt;br&gt; For more
 * information about disks, see [About disks and VHDs for Azure virtual
 * machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
 */
@Fluent
public final class DataDisk {
    /*
     * Specifies how the virtual machine should be created.
     */
    @JsonProperty(value = "createOption")
    private DiskCreateOptionTypes createOption;

    /*
     * The name of data disk.
     */
    @JsonProperty(value = "name")
    private String name;

    /*
     * Specifies the size of an empty disk in gigabytes. This element can be used to overwrite the size of the disk in
     * a virtual machine image.
     */
    @JsonProperty(value = "diskSizeGB")
    private Integer diskSizeGB;

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

    /**
     * Get the createOption property: Specifies how the virtual machine should be created.
     *
     * @return the createOption value.
     */
    public DiskCreateOptionTypes createOption() {
        return this.createOption;
    }

    /**
     * Set the createOption property: Specifies how the virtual machine should be created.
     *
     * @param createOption the createOption value to set.
     * @return the DataDisk object itself.
     */
    public DataDisk withCreateOption(DiskCreateOptionTypes createOption) {
        this.createOption = createOption;
        return this;
    }

    /**
     * Get the name property: The name of data disk.
     *
     * @return the name value.
     */
    public String name() {
        return this.name;
    }

    /**
     * Set the name property: The name of data disk.
     *
     * @param name the name value to set.
     * @return the DataDisk object itself.
     */
    public DataDisk withName(String name) {
        this.name = name;
        return this;
    }

    /**
     * Get the diskSizeGB property: Specifies the size of an empty disk in gigabytes. This element can be used to
     * overwrite the size of the disk in a virtual machine image.
     *
     * @return the diskSizeGB value.
     */
    public Integer diskSizeGB() {
        return this.diskSizeGB;
    }

    /**
     * Set the diskSizeGB property: Specifies the size of an empty disk in gigabytes. This element can be used to
     * overwrite the size of the disk in a virtual machine image.
     *
     * @param diskSizeGB the diskSizeGB value to set.
     * @return the DataDisk object itself.
     */
    public DataDisk withDiskSizeGB(Integer diskSizeGB) {
        this.diskSizeGB = diskSizeGB;
        return this;
    }

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