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

package com.azure.resourcemanager.recoveryservicessiterecovery.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/** DiskExclusionInput when doing enable protection of virtual machine in InMage provider. */
@Fluent
public final class InMageDiskExclusionInput {
    /*
     * The volume label based option for disk exclusion.
     */
    @JsonProperty(value = "volumeOptions")
    private List<InMageVolumeExclusionOptions> volumeOptions;

    /*
     * The guest disk signature based option for disk exclusion.
     */
    @JsonProperty(value = "diskSignatureOptions")
    private List<InMageDiskSignatureExclusionOptions> diskSignatureOptions;

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

    /**
     * Get the volumeOptions property: The volume label based option for disk exclusion.
     *
     * @return the volumeOptions value.
     */
    public List<InMageVolumeExclusionOptions> volumeOptions() {
        return this.volumeOptions;
    }

    /**
     * Set the volumeOptions property: The volume label based option for disk exclusion.
     *
     * @param volumeOptions the volumeOptions value to set.
     * @return the InMageDiskExclusionInput object itself.
     */
    public InMageDiskExclusionInput withVolumeOptions(List<InMageVolumeExclusionOptions> volumeOptions) {
        this.volumeOptions = volumeOptions;
        return this;
    }

    /**
     * Get the diskSignatureOptions property: The guest disk signature based option for disk exclusion.
     *
     * @return the diskSignatureOptions value.
     */
    public List<InMageDiskSignatureExclusionOptions> diskSignatureOptions() {
        return this.diskSignatureOptions;
    }

    /**
     * Set the diskSignatureOptions property: The guest disk signature based option for disk exclusion.
     *
     * @param diskSignatureOptions the diskSignatureOptions value to set.
     * @return the InMageDiskExclusionInput object itself.
     */
    public InMageDiskExclusionInput withDiskSignatureOptions(
        List<InMageDiskSignatureExclusionOptions> diskSignatureOptions) {
        this.diskSignatureOptions = diskSignatureOptions;
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
        if (volumeOptions() != null) {
            volumeOptions().forEach(e -> e.validate());
        }
        if (diskSignatureOptions() != null) {
            diskSignatureOptions().forEach(e -> e.validate());
        }
    }
}
