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

package com.azure.resourcemanager.recoveryservicesbackup.models;

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

/** Extended Properties for Azure IaasVM Backup. */
@Fluent
public final class ExtendedProperties {
    /*
     * Extended Properties for Disk Exclusion.
     */
    @JsonProperty(value = "diskExclusionProperties")
    private DiskExclusionProperties diskExclusionProperties;

    /*
     * Linux VM name
     */
    @JsonProperty(value = "linuxVmApplicationName")
    private String linuxVmApplicationName;

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

    /**
     * Get the diskExclusionProperties property: Extended Properties for Disk Exclusion.
     *
     * @return the diskExclusionProperties value.
     */
    public DiskExclusionProperties diskExclusionProperties() {
        return this.diskExclusionProperties;
    }

    /**
     * Set the diskExclusionProperties property: Extended Properties for Disk Exclusion.
     *
     * @param diskExclusionProperties the diskExclusionProperties value to set.
     * @return the ExtendedProperties object itself.
     */
    public ExtendedProperties withDiskExclusionProperties(DiskExclusionProperties diskExclusionProperties) {
        this.diskExclusionProperties = diskExclusionProperties;
        return this;
    }

    /**
     * Get the linuxVmApplicationName property: Linux VM name.
     *
     * @return the linuxVmApplicationName value.
     */
    public String linuxVmApplicationName() {
        return this.linuxVmApplicationName;
    }

    /**
     * Set the linuxVmApplicationName property: Linux VM name.
     *
     * @param linuxVmApplicationName the linuxVmApplicationName value to set.
     * @return the ExtendedProperties object itself.
     */
    public ExtendedProperties withLinuxVmApplicationName(String linuxVmApplicationName) {
        this.linuxVmApplicationName = linuxVmApplicationName;
        return this;
    }

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